Skip to content

Commit 44721d5

Browse files
jar-stripeclaude
andauthored
fix: show unfixable rubocop offenses on format failure (#1897)
Replace `-o /dev/null` with `--display-only-fail-level-offenses`. This suppresses the ~1.5MB report of corrected offenses (which would overflow the caller's buffer) while still showing uncorrectable offenses directly. Committed-By-Agent: claude Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bf038f5 commit 44721d5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

justfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ alias lint-check := format-check
2323
# ⭐ check style & formatting for all files, fixing what we can
2424
lint: (format-check "--autocorrect")
2525

26-
# NOTE: "-o /dev/null" is vital - rubocop has super noisy output and codegen will crash when formatting ruby if everything gets printed
27-
# so, we send all its output to the void
28-
# copy of `lint` with less output
29-
format: (format-check "-o /dev/null --autocorrect")
26+
# Quiet version of `lint` for use by codegen and CI.
27+
# --display-only-fail-level-offenses suppresses the ~1.5MB report of corrected
28+
# offenses and only shows uncorrectable ones.
29+
format: (format-check "--autocorrect --display-only-fail-level-offenses")
3030

3131
update-certs: install
3232
bundle exec rake update_certs

0 commit comments

Comments
 (0)