diff options
author | kyu08 <49891479+kyu08@users.noreply.github.com> | 2024-05-22 14:00:55 +0900 |
---|---|---|
committer | kyu08 <49891479+kyu08@users.noreply.github.com> | 2024-05-22 21:57:34 +0900 |
commit | 6cf6941a7709e290e2d42b54bf229b1e4b2372ea (patch) | |
tree | 06e3329779ffb5e90836f9a8ed72e11e08b3c454 /.golangci.yml | |
parent | 0fbed71f15eed55947e301095c4e0c138ba69d4a (diff) |
Add `copyloopvar` to enabled linters
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml index 85a956508..169150a57 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -14,10 +14,16 @@ linters: - exhaustive - makezero - nakedret + - copyloopvar # - goconst # TODO: enable and fix issues fast: false 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: default-signifies-exhaustive: true staticcheck: |