mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-22 20:53:40 +09: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:
@@ -9,11 +9,11 @@ import (
|
||||
"gitea.dev/modules/json"
|
||||
)
|
||||
|
||||
type JsonUtils struct{} //nolint:revive // variable naming triggers on Json, wants JSON
|
||||
type JsonUtils struct{}
|
||||
|
||||
var jsonUtils = JsonUtils{}
|
||||
|
||||
func NewJsonUtils() *JsonUtils { //nolint:revive // variable naming triggers on Json, wants JSON
|
||||
func NewJsonUtils() *JsonUtils {
|
||||
return &jsonUtils
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user