f2efcc3f10
In go it doesn't matter if function returns 20 times. We need to do a lot of error checking and that's how it should be. Each of those error checks are 3 lines of code so it also doesn't matter if functions are a bit longer. License: MIT Signed-off-by: Hector Sanjuan <code@hector.link>
35 lines
480 B
YAML
35 lines
480 B
YAML
ratings:
|
|
paths:
|
|
- "**/*.go"
|
|
|
|
checks:
|
|
file-lines:
|
|
config:
|
|
threshold: 500
|
|
method-complexity:
|
|
config:
|
|
threshold: 12
|
|
method-lines:
|
|
config:
|
|
threshold: 80
|
|
similar-code:
|
|
enabled: false
|
|
return-statements:
|
|
config:
|
|
threshold: 10
|
|
|
|
engines:
|
|
fixme:
|
|
enabled: true
|
|
config:
|
|
strings:
|
|
- FIXME
|
|
- HACK
|
|
- XXX
|
|
- BUG
|
|
golint:
|
|
enabled: true
|
|
govet:
|
|
enabled: true
|
|
gofmt:
|
|
enabled: true |