Skip to content

Commit b3bad28

Browse files
committed
Fix golangci#382: make go-critic example config valid
1 parent 186fe37 commit b3bad28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.golangci.example.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ linters-settings:
164164

165165
settings: # settings passed to gocritic
166166
captLocal: # must be valid enabled check name
167-
checkLocals: true
167+
paramsOnly: true
168168
rangeValCopy:
169169
sizeThreshold: 32
170170

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ linters-settings:
688688
689689
settings: # settings passed to gocritic
690690
captLocal: # must be valid enabled check name
691-
checkLocals: true
691+
paramsOnly: true
692692
rangeValCopy:
693693
sizeThreshold: 32
694694

0 commit comments

Comments
 (0)