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