Some bugfixes, improvements and workaround for nitprettty.
The two options `--no-inline` and `--line-width` allow to control some rules about line-breaks.
This can be useful especially for people that want more relaxed rules.
~~~sh
$ ./nitpretty --check ../lib | wc -l
224
$ ./nitpretty --check ../lib --line-width 0 --no-inline | wc -l
188
~~~
So 36 more files are identical to their pretty printing with those relaxed rules.
For information, the tool crashed on some files in lib with the version before the PR.
Note that a lot of more work is still needed, one can see very strange and inconsistent results if the line width is forced to 1.
Pull-Request: #1296
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>