Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Formatter tools were outputting file-by-file status even when nothing changed, producing 100+ lines of noise. Now they only show section headers and a final success message (~6 lines).

Changes:

  • prettier: Use --log-level error for write, --log-level warn for check
  • ruff: Add --quiet flag to suppress detailed output
  • shfmt: Redirect stdout to /dev/null during formatting

Output still shows warnings when files need formatting and maintains proper exit codes.

Generated with mux

- Use --log-level error for prettier --write (suppresses file-by-file output)
- Use --log-level warn for prettier --check (shows warnings, not verbose logs)
- Add --quiet flag to ruff format commands
- Redirect shfmt output to /dev/null during formatting

Before: Listed every file checked with timing info (100+ lines of output)
After: Only shows section headers and final success message (~6 lines)

Generated with `mux`
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Codex feedback: --log-level warn suppresses the file list when prettier
--check fails, making it impossible to know which files need formatting.

--log-level log:
- Shows failing file paths when issues are found
- Suppresses verbose (unchanged) messages for clean files
- Maintains clean output in success case
@ammario ammario changed the title 🤖 refactor: reduce make fmt verbosity when no changes 🤖 ci: reduce make fmt verbosity when no changes Nov 14, 2025
@ammario ammario merged commit 7f65d77 into main Nov 14, 2025
13 checks passed
@ammario ammario deleted the reduce-make-fmt-verbosity branch November 14, 2025 16: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