How to Use: rubocop

Install Link to heading

gem install rubocop

Configure Link to heading

Create a global .rubocop.yml file in your home directory:

touch ~/.rubocop.yml

And add in any general rules:

---

Layout/HashAlignment:
  EnforcedColonStyle: table

Style/WordArray:
  EnforcedStyle: brackets

Project Link to heading

Do the same thing as above, but in your project root directory.

NOTE: Do not inherit from global config inside your project, EVER!

Run Link to heading

Standalone:

rubocop

Or in a project:

bundle exec rubocop