GoBlog/.golangci.yml

41 lines
623 B
YAML
Raw Permalink Normal View History

run:
timeout: 5m
2023-12-25 12:44:35 +00:00
issues-exit-code: 0
tests: false
build-tags:
- linux
- libsqlite3
- sqlite_fts5
linters:
enable:
# Default linters
- errcheck
- gosimple
- govet
- ineffassign
2022-08-07 10:46:49 +00:00
- staticcheck
- typecheck
- unused
# Other linters
2022-08-07 10:46:49 +00:00
- asasalint
- bidichk
- bodyclose
- containedctx
2023-12-25 12:44:35 +00:00
# - contextcheck
- dupl
2022-08-07 10:46:49 +00:00
- durationcheck
- gofmt
2022-08-07 10:46:49 +00:00
- gosec
- makezero
- noctx
- prealloc
- unparam
linters-settings:
gosimple:
2023-12-25 12:44:35 +00:00
go: "1.21"
checks: ["all"]
2023-12-25 12:44:35 +00:00
staticcheck:
go: "1.21"
2022-02-26 19:38:52 +00:00
checks: ["all"]
dupl:
threshold: 125