Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ run:
timeout: 5m

linters:
# Mandatory org bar. gocritic is non-negotiable; gosec covers code-level
# security alongside the nox scan. gocyclo/dupl are intentionally NOT here
# Mandatory org bar. gocritic is non-negotiable; code-level security is
# owned by nox, not gosec. gocyclo/dupl are intentionally NOT here
# — they are noisy and repo-specific; opt in per repo if a codebase wants
# them, but they are not part of the shared gate.
default: standard
Expand All @@ -22,13 +22,6 @@ linters:
- unconvert
- unparam
- gocritic # org engineering bar — do not drop
- gosec
exclusions:
rules:
# Tests legitimately use math/rand (deterministic fixtures, fuzz
# seeds). G404 weak-RNG does not apply to test code.
- path: _test\.go
linters: [gosec]

formatters:
enable:
Expand Down
1 change: 0 additions & 1 deletion viz/html/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (r *Renderer) Render(machine *viz.VizMachine) (string, error) {
}{
// json.Marshal escapes HTML characters by default, so casting to template.JS is safe here.
// We need raw JSON for the script tag.
// #nosec G203
MachineJSON: template.JS(jsonData),
}

Expand Down
Loading