Files
hatchet/.golangci.yml
abelanger5 a7ce81718d fix: checksum instability on triggers (#1836)
* fix: run crons and schedules in singleton mode

* debug: lines for checksum

* include checksum

* fix: correct checksum when using trigger conditions

* remove debug line
2025-06-09 11:55:04 -04:00

69 lines
1.4 KiB
YAML

version: "2"
linters:
default: none
enable:
- errcheck
- gocritic
- gosec
- govet
- ineffassign
- revive
- staticcheck
- unconvert
- unused
settings:
staticcheck:
checks:
- -SA1029
- -SA4006
- -ST1003
- -ST1005
- -ST1016
- all
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- path: (.+)\.go$
text: by other packages, and that stutters; consider calling this
- path: (.+)\.go$
text: "var-naming:"
- path: (.+)\.go$
text: "receiver-naming:"
- path: (.+)\.go$
text: "unexported-return:"
- path: (.+)\.go$
text: "unused-parameter: parameter"
- path: (.+)\.go$
text: "context-keys-type: should not use basic type string"
- path: (.+)\.go$
text: error strings should not be capitalized
- linters:
- staticcheck
text: "ST1003:"
paths:
- third_party$
- builtin$
- examples$
- '(.+)_test\.go'
- "cmd/hatchet-loadtest/rampup/(.+).go"
formatters:
enable:
- gofmt
- goimports
settings:
goimports:
local-prefixes:
- github.com/hatchet-dev/hatchet
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$