File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed
Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 99golangci_lint_executable=$( which golangci-lint)
1010set -e
1111if [ -z " ${golangci_lint_executable} " ] || [ ! -x " ${golangci_lint_executable} " ]; then
12- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
12+ go install github.com/golangci/golangci-lint/v2/ cmd/golangci-lint@latest
1313fi
1414
1515pushd " ${SCRIPT_DIR} /../../src" > /dev/null
Original file line number Diff line number Diff line change 1+ version : " 2"
2+
13run :
24 # Timeout for analysis, e.g. 30s, 5m.
35 # Default: 1m
@@ -11,11 +13,31 @@ linters:
1113 - gocyclo
1214 # Inspects source code for security problems.
1315 - gosec
14- # Checks code formatting
15- - goimports
16+ exclusions :
17+ generated : lax
18+ presets :
19+ - comments
20+ - common-false-positives
21+ - legacy
22+ - std-error-handling
23+ paths :
24+ - third_party$
25+ - builtin$
26+ - examples$
1627
1728issues :
1829 # Disable max issues per linter.
1930 max-issues-per-linter : 0
2031 # Disable max same issues.
2132 max-same-issues : 0
33+
34+ formatters :
35+ enable :
36+ # Checks code formatting
37+ - goimports
38+ exclusions :
39+ generated : lax
40+ paths :
41+ - third_party$
42+ - builtin$
43+ - examples$
You can’t perform that action at this time.
0 commit comments