Skip to content

Commit a3511cd

Browse files
committed
review
1 parent ce0e1a9 commit a3511cd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.golangci.example.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,6 @@ linters-settings:
172172
# minimal code complexity to report, 30 by default (but we recommend 10-20)
173173
min-complexity: 10
174174

175-
nestif:
176-
# minimal complexity of if statements to report, 5 by default
177-
min-complexity: 4
178-
179-
nlreturn:
180-
# size of the block (including return statement that is still "OK")
181-
# so no return split required.
182-
block-size: 1
183-
184175
goconst:
185176
# minimal length of string constant, 3 by default
186177
min-len: 3
@@ -502,6 +493,15 @@ linters-settings:
502493
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
503494
max-func-lines: 30
504495

496+
nestif:
497+
# minimal complexity of if statements to report, 5 by default
498+
min-complexity: 4
499+
500+
nlreturn:
501+
# size of the block (including return statement that is still "OK")
502+
# so no return split required.
503+
block-size: 1
504+
505505
prealloc:
506506
# XXX: we don't recommend using this linter before doing performance profiling.
507507
# For most programs usage of prealloc will be a premature optimization.

0 commit comments

Comments
 (0)