The linter file that doesn't lead junior developers to bad habits.
Read .rubocop.yml for details.
- Create a
.rubocop.yml
config file# Configure Rubocop to use the config file in the Scaffolint GitHub repo inherit_from: - https://raw.githubusercontent.com/makersacademy/scaffolint/v1.1.0/.rubocop.yml
- Add Rubocop to your
Gemfile
group :development, :test do gem "rubocop", "0.79.0" end
- Run
bundle install
- Run
rubocop
We recommend installing Rubocop support for your editor to get fast feedback as you write your code:
- Visual Studio Code: ruby-rubocop extension
- Atom: linter-rubocop package