This PR reorganizes/refactors code around the topic of reading arguments from the command line. Before this PR the CLI arguments were read (and defaulted) in bin/ruboclean executable, which made it difficult to test. With theses changes all arguments ARGV are passed unchanged into Ruboclean.run_from_cli! so that we can test it properly.
Besides that, the PR contains various other improvements:
[x] changed/fixed the namespaces in test files
[x] added a --silent option to mute the output
[x] fix bug/crash when provided an empty input file
This PR reorganizes/refactors code around the topic of reading arguments from the command line. Before this PR the CLI arguments were read (and defaulted) in
bin/ruboclean
executable, which made it difficult to test. With theses changes all argumentsARGV
are passed unchanged intoRuboclean.run_from_cli!
so that we can test it properly.Besides that, the PR contains various other improvements:
--silent
option to mute the output