Knowledge Base: Lint, or a linter, is a static code analysis tool used to flag programming errors, bugs, stylistic errors and suspicious constructs.
Make sure you have your ruby environment(check compatibility) working before proceeding.
% gem install rubocop
.rubocop.yml file in your home(
% cd ~) directory for all ruby projects. Alternatively, you can create it in your project directory.
In your project's directory,
or you can specify a file or a directory of your choosing.
% rubocop lib/file.rb spec/
If you don't have rubocop on your terminal, try
bundle exec rubocop
% rubocop -a
Knowledge Base: Only safe offenses will be fixed with
Here is the list of rules with their categories: