mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Add copyloopvar
to enabled linters
This commit is contained in:
parent
0fbed71f15
commit
6cf6941a77
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue