-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstaticcheck.conf
More file actions
33 lines (32 loc) · 1.34 KB
/
staticcheck.conf
File metadata and controls
33 lines (32 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# staticcheck configuration read by:
# - dominikh/staticcheck-action (quality.yml Static Analysis)
# - staticcheck invoked via golangci-lint (ci.yml Lint)
# - go install honnef.co/go/tools/cmd/staticcheck; staticcheck ./...
#
# Disabled checks
#
# U1000 (unused)
# Too many false positives on registration-pattern types + test
# helpers + language wrappers under construction (elixir, haskell,
# rust, swift). Re-enable once every hit is audited.
#
# ST1000 (package comment required)
# ST1003 (exported name style: TSError vs TsError)
# ST1020 (comment form: "Name ...")
# ST1021 (type comment form: "TypeName ...")
# ST1022 (var comment form: "VarName ...")
# Pre-existing stylistic findings across ~80 files. Left out of
# scope for now — reintroduce in a dedicated docstrings-cleanup PR.
#
# S1011 (append loop → spread)
# SA9003 (empty branch)
# Pre-existing in ast_preserve.go + two test files. Low value;
# can be cleaned up in a later pass.
#
# ST1005 (error string capitalization/punctuation)
# Kept enabled — new code should satisfy this; I fixed the existing
# hits in this session.
#
# S1039 (unnecessary fmt.Sprintf)
# Kept enabled — trivial to fix and I've been scrubbing hits.
checks = ["all", "-U1000", "-ST1000", "-ST1003", "-ST1020", "-ST1021", "-ST1022", "-S1011", "-SA9003"]