run:
timeout: 15m
tests: true
linters:
enable:
- megacheck
- govet
- goconst
- gocritic
- gocyclo
- goerr113
- goheader
- gofmt
- goimports
- revive
- misspell
disable:
- scopelint # Obsolete, using exportloopref instead
- durationcheck
presets:
- bugs
- unused
fast: false
linters-settings:
nestif:
min-complexity: 6
goheader:
template-path: code-header-template.txt
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
- deadcode
- errorlint
- path: pkg/integrations/*
- varcheck
- unparam
- bodyclose
text: "unlambda"
- path: pkg/modules/background/unsplash/unsplash\.go
- path: pkg/migration/*
- exhaustive
- path: pkg/models/task_collection_filter\.go
- path: pkg/utils/random_string\.go
text: "G404:" # We don't care about cryptographically secure randomness when we're using that utility function.
- gosec
- path: pkg/modules/dump/*
- path: pkg/
text: "err113: do not define dynamic errors, use wrapped static errors instead:"
- text: "commentFormatting: put a space between `//` and comment text"
- path: pkg/modules/migration
- path: pkg/routes/api/v1/docs.go
- text: "Missed string"
- path: pkg/.*/error.go
- path: pkg/models/favorites\.go
- nilerr
- path: pkg/models/prject\.go
text: "string `parent_project_id` has 3 occurrences, make it a constant"
- path: pkg/models/events\.go
- musttag