Skip to content

fix: address PR #91 code review findings for --list/--dry-run - #92

Merged
sivchari merged 2 commits into
mainfrom
worktree-fix+dry-run-list-review
Jul 10, 2026
Merged

sivchari merged 2 commits into
mainfrom
worktree-fix+dry-run-list-review

Conversation

@sivchari

Copy link
Copy Markdown
Owner

Summary

Follow-up fixes for issues found in review of #91 (already merged):

  • writeDryRunFile no longer swallows the tabwriter Flush() error via nolint; it now returns and propagates it.
  • --dry-run now hints that an empty result may be due to the --incremental filter (default true), suggesting --incremental=false.
  • gomu run --list now warns on stderr when combined with other run flags (e.g. --output) that it silently ignores.

Test plan

  • go build ./...
  • go vet ./...
  • gofmt -l .
  • go test ./...

sivchari added 2 commits July 10, 2026 17:09
Propagate the tabwriter Flush error in writeDryRunFile instead of
suppressing it with nolint, hint that --dry-run's empty result may be
due to the incremental filter, and warn on stderr when --list is
combined with flags that it silently ignores.
golangci-lint's wsl_v5 linter requires blank line above a range loop
when no variable is shared with the immediately preceding statement.
@github-actions

Copy link
Copy Markdown
Contributor

🧬 Mutation Testing Results

Quality Gate: PASSED

Overall Mutation Score: 38.3%
Total Mutants: 605
Killed: 232

Files with Mutations

File Score Mutants Killed
/home/runner/work/gomu/gomu/pkg/gomu/engine.go 38.3% 605 232

Generated by gomu mutation testing

@sivchari
sivchari merged commit 9f58eec into main Jul 10, 2026
5 checks passed
@sivchari
sivchari deleted the worktree-fix+dry-run-list-review branch July 10, 2026 15:55
@github-actions github-actions Bot mentioned this pull request Jul 10, 2026
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