tercul-backend/.golangci.yml
google-labs-jules[bot] c1feb7286b feat: security, caching and linting config
- Fix .golangci.yml config for govet shadow check
- (Previous changes: Security middleware, GraphQL APQ, Linting fixes)
2025-11-30 21:24:05 +00:00

61 lines
896 B
YAML

run:
timeout: 5m
tests: true
linters-settings:
govet:
enable:
- shadow
gocyclo:
min-complexity: 15
goconst:
min-len: 2
min-occurrences: 3
misspell:
locale: US
lll:
line-length: 140
goimports:
local-prefixes: tercul
gocritic:
enabled-tags:
- diagnostic
- performance
- style
disabled-checks:
- wrapperFunc
- ifElseChain
- octalLiteral
linters:
disable-all: true
enable:
- bodyclose
- errcheck
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- noctx
- nolintlint
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0