summaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-01 17:39:11 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-01 22:42:08 -0700
commit1faafcd3809fe5b452a1a742137ca2cb7336aad6 (patch)
tree754fba6c648f2c4b4a87d53534f81d415fe1469b /.golangci.yml
parentb6ec0ce387b0a3d9fb6f58ba43ca27943f99fb93 (diff)
lint: Turn on dupword
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.golangci.yml b/.golangci.yml
index ea06c75..077a82b 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -25,7 +25,6 @@ linters:
# These are disabled not because I think they're bad, but because
# they currently don't pass, and I haven't evaluated them yet.
- cyclop
- - dupword
- errorlint
- exhaustive
- exhaustruct
@@ -71,6 +70,12 @@ linters-settings:
nolintlint:
require-explanation: true
require-specific: true
+ allow-no-explanation:
+ - dupword
issues:
+ exclude-rules:
+ # Ignore false positives that don't actually have any words.
+ - linters: [dupword]
+ source: "^[^a-zA-Z]*$"
max-issues-per-linter: 0
max-same-issues: 0