-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes some flags that are now in the configuration, and add more information. Trying `disable-all` with `enable` to limit the linter run to only the one we specify. Also trying to run less linters on `_test.go`. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
- Loading branch information
1 parent
0ca6f6b
commit 3f3a877
Showing
2 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
run: | ||
build-tags: | ||
- e2e | ||
skip-dirs: | ||
- vendor | ||
- pkg/client | ||
timeout: 5m | ||
linters-settings: | ||
errcheck: | ||
exclude: .errcheck.txt | ||
linters: | ||
disable-all: true | ||
enable: | ||
- errcheck | ||
- gofmt | ||
- goimports | ||
- gosec | ||
- gocritic | ||
- golint | ||
output: | ||
uniq-by-line: false | ||
issues: | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- errcheck | ||
- gosec | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
run: | ||
issues-exit-code: 1 | ||
build-tags: | ||
- e2e | ||
skip-dirs: | ||
- vendor | ||
- pkg/client | ||
timeout: 10m | ||
modules-download-mode: vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters