Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Sep 16, 2021
1 parent ce0e1a9 commit a3511cd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .golangci.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,6 @@ linters-settings:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 10

nestif:
# minimal complexity of if statements to report, 5 by default
min-complexity: 4

nlreturn:
# size of the block (including return statement that is still "OK")
# so no return split required.
block-size: 1

goconst:
# minimal length of string constant, 3 by default
min-len: 3
Expand Down Expand Up @@ -502,6 +493,15 @@ linters-settings:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
max-func-lines: 30

nestif:
# minimal complexity of if statements to report, 5 by default
min-complexity: 4

nlreturn:
# size of the block (including return statement that is still "OK")
# so no return split required.
block-size: 1

prealloc:
# XXX: we don't recommend using this linter before doing performance profiling.
# For most programs usage of prealloc will be a premature optimization.
Expand Down

0 comments on commit a3511cd

Please sign in to comment.