diff options
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/.golangci.yml b/.golangci.yml index bfc873b..d768d90 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -21,7 +21,6 @@ linters: - gocognit - goconst - gocyclo - - godot - goerr113 - gomnd - gosec @@ -35,7 +34,6 @@ linters: - nonamedreturns - paralleltest - perfsprint - - stylecheck - testableexamples - testpackage - thelper @@ -59,20 +57,28 @@ linters: - varcheck linters-settings: - # Show all issues from a linter. - max-issues-per-linter: 0 - - # Show all issues with the same text. - max-same-issues: 0 - revive: # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md rules: - name: use-any lll: line-length: 130 + stylecheck: + checks: [ + "all", + "-ST1000", # at least one file in a package should have a package comment + ] issues: + # Show all issues from a linter. + max-issues-per-linter: 0 + + # Show all issues with the same text. + max-same-issues: 0 + + include: + - EXC0011 # include issues about comments from `stylecheck` + exclude-rules: # Exclude some linters from running on tests files. - path: _test\.go |