Add copyloopvar to enabled linters

This commit is contained in:
kyu08 2024-05-22 14:00:55 +09:00
parent 0fbed71f15
commit 6cf6941a77

View file

@ -14,10 +14,16 @@ linters:
- exhaustive - exhaustive
- makezero - makezero
- nakedret - nakedret
- copyloopvar
# - goconst # TODO: enable and fix issues # - goconst # TODO: enable and fix issues
fast: false fast: false
linters-settings: linters-settings:
copyloopvar:
# Check all assigning the loop variable to another variable.
# Default: false
# If true, an assignment like `a := x` will be detected as an error.
check-alias: true
exhaustive: exhaustive:
default-signifies-exhaustive: true default-signifies-exhaustive: true
staticcheck: staticcheck: