This commit is contained in:
s-weibe 2026-04-09 15:50:03 +02:00 committed by GitHub
commit 47bafc6392
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,16 +1,32 @@
version: 2
engines:
golint:
enabled: true
config:
min_confidence: 0.8 # Ignore very low-confidence style warnings
gofmt:
enabled: true
config:
simplify: true # Automatically check for code simplifications
govet:
enabled: true
config:
check_shadowing: true # Detect variable shadowing for cleaner logic
duplication:
enabled: true
config:
languages:
- go
go:
threshold: 40 # Minimum token threshold before flagging duplication
ratings:
paths:
- "**.go"
- "**/*.go"
exclude_paths:
- "vendor/**" # Ignore dependencies
- "testdata/**" # Ignore test data
- "mocks/**" # Ignore generated mocks