From 6bc0a47b549617d31a74c6c78029208528cf2a55 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 1 Jan 2023 22:13:14 -0700 Subject: lint: Turn on stylecheck --- .golangci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf