From 938b59199480d1b3730388982eb87d592e976849 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 20 Apr 2023 04:08:01 +0200 Subject: 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. --- .golangci.yml | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) (limited to '.golangci.yml') 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" -- cgit v1.2.3