Skip to content

Commit 1f23cc2

Browse files
committed
chore: add support for copyloopvar
1 parent 475593f commit 1f23cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ linters:
1111
- asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers [fast: true, auto-fix: false]
1212
- bidichk # Checks for dangerous unicode character sequences [fast: true, auto-fix: false]
1313
- bodyclose # checks whether HTTP response body is closed successfully [fast: false, auto-fix: false]
14+
- copyloopvar # copyloopvar is a linter detects places where loop variables are copied [fast: true, auto-fix: false]
1415
- decorder # check declaration order and count of types, constants, variables and functions [fast: true, auto-fix: false]
1516
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f()) [fast: true, auto-fix: false]
1617
- durationcheck # check for two durations multiplied together [fast: false, auto-fix: false]
@@ -36,7 +37,6 @@ linters:
3637
- tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes [fast: false, auto-fix: false]
3738
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code [fast: false, auto-fix: false]
3839
- unconvert # Remove unnecessary type conversions [fast: false, auto-fix: false]
39-
- unconvert # Remove unnecessary type conversions [fast: false, auto-fix: false]
4040
- unparam # Reports unused function parameters [fast: false, auto-fix: false]
4141
- unused #(megacheck): Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false]
4242
- whitespace # Tool for detection of leading and trailing whitespace [fast: true, auto-fix: true]

0 commit comments

Comments
 (0)