diff options
author | silverwind <me@silverwind.io> | 2023-04-20 04:08:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 04:08:01 +0200 |
commit | 938b59199480d1b3730388982eb87d592e976849 (patch) | |
tree | fcbbeea0c67dca1cda1ef87a6b3c0748105a8610 /.golangci.yml | |
parent | [skip ci] Updated translations via Crowdin (diff) | |
download | forgejo-938b59199480d1b3730388982eb87d592e976849.tar.xz forgejo-938b59199480d1b3730388982eb87d592e976849.zip |
Remove most path-based golangci exclusions (#24214)
They are non-obvious and do not survive refactor.
Will replace with `//nolint` comments after CI results are in.
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/.golangci.yml b/.golangci.yml index 263149f773..ebb90af9d5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -111,67 +111,16 @@ issues: - linters: - gocritic text: "`ID' should not be capitalized" - - path: modules/templates/helper.go - linters: - - gocritic - linters: - unused - deadcode text: "swagger" - - path: contrib/pr/checkout.go - linters: - - errcheck - - path: models/issue.go - linters: - - errcheck - - path: models/migrations/ - linters: - - errcheck - - path: modules/log/ - linters: - - errcheck - - path: routers/api/v1/repo/issue_subscription.go - linters: - - dupl - - path: routers/repo/view.go - linters: - - dupl - - path: models/migrations/ - linters: - - unused - linters: - staticcheck text: "argument x is overwritten before first use" - - path: modules/httplib/httplib.go - linters: - - staticcheck - # Enabling this would require refactoring the methods and how they are called. - - path: models/issue_comment_list.go - linters: - - dupl - - path: models/update.go - linters: - - unused - - path: cmd/dump.go - linters: - - dupl - - path: services/webhook/webhook.go - linters: - - structcheck - text: "commentFormatting: put a space between `//` and comment text" linters: - gocritic - text: "exitAfterDefer:" linters: - gocritic - - path: modules/graceful/manager_windows.go - linters: - - staticcheck - text: "svc.IsAnInteractiveSession is deprecated: Use IsWindowsService instead." - - path: models/user/openid.go - linters: - - golint - - path: models/user/badge.go - linters: - - revive - text: "exported: type name will be used as user.UserBadge by other packages, and that stutters; consider calling this Badge" |