feat(go): exclude node_modules and add fmt overrides - #31
Merged
Conversation
|
Thank you for contributing to this project! 😊🕹️ |
Add ! -path '*/node_modules/*' to all find commands in fmt and fmt-check recipes. npm packages like flatted ship .go files that break formatting checks in monorepos with ui/ directories. Add JUST_GO_FMT_EXCLUDES env var so consuming projects can pass extra find exclusions without forking the shared justfile. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
retr0h
force-pushed
the
feat/fmt-excludes
branch
from
April 10, 2026 05:43
b9c8da8 to
7d69049
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
! -path '*/node_modules/*'to allfindcommands infmtandfmt-checkrecipesJUST_GO_FMT_EXCLUDESenv var for project-specific extra exclusionsnpm packages like
flattedship.gofiles that break formattingchecks in monorepos with
ui/directories (e.g., osapi's embeddedReact UI).
node_modulesshould always be excluded alongside.worktreesand.claude.The
JUST_GO_FMT_EXCLUDESvariable lets consuming projects addextra
findexclusions without forking the shared justfile.Test plan
findcommands excludenode_modulesjust go::fmt-checkin osapi withui/node_modulespresent🤖 Generated with Claude Code