Skip to content

Update Rubocop to 0.82.0

Resolves

  • Update rubocop to 0.82.0
  • Update rubocop-rails dependency to 2.5
  • Update rubocop-performance dependency to 1.5.2

Cop Rename/Changes

Error: The `Layout/AlignArray` cop has been renamed to `Layout/ArrayAlignment`.
(obsolete configuration found in rubocop-layout.yml, please update it)
The `Layout/AlignHash` cop has been renamed to `Layout/HashAlignment`.
(obsolete configuration found in rubocop-layout.yml, please update it)
The `Layout/AlignParameters` cop has been renamed to `Layout/ParameterAlignment`.
(obsolete configuration found in rubocop-layout.yml, please update it)
The `Layout/IndentAssignment` cop has been renamed to `Layout/AssignmentIndentation`.
(obsolete configuration found in rubocop-layout.yml, please update it)
The `Layout/IndentHeredoc` cop has been renamed to `Layout/HeredocIndentation`.
(obsolete configuration found in rubocop-layout.yml, please update it)
The `Layout/Tab` cop has been renamed to `Layout/IndentationStyle`.
(obsolete configuration found in rubocop-layout.yml, please update it)
The `Layout/TrailingBlankLines` cop has been renamed to `Layout/TrailingEmptyLines`.
(obsolete configuration found in rubocop-layout.yml, please update it)

Error: The `Lint/EndInMethod` cop has been renamed to `Style/EndBlock`. 
(obsolete configuration found in rubocop-lint.yml, please update it)
The `Lint/HandleExceptions` cop has been renamed to `Lint/SuppressedException`.
(obsolete configuration found in rubocop-lint.yml, please update it)
The `Lint/StringConversionInInterpolation` cop has been renamed to `Lint/RedundantStringCoercion`.
(obsolete configuration found in rubocop-lint.yml, please update it)
The `Lint/UnneededSplatExpansion` cop has been renamed to `Lint/RedundantSplatExpansion`.
(obsolete configuration found in rubocop-lint.yml, please update it)

Error: The `Naming/UncommunicativeMethodParamName` cop has been renamed to `Naming/MethodParameterName`.
(obsolete configuration found in rubocop-naming.yml, please update it)
obsolete parameter NamePrefixBlacklist (for Naming/PredicateName) found in rubocop-naming.yml
`NamePrefixBlacklist` has been renamed to `ForbiddenPrefixes`.

Error: The `Style/UnneededCapitalW` cop has been renamed to `Style/RedundantCapitalW`.
(obsolete configuration found in rubocop-style.yml, please update it)
The `Style/UnneededPercentQ` cop has been renamed to `Style/RedundantPercentQ`.
(obsolete configuration found in rubocop-style.yml, please update it)
The `Style/BracesAroundHashParameters` cop has been removed.
(obsolete configuration found in rubocop-style.yml, please update it)

New Cops introduced by Update and Configured

The following cops were added to RuboCop, but are not configured. Please set Enabled to either `true` or `false` in your `.rubocop.yml` file:
 - Layout/SpaceAroundMethodCallOperator (0.82)
 - Lint/RaiseException (0.81)
 - Lint/StructNewOverride (0.81)
 - Style/ExponentialNotation (0.82)
 - Style/HashEachMethods (0.80)
 - Style/HashTransformKeys (0.80)
 - Style/HashTransformValues (0.80)
For more information: https://docs.rubocop.org/en/latest/versioning/

Closes #10 (closed)

Edited by Doug Stull

Merge request reports