mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
b04dd9fe5c
* Enable gocognit linter Currently the gocognit complexity threshold is set to 95 to make sure no existing files will fail the linter. In future we will reduce this threshold to a much lower one. The recommended threshold is usually 30. Our code base has maximum of 97 right now...But it's better late than never to pay attention to our code compexity. * Test to see github complains * Resume to 97 Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
27 lines
393 B
YAML
27 lines
393 B
YAML
run:
|
|
skip-files:
|
|
- validator/web/site_data.go
|
|
- .*_test.go
|
|
skip-dirs:
|
|
- proto
|
|
- tools/analyzers
|
|
timeout: 10m
|
|
go: '1.18'
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- deadcode
|
|
- errcheck
|
|
- gosimple
|
|
- gocognit
|
|
|
|
linters-settings:
|
|
gocognit:
|
|
# TODO: We should target for < 50
|
|
min-complexity: 97
|
|
|
|
output:
|
|
print-issued-lines: true
|
|
sort-results: true
|