Skip to content

Commit 15b15c5

Browse files
committed
PMM-7 fix linter configuration
1 parent e4d3345 commit 15b15c5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.golangci.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ linters-settings:
7676
xml: camel
7777

7878
unused:
79-
check-exported: false #TODO: set true for agent
79+
exported-is-used: false #TODO: set true for agent
8080

8181
unparam:
8282
check-exported: true
@@ -125,12 +125,12 @@ linters:
125125

126126
run:
127127
timeout: 5m
128-
skip-dirs:
129-
- agent/agents/mongodb/internal/
130-
- qan-api2/migrations/
131128

132129
issues:
133130
exclude-use-default: false
131+
exclude-dirs:
132+
- agent/agents/mongodb/internal
133+
- qan-api2/migrations
134134
exclude:
135135
# gas: Duplicated errcheck checks
136136
- "G104: Errors unhandled"
@@ -148,6 +148,7 @@ issues:
148148
- forcetypeassert # for tests' brevity sake
149149
- funlen # tests may be long
150150
- gocognit # triggered by subtests
151+
- goconst # not critical for tests
151152
- gomnd # tests are full of magic numbers
152153
- ireturn # we have exceptions, so need to silence them in tests
153154
- lll # tests often require long lines

0 commit comments

Comments
 (0)