vikunja/.golangci.yml

122 lines
2.9 KiB
YAML
Raw Normal View History

run:
timeout: 15m
tests: true
linters:
enable:
2024-07-17 11:43:22 +02:00
- gosimple
- staticcheck
- unused
- govet
- gocritic
- gocyclo
- err113
- goheader
- gofmt
- goimports
2022-03-27 16:55:37 +02:00
- revive
- misspell
disable:
2022-03-27 16:55:37 +02:00
- durationcheck
- goconst
- musttag
presets:
- bugs
- unused
fast: false
2020-12-29 02:04:20 +01:00
linters-settings:
nestif:
min-complexity: 6
goheader:
2020-12-29 02:04:20 +01:00
template-path: code-header-template.txt
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
- 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
- err113
- 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:
- err113
- path: pkg/
text: "do not define dynamic errors, use wrapped static errors instead:"
linters:
- err113
- text: "commentFormatting: put a space between `//` and comment text"
linters:
- gocritic
- path: pkg/modules/migration
linters:
- gocyclo
2020-12-29 02:04:20 +01:00
- path: pkg/routes/api/v1/docs.go
linters:
- goheader
- misspell
- gosmopolitan
2020-12-29 02:04:20 +01:00
- 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
2023-03-25 13:56:03 +01:00
- path: pkg/models/project\.go
2023-01-13 18:42:31 +01:00
text: "string `parent_project_id` has 3 occurrences, make it a constant"
- path: pkg/models/events\.go
linters:
- musttag
2023-06-26 19:10:32 +02:00
- path: pkg/models/task_collection.go
text: 'append result not assigned to the same slice'
- path: pkg/modules/migration/ticktick/ticktick_test.go
linters:
- testifylint
- path: pkg/migration/*
text: "parameter 'tx' seems to be unused, consider removing or renaming it as"
linters:
- revive
2024-04-13 17:57:09 +02:00
- path: pkg/models/typesense.go
text: 'structtag: struct field Position repeats json tag "position" also at'
linters:
- govet
2024-08-25 15:51:34 +02:00
- path: pkg/cmd/user.go
text: 'G115: integer overflow conversion uintptr -> int'
linters:
- gosec
- text: 'G115: integer overflow conversion int64 -> uint64'
linters:
- gosec
- text: 'G115: integer overflow conversion int -> uint64'
linters:
- gosec