A RuboCop extension that focuses on higher-level concepts, like checking that code reads from top to bottom, or only unit testing public methods. Ther

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-10-28 06:30:06

A RuboCop extension that focuses on higher-level concepts, like checking that code reads from top to bottom, or only unit testing public methods. There are some lower-level cops as well.

All cops are located under lib/rubocop/cop/obsession, and contain examples and documentation. Their default configuration is defined in config/default.yml.

These cops are opinionated and can feel like too much, that is why some of them are disabled by default. Do not hesitate to enable or disable them as needed.

I wrote them to scratch an itch I had at one point or another. Tastes change with time, and I personally do not use some of them any more, but others might find them useful.

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Leave a Comment