Skip to content

fix: retire ZC1104, duplicate of ZC1188#1424

Merged
afadesigns merged 1 commit into
mainfrom
fix/retire-zc1104-duplicate
Jun 25, 2026
Merged

fix: retire ZC1104, duplicate of ZC1188#1424
afadesigns merged 1 commit into
mainfrom
fix/retire-zc1104-duplicate

Conversation

@afadesigns

Copy link
Copy Markdown
Owner

What

ZC1104 and ZC1188 both fired on export PATH=… with the same advice — every such line was double-reported. ZC1188 now owns that detection (its message adapts to a prepend or an append), so ZC1104 is stubbed to a no-op, following the retired-duplicate pattern already used for ZC1018/ZC1019. Legacy disabled_katas: [ZC1104] lists keep parsing.

ZC1103 (direct PATH=$PATH:… assignment, no export) is a distinct case and still fires.

Verification

  • Confirmed ZC1104 and ZC1188 fire on an identical input set; ZC1103 covers the non-export form separately.
  • Removes 33 redundant findings from the violation baseline; ZC1188 still fires on every one of those lines.
  • KATAS.md regenerated (ZC1104 -> "retired duplicate"); the ZC1104 test asserts no finding.
  • go test ./... passes, golangci-lint 0 issues, gocyclo clean, sweeps clean.

ZC1104 and ZC1188 both fired on `export PATH=…` with the same advice, so
every such line was reported twice. ZC1188 now owns that detection — its
message adapts to a prepend or an append — so ZC1104 is stubbed to a
no-op, following the retired-duplicate pattern already used for ZC1018
and ZC1019. Legacy `disabled_katas: [ZC1104]` lists keep parsing.

ZC1103 (direct `PATH=$PATH:…` assignment, no `export`) is a distinct case
and still fires. Removes 33 redundant findings from the violation
baseline. KATAS.md regenerated; the ZC1104 test now asserts no finding.

@redteamx redteamx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on review. ZC1104≡ZC1188 confirmed; retired-duplicate pattern (ZC1018/19); ZC1103 distinct; 33 redundant findings removed.

@redteamx redteamx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on review.

@github-actions github-actions Bot added docs Documentation changes ci CI/CD and workflow changes test Adding or correcting tests area/katas pkg/katas — detection logic labels Jun 25, 2026
@afadesigns afadesigns merged commit 23d0627 into main Jun 25, 2026
19 checks passed
@afadesigns afadesigns deleted the fix/retire-zc1104-duplicate branch June 25, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/katas pkg/katas — detection logic ci CI/CD and workflow changes docs Documentation changes test Adding or correcting tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants