mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Replace scopelint with exportloopref (#26075)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
e8a8159085
commit
586d26c729
@ -826,7 +826,7 @@ jobs:
|
||||
command: |
|
||||
# To save memory, run in two batches
|
||||
golangci-lint run -v -j 4 --config scripts/go/configs/ci/.golangci.toml -E deadcode -E depguard -E dogsled \
|
||||
-E errcheck -E goconst -E golint -E gosec -E gosimple -E govet -E scopelint -E whitespace ./pkg/...
|
||||
-E errcheck -E goconst -E golint -E gosec -E gosimple -E govet -E exportloopref -E whitespace ./pkg/...
|
||||
golangci-lint run -v -j 4 --config scripts/go/configs/ci/.golangci.toml -E ineffassign \
|
||||
-E rowserrcheck -E staticcheck -E structcheck -E typecheck -E unconvert -E unused -E varcheck ./pkg/...
|
||||
./scripts/go/bin/revive -formatter stylish -config ./scripts/go/configs/revive.toml ./pkg/...
|
||||
|
@ -29,7 +29,7 @@ enable = [
|
||||
# "interfacer",
|
||||
# "misspell",
|
||||
"rowserrcheck",
|
||||
"scopelint",
|
||||
"exportloopref",
|
||||
"staticcheck",
|
||||
"structcheck",
|
||||
# "stylecheck",
|
||||
@ -44,10 +44,6 @@ enable = [
|
||||
# "gocyclo",
|
||||
# "unparam"
|
||||
|
||||
[[issues.exclude-rules]]
|
||||
path = "_test\\.go"
|
||||
linters = ["scopelint"]
|
||||
|
||||
[[issues.exclude-rules]]
|
||||
linters = ["gosec"]
|
||||
text = "G108"
|
||||
|
@ -11,10 +11,6 @@ min-occurrences = 5
|
||||
[linters]
|
||||
disable-all = true
|
||||
|
||||
[[issues.exclude-rules]]
|
||||
path = "_test\\.go"
|
||||
linters = ["scopelint"]
|
||||
|
||||
[[issues.exclude-rules]]
|
||||
linters = ["gosec"]
|
||||
text = "G108"
|
||||
|
Loading…
Reference in New Issue
Block a user