mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 03:01:52 +01:00
golangci: customize dupl
, funlen
, nestif
, and nlreturn
[skip ci]
This commit is contained in:
parent
a5f57c6c3e
commit
f27364f467
@ -61,11 +61,22 @@ linters-settings:
|
|||||||
funlen:
|
funlen:
|
||||||
# Checks the number of lines in a function.
|
# Checks the number of lines in a function.
|
||||||
# If lower than 0, disable the check.
|
# If lower than 0, disable the check.
|
||||||
# Default: 60
|
lines: 200
|
||||||
lines: 60
|
|
||||||
# Checks the number of statements in a function.
|
# Checks the number of statements in a function.
|
||||||
# Default: 40
|
statements: 80
|
||||||
statements: 40
|
|
||||||
|
dupl:
|
||||||
|
# Tokens count to trigger issue.
|
||||||
|
threshold: 200
|
||||||
|
|
||||||
|
nestif:
|
||||||
|
# Minimal complexity of if statements to report.
|
||||||
|
min-complexity: 10
|
||||||
|
|
||||||
|
nlreturn:
|
||||||
|
# Size of the block (including return statement that is still "OK")
|
||||||
|
# so no return split required.
|
||||||
|
block-size: 3
|
||||||
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user