Closed C83 closed 6 years ago
gem 'rubocop', '~> 0.57.2', require: false
to fix the version of rubocop and bundle install
gem "relaxed-rubocop"
and inherit in .rubocop.yml
fileDisplayStyleGuide: true
and DisplayCopNames: true
show a link and the name of cop sourceAllCops: Exclude
to exclude few files of the verificationStyle/FrozenStringLiteralComment: Enabled: false
: blank line between comment and code is optionnalMetrics/BlockLength: Exclude:
The length of a line is 80. The rule is inactive with few directoryrubocop -a
correct all "offenses". We can see the kind of cop and the rule's URL
Why ?
Rubocop will help us to keep our code clean, and consistant and will warn us about various optimizations/best practices along the way.
Must have:
Reading list