2020-10-11 22:10:03 +02:00
|
|
|
run:
|
2021-02-02 23:48:37 +01:00
|
|
|
timeout: 15m
|
2020-10-11 22:10:03 +02:00
|
|
|
tests: true
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- megacheck
|
|
|
|
- govet
|
|
|
|
- goconst
|
|
|
|
- gocritic
|
|
|
|
- gocyclo
|
|
|
|
- goerr113
|
|
|
|
- goheader
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
2022-03-27 16:55:37 +02:00
|
|
|
- revive
|
2020-10-11 22:10:03 +02:00
|
|
|
- misspell
|
|
|
|
disable:
|
|
|
|
- scopelint # Obsolete, using exportloopref instead
|
2022-03-27 16:55:37 +02:00
|
|
|
- durationcheck
|
2020-10-11 22:10:03 +02:00
|
|
|
presets:
|
|
|
|
- bugs
|
|
|
|
- unused
|
|
|
|
fast: false
|
|
|
|
|
2020-12-29 02:04:20 +01:00
|
|
|
linters-settings:
|
2020-10-11 22:10:03 +02:00
|
|
|
nestif:
|
|
|
|
min-complexity: 6
|
|
|
|
goheader:
|
2020-12-29 02:04:20 +01:00
|
|
|
template-path: code-header-template.txt
|
2020-10-11 22:10:03 +02:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
# Exclude some linters from running on tests files.
|
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- gocyclo
|
|
|
|
- deadcode
|
2022-03-27 16:55:37 +02:00
|
|
|
- errorlint
|
2020-10-11 22:10:03 +02:00
|
|
|
- path: pkg/integrations/*
|
|
|
|
linters:
|
|
|
|
- gocyclo
|
|
|
|
- deadcode
|
|
|
|
- varcheck
|
|
|
|
- unparam
|
|
|
|
- bodyclose
|
|
|
|
- path: pkg/integrations/*
|
|
|
|
text: "unlambda"
|
|
|
|
linters:
|
|
|
|
- gocritic
|
|
|
|
- path: pkg/modules/background/unsplash/unsplash\.go
|
|
|
|
linters:
|
|
|
|
- bodyclose
|
|
|
|
- path: pkg/migration/*
|
|
|
|
linters:
|
|
|
|
- exhaustive
|
|
|
|
- goconst
|
|
|
|
- goerr113
|
|
|
|
- path: pkg/models/task_collection_filter\.go
|
|
|
|
linters:
|
|
|
|
- exhaustive
|
|
|
|
- path: pkg/utils/random_string\.go
|
|
|
|
text: "G404:" # We don't care about cryptographically secure randomness when we're using that utility function.
|
|
|
|
linters:
|
|
|
|
- gosec
|
|
|
|
- path: pkg/modules/dump/*
|
|
|
|
linters:
|
|
|
|
- goerr113
|
|
|
|
- path: pkg/
|
|
|
|
text: "err113: do not define dynamic errors, use wrapped static errors instead:"
|
|
|
|
linters:
|
|
|
|
- goerr113
|
|
|
|
- text: "commentFormatting: put a space between `//` and comment text"
|
|
|
|
linters:
|
|
|
|
- gocritic
|
2020-10-13 08:05:55 +02:00
|
|
|
- path: pkg/modules/migration
|
|
|
|
linters:
|
|
|
|
- gocyclo
|
2020-12-29 02:04:20 +01:00
|
|
|
- path: pkg/routes/api/v1/docs.go
|
|
|
|
linters:
|
|
|
|
- goheader
|
|
|
|
- text: "Missed string"
|
|
|
|
linters:
|
|
|
|
- goheader
|
2022-03-27 16:55:37 +02:00
|
|
|
- path: pkg/.*/error.go
|
|
|
|
linters:
|
|
|
|
- errorlint
|
|
|
|
- path: pkg/models/favorites\.go
|
|
|
|
linters:
|
|
|
|
- nilerr
|