2022-06-14 06:19:34 +00:00
|
|
|
run:
|
|
|
|
skip-files:
|
|
|
|
- validator/web/site_data.go
|
|
|
|
- .*_test.go
|
|
|
|
skip-dirs:
|
|
|
|
- proto
|
|
|
|
- tools/analyzers
|
|
|
|
timeout: 10m
|
2022-11-18 19:12:19 +00:00
|
|
|
go: '1.19'
|
2019-04-26 06:24:01 +00:00
|
|
|
|
|
|
|
linters:
|
2022-06-14 06:19:34 +00:00
|
|
|
disable-all: true
|
2019-04-26 06:24:01 +00:00
|
|
|
enable:
|
2022-08-17 13:53:46 +00:00
|
|
|
- gofmt
|
2022-08-17 17:15:08 +00:00
|
|
|
- goimports
|
2022-08-29 16:45:25 +00:00
|
|
|
- unused
|
2022-06-14 06:19:34 +00:00
|
|
|
- errcheck
|
|
|
|
- gosimple
|
|
|
|
- gocognit
|
2023-04-18 22:01:27 +00:00
|
|
|
- dupword
|
2023-04-18 20:53:16 +00:00
|
|
|
- nilerr
|
2023-04-18 18:58:27 +00:00
|
|
|
- whitespace
|
2023-04-14 10:03:11 +00:00
|
|
|
- misspell
|
2019-04-26 06:24:01 +00:00
|
|
|
|
2022-06-14 06:19:34 +00:00
|
|
|
linters-settings:
|
|
|
|
gocognit:
|
|
|
|
# TODO: We should target for < 50
|
2022-06-20 03:57:39 +00:00
|
|
|
min-complexity: 65
|
2019-04-26 06:24:01 +00:00
|
|
|
|
2022-06-14 06:19:34 +00:00
|
|
|
output:
|
|
|
|
print-issued-lines: true
|
|
|
|
sort-results: true
|