mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
4c916403e9
* Enable dupword linter & fix findings * Correct an incorrect fix * Add nolint comment * Add another nolint comment * Revert unintended change to bazel version --------- Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl>
33 lines
478 B
YAML
33 lines
478 B
YAML
run:
|
|
skip-files:
|
|
- validator/web/site_data.go
|
|
- .*_test.go
|
|
skip-dirs:
|
|
- proto
|
|
- tools/analyzers
|
|
timeout: 10m
|
|
go: '1.19'
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
- unused
|
|
- errcheck
|
|
- gosimple
|
|
- gocognit
|
|
- dupword
|
|
- nilerr
|
|
- whitespace
|
|
- misspell
|
|
|
|
linters-settings:
|
|
gocognit:
|
|
# TODO: We should target for < 50
|
|
min-complexity: 65
|
|
|
|
output:
|
|
print-issued-lines: true
|
|
sort-results: true
|