Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Commit 740607e

Browse files
committed
update .golangci.yml
1 parent 65dfd15 commit 740607e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.golangci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,23 @@ linters:
1212
- gosec
1313
- gofmt
1414
- misspell
15+
linters-settings:
16+
exclude-rules:
17+
# Don't warn on unused parameters.
18+
# Parameter names are useful; replacing them with '_' is undesirable.
19+
- linters: [revive]
20+
text: 'unused-parameter: parameter \S+ seems to be unused, consider removing or renaming it as _'
21+
22+
# staticcheck already has smarter checks for empty blocks.
23+
# revive's empty-block linter has false positives.
24+
# For example, as of writing this, the following is not allowed.
25+
# for foo() { }
26+
- linters: [revive]
27+
text: 'empty-block: this block is empty, you can remove it'
28+
29+
# We *frequently* use the term 'new' in the context of properties
30+
# (new and old properties),
31+
# and we rarely use the 'new' built-in function.
32+
# It's fine to ignore these cases.
33+
- linters: [revive]
34+
text: 'redefines-builtin-id: redefinition of the built-in function new'

0 commit comments

Comments
 (0)