2022-08-13 10:23:14 +00:00
|
|
|
run:
|
|
|
|
timeout: '5m'
|
|
|
|
skip-dirs:
|
|
|
|
- 'assets'
|
|
|
|
allow-parallel-runners: true
|
|
|
|
modules-download-mode: 'readonly'
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- 'asciicheck'
|
|
|
|
- 'depguard'
|
|
|
|
- 'dogsled'
|
|
|
|
- 'errorlint'
|
|
|
|
- 'exportloopref'
|
|
|
|
- 'gofmt'
|
|
|
|
- 'goheader'
|
|
|
|
- 'goimports'
|
|
|
|
- 'gomodguard'
|
|
|
|
- 'goprintffuncname'
|
|
|
|
- 'gosec'
|
|
|
|
- 'govet'
|
|
|
|
- 'ineffassign'
|
|
|
|
- 'makezero'
|
|
|
|
- 'misspell'
|
|
|
|
- 'prealloc'
|
|
|
|
- 'predeclared'
|
|
|
|
- 'revive'
|
|
|
|
- 'typecheck'
|
|
|
|
- 'unconvert'
|
|
|
|
- 'whitespace'
|
|
|
|
disable:
|
2023-03-10 06:52:26 +00:00
|
|
|
# unsupported lint with golang 1.18+ ref: https://github.com/golangci/golangci-lint/issues/2649
|
2022-08-13 10:23:14 +00:00
|
|
|
- 'bodyclose'
|
|
|
|
- 'gosimple'
|
|
|
|
- 'noctx'
|
|
|
|
- 'sqlclosecheck'
|
|
|
|
- 'staticcheck'
|
|
|
|
- 'structcheck'
|
|
|
|
- 'stylecheck'
|
|
|
|
- 'unused'
|
2022-08-14 13:22:34 +00:00
|
|
|
- 'errcheck'
|
2022-10-24 05:36:01 +00:00
|
|
|
- 'deadcode'
|
|
|
|
- 'varcheck'
|
2023-10-02 14:35:33 +00:00
|
|
|
- 'paralleltest'
|
2022-08-13 10:23:14 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-use-default: false
|
|
|
|
exclude:
|
|
|
|
- should have a package comment
|
|
|
|
- should have comment
|
2022-08-13 12:11:56 +00:00
|
|
|
# G101: Potential hardcoded credentials
|
|
|
|
- G101
|
2022-08-13 10:23:14 +00:00
|
|
|
# G103: Use of unsafe calls should be audited
|
|
|
|
- G103
|
2022-08-14 13:22:34 +00:00
|
|
|
# G304: Potential file inclusion via variable
|
|
|
|
- G304
|
|
|
|
# G404, G401, G502, G505: weak cryptographic list
|
2022-08-13 12:11:56 +00:00
|
|
|
- G401
|
2022-08-13 10:23:14 +00:00
|
|
|
- G404
|
2022-08-13 12:11:56 +00:00
|
|
|
- G502
|
|
|
|
- G505
|
2022-08-14 14:51:31 +00:00
|
|
|
exclude-rules:
|
2023-03-10 06:52:26 +00:00
|
|
|
- path: browser/browser\.go
|
2022-08-14 14:51:31 +00:00
|
|
|
linters:
|
|
|
|
- 'unused'
|
2022-08-13 10:23:14 +00:00
|
|
|
max-issues-per-linter: 0
|
2023-06-06 11:45:53 +00:00
|
|
|
max-same-issues: 0
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
depguard:
|
|
|
|
rules:
|
|
|
|
main:
|
|
|
|
files:
|
|
|
|
- $all
|
|
|
|
deny:
|
|
|
|
- pkg: "github.com/pkg/errors"
|
|
|
|
desc: Should be replaced by standard lib errors package
|