I've enabled RuboCop to enforce a number of new coding style rules.
What does this mean for you?
This means your build will fail if you don't follow the coding conventions. This may be annoying at first but it will ensure that the project is written in a consistent style, despite having many diverse open-source contributors.
Who made up these rules?
By default, RuboCop enforces the rules prescribed in
The Ruby Style Guide. These rules have been thoughtfully considered and are typically exist for good reasons. That said, RuboCop is highly
configurable and makes it easy to override rules that we decide aren't right for this project.
How can I check whether I'm following the rules?
You can run the following command from within the RapidFTR Rails application:
bundle exec rubocop --rails
RuboCop has the ability to automatically fix certain style guide violations. Just add the --auto-correct flag (or -a for short) to the above command.