From 5439a0fbbbd02fa7e93ded3ffd0703a5cff44f9a Mon Sep 17 00:00:00 2001
From: Luke Shumaker <lukeshu@lukeshu.com>
Date: Sun, 1 Jan 2023 17:39:11 -0700
Subject: lint: Turn on dupword

---
 .golangci.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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
-- 
cgit v1.2.3-2-g168b