Report every file in rescript format, in order, with short argument errors
Why
One file with a syntax error stopped rescript format, leaving other files unformatted; --check listed files in completion order with absolute paths, duplicate arguments counted twice, and invalid arguments surfaced raw compiler errors (#9243).
modifiedBehavior rescript format
representation
Before
After
a syntax error in one file ↦ the run stops; some other files stay unformattedformat --check ↦ files in completion order, absolute in project modeformat --check src/F.res src/F.res ↦ The 2 files listed above need formattingformat src/Missing.res ↦ We've found a bug for you! … I/O error: …: No such file or directoryformat src ↦ Error formatting src: don't know what to do with srcformat --stdin with a syntax error ↦ /tmp/rescript-format-7546c4.res:1:8-2:0a syntax error in one file ↦ every other file is formatted; the errors are reported, then the run failsformat --check ↦ files sorted, relative to the current directoryformat --check src/F.res src/F.res ↦ The file listed above needs formattingformat src/Missing.res ↦ src/Missing.res: No such fileformat src ↦ src is a directory; give .res or .resi files, or no arguments to format the projectformat --stdin with a syntax error ↦ <stdin>:1:8-2:0