Skip to content

Commit 56b6a88

Browse files
committed
golangci-lint: Add dupl
Ignore one duplication; we may want to revisit this in the future, but now is not the time. Signed-off-by: Mark Yen <mark.yen@suse.com>
1 parent b9cf4de commit 56b6a88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.golangci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ linters:
5252
- bodyclose
5353
- copyloopvar
5454
- dogsled
55+
- dupl
5556
- errcheck
5657
- goconst
5758
- gofmt
@@ -116,3 +117,6 @@ issues:
116117
linters: [ stylecheck ]
117118
text: "ST1003:"
118119
source: ^\s*[A-Z0-9_]+\s+=
120+
- # Don't de-duplicate different commands.
121+
path: src/go/rdctl/cmd/extension(Install|Uninstall)\.go$
122+
linters: [ dupl ]

0 commit comments

Comments
 (0)