Merged in feature/lint (pull request #87)

Basic Lint Checks

* basic
This commit is contained in:
Michael McGuinness
2025-03-05 12:05:46 +00:00
parent 1232ed528f
commit 0815cb35fb
229 changed files with 487 additions and 193 deletions
+50
View File
@@ -0,0 +1,50 @@
---
linters:
enable:
- errcheck
- gosimple
- govet
- staticcheck
- typecheck
- unused
- gofmt
- goimports
- gosec
- misspell
- sloglint
- spancheck
- godox
- cyclop
linters-settings:
errcheck:
check-type-assertions: true
gofmt:
simplify: true
goimports:
local-prefixes: queryorchestration
misspell:
locale: US
cyclop:
max-complexity: 17
package-average: 8
godox:
keywords:
- NOTE
- OPTIMIZE
- HACK
- TODO
- FIXME
issues:
exclude-rules:
- path: cmd/metricsExample_test/main\.go
linters:
- gosec
text: "G404"
- path: internal/serviceconfig/observability/prometheus/prometheus_test.go
linters:
- gosec
text: "G107"
max-issues-per-linter: 0
max-same-issues: 0