diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 22:13:14 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 22:42:08 -0700 |
commit | 6bc0a47b549617d31a74c6c78029208528cf2a55 (patch) | |
tree | 42cf70da1e1d4acd0788f7f99e52437a9b7ffdb2 | |
parent | 497137d756fb2566f09525ab1edadd60387c660f (diff) |
lint: Turn on stylecheck
-rw-r--r-- | .golangci.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.golangci.yml b/.golangci.yml index e8b7678..57f58a1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -42,7 +42,6 @@ linters: - nlreturn - nonamedreturns - revive - - stylecheck - tagliatelle - testpackage - thelper @@ -77,10 +76,17 @@ linters-settings: require-specific: true allow-no-explanation: - dupword + stylecheck: + checks: + - "all" + - "-ST1003" # CONST_VAL names for consistency with other btrfs code issues: exclude-rules: # Ignore false positives that don't actually have any words. - linters: [dupword] source: "^[^a-zA-Z]*$" + # https://github.com/dominikh/go-tools/issues/1347 + - linters: [stylecheck] + text: '^ST1016: methods on the same type should have the same receiver name \(seen 1x "(a|dst)", \d+x "[^"]+"\)$' max-issues-per-linter: 0 max-same-issues: 0 |