lxxxvi / ruboclean

Ruby gem that puts `.rubocop.yml` into order.
MIT License
18 stars 4 forks source link

Reorg code #27

Closed lxxxvi closed 1 year ago

lxxxvi commented 1 year ago

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: