Skip to content

Conversation

@croaky
Copy link
Owner

@croaky croaky commented Dec 31, 2025

  • rename fileName variable to headerComment (it holds a comment, not
    a filename)
  • remove unnecessary filepath.FromSlash conversion (use forward slashes
    consistently since this is a Unix filter tool)
  • use t.TempDir() in tests instead of manual setup/teardown
  • clarify README terminology: "block markers" with "block name"
    instead of "magic comments"

These changes reduce complexity and better align with Go idioms for
a ~370 line single-file CLI tool.

Co-Authored-By: Warp agent@warp.dev

- rename fileName variable to headerComment (it holds a comment, not
  a filename)
- remove unnecessary filepath.FromSlash conversion (use forward slashes
  consistently since this is a Unix filter tool)
- use t.TempDir() in tests instead of manual setup/teardown
- clarify README terminology: "block markers" with "block name"
  instead of "magic comments"

These changes reduce complexity and better align with Go idioms for
a ~370 line single-file CLI tool.

Co-Authored-By: Warp <agent@warp.dev>
@croaky croaky merged commit 0da688f into main Dec 31, 2025
2 checks passed
@croaky croaky deleted the croaky/code-review branch December 31, 2025 14:32
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.

2 participants