.rubocop.yml seems outdated and it says like the following error messages when you run bundle exec rake rubocop just after cloned repository then ran ./configure.
Running RuboCop...
.rubocop.yml: Metrics/LineLength has the wrong namespace - should be Layout
.rubocop.yml: Style/FileName has the wrong namespace - should be Naming
/Users/rito/Projects/manicmaniac/danger-foo/.rubocop.yml: Warning: no department given for PercentLiteralDelimiters.
Error: The `Layout/AlignHash` cop has been renamed to `Layout/HashAlignment`.
(obsolete configuration found in .rubocop.yml, please update it)
The `Layout/IndentHash` cop has been renamed to `Layout/FirstHashElementIndentation`.
(obsolete configuration found in .rubocop.yml, please update it)
The `Layout/IndentHeredoc` cop has been renamed to `Layout/HeredocIndentation`.
(obsolete configuration found in .rubocop.yml, please update it)
The `Style/BracesAroundHashParameters` cop has been removed. Please use and/or instead.
(obsolete configuration found in .rubocop.yml, please update it)
RuboCop failed!
Solution
Update .rubocop.yml to resolve those warnings and errors
Update supported Ruby versions because the current version of RuboCop doesn't support Ruby less than 2.5.
Run bundle exec rubocop -A to solve linter warnings
Potentially rubocop -A might change the semantics but I confirmed all changes are valid
I also confirmed all linter warnings have gone after running rubocop -A
Problem
.rubocop.yml seems outdated and it says like the following error messages when you run
bundle exec rake rubocop
just after cloned repository then ran./configure
.Solution
bundle exec rubocop -A
to solve linter warningsrubocop -A
might change the semantics but I confirmed all changes are validrubocop -A