diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 17:39:11 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-01-01 22:42:08 -0700 |
commit | 5439a0fbbbd02fa7e93ded3ffd0703a5cff44f9a (patch) | |
tree | a08230a241203b368e86a587ac3d12c613d83162 | |
parent | 1349600829cf6b538d2db402d87812cda346d367 (diff) |
lint: Turn on dupword
-rw-r--r-- | .golangci.yml | 7 |
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 |