Rubocop v0.54.0 Release Notes

Release Date: 2018-03-21 // about 6 years ago
  • ๐Ÿ†• New features

    • ๐Ÿš… #5597: Add new Rails/HttpStatus cop. ([@anthony-robin][])
    • ๐Ÿ’… #5643: Add new Style/UnpackFirst cop. ([@bdewater][])

    ๐Ÿ› Bug fixes

    • ๐ŸŽ #5744: Teach Performance/StartWith and EndWith cops to look for Regexp#match?. ([@bdewater][])
    • #5683: Fix message for Naming/UncommunicativeXParamName cops. ([@jlfaber][])
    • #5680: Fix Layout/ElseAlignment for rescue/else/ensure inside do/end blocks. ([@YukiJikumaru][])
    • ๐Ÿ“š #5642: Fix Style/Documentation :nodoc: for compact-style nested modules/classes. ([@ojab][])
    • #5648: Suggest valid memoized instance variable for predicate method. ([@satyap][])
    • #5670: Suggest valid memoized instance variable for bang method. ([@pocke][])
    • #5623: Fix Bundler/OrderedGems when a group includes duplicate gems. ([@colorbox][])
    • #5633: Fix broken --fail-fast. ([@mmyoji][])
    • ๐Ÿ’… #5630: Fix false positive for Style/FormatStringToken when using placeholder arguments in format method. ([@koic][])
    • #5651: Fix NoMethodError when specified config file that does not exist. ([@onk][])
    • #5647: Fix encoding method of RuboCop::MagicComment::SimpleComment. ([@htwroclau][])
    • ๐Ÿ’… #5619: Do not register an offense in Style/InverseMethods when comparing constants with <, >, <=, or >=. If the code is being used to determine class hierarchy, the correction might not be accurate. ([@rrosenblum][])
    • ๐Ÿ’… #5641: Disable Style/TrivialAccessors auto-correction for def with private. ([@pocke][])
    • ๐Ÿ›  Fix bug where Style/SafeNavigation does not auto-correct all chained methods resulting in a Lint/SafeNavigationChain offense. ([@rrosenblum][])
    • #5436: Allow empty kwrest args in UncommunicativeName cops. ([@pocke][])
    • #5674: Fix auto-correction of Layout/EmptyComment when the empty comment appears on the same line as code. ([@rrosenblum][])
    • ๐Ÿ’… #5679: Fix a false positive for Style/EmptyLineAfterGuardClause when guard clause is before rescue or ensure. ([@koic][])
    • ๐Ÿ”’ #5694: Match Rails versions with multiple digits when reading the TargetRailsVersion from the bundler lock files. ([@roberts1000][])
    • ๐Ÿ’… #5700: Fix a false positive for Style/EmptyLineAfterGuardClause when guard clause is before else. ([@koic][])
    • ๐Ÿ›  Fix false positive in Naming/ConstantName when using conditional assignment. ([@drenmi][])

    ๐Ÿ”„ Changes

    • 0๏ธโƒฃ #5626: Change Naming/UncommunicativeMethodParamName add to to allowed names in default config. ([@unused][])
    • ๐Ÿ”ง #5640: Warn about user configuration overriding other user configuration only with --debug. ([@jonas054][])
    • #5637: Fix error for Layout/SpaceInsideArrayLiteralBrackets when contains an array literal as an argument after a heredoc is started. ([@koic][])
    • ๐Ÿ”’ #5610: Use gems.locked or Gemfile.lock to determine the best TargetRubyVersion when it is not specified in the config. ([@roberts1000][])
    • ๐Ÿ’… #5390: Allow exceptions to Style/InlineComment for inline comments which enable or disable rubocop cops. ([@jfelchner][])
    • โž• Add progress bar to offenses formatter. ([@drewpterry][])
    • ๐Ÿ’Ž #5498: Correct IndentHeredoc message for Ruby 2.3 when using <<~ operator with invalid indentation. ([@hamada14][])