-
|
The only description I found was The pre-commit hook seems to use the latter, despite being called Is there more of a difference between these two or is it really that both below are functional equivalent? rumdl check --fix || true
rumdl fmt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The only real difference is exit codes. The I just pushed a fix. The hooks now do what their names say: If you were only using |
Beta Was this translation helpful? Give feedback.
The only real difference is exit codes.
rumdl fmtalways exits 0.rumdl check --fixexits 1 when something can't be auto-fixed. Same rules, same fixes, same file writes, just different behavior when violations are left over.The
rumdl-fmtpre-commit hook was quietly runningrumdl check --fixunder the hood so it would fail on unfixable issues. Made sense at the time, but the name didn't match what was actually running.I just pushed a fix. The hooks now do what their names say:
rumdlrunscheck --fix(fails if anything is left unfixable),rumdl-fmtrunsrumdl fmt(pure formatter, always exits 0, fails only if files change). Same pattern as ruff'sruff+ruff-formatsplit. Use both together,