style: normalize any check finding lines to canonical file:line format
Drop the stray em-dash (envreads) and arrow (reinvented) separators so all findings use the two canonical shapes: "file:line snippet" and "file:line [rule] detail". Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
c4d01de82c
commit
05a0354c85
@ -22,7 +22,7 @@ func init() {
|
||||
if len(envViolations) > 0 {
|
||||
rep.Fail("%d secret env var read(s) outside config.Load() — secrets must flow through Config → DI", len(envViolations))
|
||||
for _, v := range envViolations {
|
||||
rep.Findingf("%s:%d — os.Getenv(%q)", v.file, v.line, v.envVar)
|
||||
rep.Findingf("%s:%d os.Getenv(%q)", v.file, v.line, v.envVar)
|
||||
}
|
||||
} else {
|
||||
if len(ctx.pluginTargets) > 0 {
|
||||
|
||||
@ -30,7 +30,7 @@ func init() {
|
||||
if len(allReinvented) > 0 {
|
||||
rep.Fail("%d reinvented utility pattern(s)", len(allReinvented))
|
||||
for _, v := range allReinvented {
|
||||
rep.Findingf("%s:%d [%s] → %s", v.file, v.line, v.rule, v.hint)
|
||||
rep.Findingf("%s:%d [%s] %s", v.file, v.line, v.rule, v.hint)
|
||||
}
|
||||
} else {
|
||||
rep.OK("No reinvented utilities detected")
|
||||
|
||||
2
testdata/golden/nomod/expected.stdout
vendored
2
testdata/golden/nomod/expected.stdout
vendored
@ -1,6 +1,6 @@
|
||||
check-safety FIXTURE_DIR
|
||||
FAIL 1 1 secret env var read(s) outside config.Load() — secrets must flow through Config → DI
|
||||
internal/service/handler.go:17 — os.Getenv("JWT_SECRET")
|
||||
internal/service/handler.go:17 os.Getenv("JWT_SECRET")
|
||||
FAIL 2c 1 CMS backend go.mod violation(s)
|
||||
FIXTURE_DIR/go.mod [missing-go-mod] missing go.mod
|
||||
FAIL 14 1 raw SQL statement(s) found outside sqlc/Bob
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user