Lint your project


First step - add overcommit to your gemfile and create configuration file. In that file you will initialize all linters which will check you'r project.
gem 'overcommit'
touch .overcommit.yml

To end configure overcommit - run
overcommit --install
overcommit --sign

So we will use seven linters. Let's add it to gemfile and configure!
gem 'rubocop', require: false
touch .rubocop.yml
gem 'fasterer'
touch .fasterer.yml
gem 'bundler-audit'
gem 'reek'
touch config.reek
gem 'rails_best_practices'
gem 'brakeman', require: false
gem 'foodcritic'
gem 'haml-lint'

There are some example for configuration files
overcommit
rubocop
fasterer
haml-lint
config-reek

(c) https://medium.com/@kirill_shevch

Comments