Skip to content

refactor: remove duplicate zapscript code after go-zapscript migration#534

Merged
wizzomafizzo merged 1 commit intomainfrom
refactor/remove-duplicate-zapscript-code
Feb 12, 2026
Merged

refactor: remove duplicate zapscript code after go-zapscript migration#534
wizzomafizzo merged 1 commit intomainfrom
refactor/remove-duplicate-zapscript-code

Conversation

@wizzomafizzo
Copy link
Member

Summary

  • Delete advargs/helpers.goIsActionDetails, IsActionRun, IsModeShuffle were thin wrappers delegating to go-zapscript, never called from production code
  • Remove ShouldRun from advargs/parse.go — never called, When condition is checked directly in commands.go
  • Replace NormalizeTag in tags.go with a var alias to zapscript.NormalizeTag — identical implementation, removes duplicate regex vars
  • Remove NormalizeTagFilter from tags.go — only referenced in its own test, never used in production code

Remove local implementations that duplicate go-zapscript functions:
- Delete advargs/helpers.go (IsActionDetails, IsActionRun, IsModeShuffle
  wrappers that were never called)
- Remove ShouldRun from advargs/parse.go (never called, When condition
  checked directly in commands.go)
- Replace NormalizeTag in tags.go with alias to zapscript.NormalizeTag
  (identical implementation)
- Remove NormalizeTagFilter from tags.go (only used in tests, trivial
  wrapper)
@sentry
Copy link

sentry bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wizzomafizzo wizzomafizzo merged commit 14af520 into main Feb 12, 2026
11 checks passed
@wizzomafizzo wizzomafizzo deleted the refactor/remove-duplicate-zapscript-code branch February 12, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant