nebulab / erb-formatter

Format ERB files with speed and precision
MIT License
135 stars 22 forks source link

Continue to format other files after error #22

Open nevans opened 1 year ago

nevans commented 1 year ago

When one file has an parse error, I would prefer that formatting continues for all of the other files that have no issue (after printing the error message). There should be a command line flag to enable or disable this behavior. My preference is to continue by default, but fail-fast by default (i.e. the current behavior) would be fine too.

elia commented 1 year ago

@nevans that works for me:

Any chance you could try to send a PR for that?

elia commented 1 year ago

Upon further thinking I think the option can be named --no-fail-fast and also accept --fail-fast which would be on by default.

This is tangentially related to #17