mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-13 00:34:43 +00:00
30 lines
663 B
YAML
30 lines
663 B
YAML
run:
|
|
timeout: 5m
|
|
tests: true
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- govet
|
|
- gofmt
|
|
- goimports
|
|
- errcheck
|
|
- dupl
|
|
issues:
|
|
max-same-issues: 0
|
|
max-issues-per-linter: 0
|
|
exclude-rules:
|
|
# Exclude dupl findings in test files and mock generators — test boilerplate
|
|
# is inherently repetitive and mock data generators share patterns by design.
|
|
- linters: [dupl]
|
|
path: "_test\\.go$"
|
|
- linters: [dupl]
|
|
path: "internal/mock/"
|
|
linters-settings:
|
|
gofmt:
|
|
simplify: true
|
|
errcheck:
|
|
exclude-functions:
|
|
- (*encoding/json.Encoder).Encode
|
|
- (net/http.ResponseWriter).Write
|
|
dupl:
|
|
threshold: 150
|