2020-10-11 20:10:03 +00:00
|
|
|
run:
|
2021-02-02 22:48:37 +00:00
|
|
|
timeout: 15m
|
2020-10-11 20:10:03 +00:00
|
|
|
tests: true
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- megacheck
|
|
|
|
- govet
|
|
|
|
- gocritic
|
|
|
|
- gocyclo
|
|
|
|
- goerr113
|
|
|
|
- goheader
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
2022-03-27 14:55:37 +00:00
|
|
|
- revive
|
2020-10-11 20:10:03 +00:00
|
|
|
- misspell
|
|
|
|
disable:
|
|
|
|
- scopelint # Obsolete, using exportloopref instead
|
2022-03-27 14:55:37 +00:00
|
|
|
- durationcheck
|
2023-12-19 12:34:31 +00:00
|
|
|
- goconst
|
2024-04-07 11:09:14 +00:00
|
|
|
- musttag
|
2020-10-11 20:10:03 +00:00
|
|
|
presets:
|
|
|
|
- bugs
|
|
|
|
- unused
|
|
|
|
fast: false
|
|
|
|
|
2020-12-29 01:04:20 +00:00
|
|
|
linters-settings:
|
2020-10-11 20:10:03 +00:00
|
|
|
nestif:
|
|
|
|
min-complexity: 6
|
|
|
|
goheader:
|
2020-12-29 01:04:20 +00:00
|
|
|
template-path: code-header-template.txt
|
2020-10-11 20:10:03 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
# Exclude some linters from running on tests files.
|
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- gocyclo
|
|
|
|
- deadcode
|
2022-03-27 14:55:37 +00:00
|
|
|
- errorlint
|
2020-10-11 20:10:03 +00: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
|
|
|
|
- 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 06:05:55 +00:00
|
|
|
- path: pkg/modules/migration
|
|
|
|
linters:
|
|
|
|
- gocyclo
|
2020-12-29 01:04:20 +00:00
|
|
|
- path: pkg/routes/api/v1/docs.go
|
|
|
|
linters:
|
|
|
|
- goheader
|
2023-03-18 08:55:18 +00:00
|
|
|
- misspell
|
2023-06-05 16:56:27 +00:00
|
|
|
- gosmopolitan
|
2020-12-29 01:04:20 +00:00
|
|
|
- text: "Missed string"
|
|
|
|
linters:
|
|
|
|
- goheader
|
2022-03-27 14:55:37 +00:00
|
|
|
- path: pkg/.*/error.go
|
|
|
|
linters:
|
|
|
|
- errorlint
|
|
|
|
- path: pkg/models/favorites\.go
|
|
|
|
linters:
|
|
|
|
- nilerr
|
2023-03-25 12:56:03 +00:00
|
|
|
- path: pkg/models/project\.go
|
2023-01-13 17:42:31 +00:00
|
|
|
text: "string `parent_project_id` has 3 occurrences, make it a constant"
|
2023-02-02 10:16:07 +00:00
|
|
|
- path: pkg/models/events\.go
|
|
|
|
linters:
|
|
|
|
- musttag
|
2023-06-26 17:10:32 +00:00
|
|
|
- path: pkg/models/task_collection.go
|
|
|
|
text: 'append result not assigned to the same slice'
|
2023-12-19 12:34:31 +00:00
|
|
|
- path: pkg/modules/migration/ticktick/ticktick_test.go
|
2023-10-03 09:28:28 +00:00
|
|
|
linters:
|
2023-12-19 12:34:31 +00:00
|
|
|
- testifylint
|
2024-03-10 13:47:19 +00:00
|
|
|
- path: pkg/migration/*
|
|
|
|
text: "parameter 'tx' seems to be unused, consider removing or renaming it as"
|
|
|
|
linters:
|
|
|
|
- revive
|
2024-04-13 15:57:09 +00:00
|
|
|
- path: pkg/models/typesense.go
|
|
|
|
text: 'structtag: struct field Position repeats json tag "position" also at'
|
|
|
|
linters:
|
|
|
|
- govet
|