mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-02 08:39:30 +00:00
chore: update and relax revive naming rules (#38615)
- enable `skip-initialism-name-checks`, so names like `sessionUid` are allowed - replace removed `skip-package-name-checks` option with new `package-naming` with fitting rules for gitea - drop dead exclusion paths
This commit is contained in:
@@ -120,7 +120,7 @@ func asciiLower(b byte) byte {
|
||||
|
||||
// AsciiEqualFold is from Golang https://cs.opensource.google/go/go/+/refs/tags/go1.24.4:src/net/http/internal/ascii/print.go
|
||||
// ASCII only. In most cases for protocols, we should only use this but not [strings.EqualFold]
|
||||
func AsciiEqualFold(s, t string) bool { //nolint:revive // PascalCase
|
||||
func AsciiEqualFold(s, t string) bool {
|
||||
if len(s) != len(t) {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user