Skip to content

Commit c67e946

Browse files
committed
Show all issues from the linters
Document the default selection and rearrange in alphabetical order, for easier comparison.
1 parent 438e647 commit c67e946

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.golangci.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ run:
33
timeout: 7m
44
linters:
55
enable:
6+
- dogsled
7+
- errcheck
68
- gocritic
7-
- revive
9+
- govet
810
- gocyclo
11+
- ineffassign
912
- misspell
1013
- nakedret
14+
- revive
1115
- staticcheck
1216
- unconvert
1317
- unparam
14-
- dogsled
18+
- unused
1519
settings:
1620
staticcheck:
1721
checks:
@@ -23,6 +27,7 @@ linters:
2327
- "-ST1020"
2428
- "-ST1021"
2529
- "-ST1022"
30+
# Omit embedded fields from selector expression
2631
- "-QF1008"
2732

2833
revive:

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ GOLINT_JOBS ?= 4
8181
GOLINT_GOGC ?= 100
8282
# options for lint (golangci-lint)
8383
GOLINT_OPTIONS = \
84+
--max-issues-per-linter 0 --max-same-issues 0 \
8485
--build-tags "${MINIKUBE_INTEGRATION_BUILD_TAGS}" \
8586
--config .golangci.yaml
8687

0 commit comments

Comments
 (0)