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:
silverwind
2026-07-24 21:47:23 +00:00
committed by GitHub
parent 818da42728
commit 13406e7aa7
4 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -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
}