Rubocop v0.29.0 Release Notes

Release Date: 2015-02-05 // about 9 years ago
  • 🆕 New features

    • 💻 #1430: Add --except option for disabling cops on the command line. ([@jonas054][])
    • #1506: Add auto-correct from EvenOdd cop. ([@blainesch][])
    • #1507: Debugger cop now checks for the Capybara debug methods save_and_open_page and save_and_open_screenshot. ([@rrosenblum][])
    • 🚅 #1539: Implement auto-correction for Rails/ReadWriteAttribute cop. ([@huerlisi][])
    • 🔧 #1324: Add AllCops/DisplayCopNames configuration option for showing cop names in reports, like --display-cop-names. ([@jonas054][])
    • #1271: Lambda cop does auto-correction. ([@lumeet][])
    • 👕 #1284: Support namespaces, e.g. Lint, in the arguments to --only and --except. ([@jonas054][])
    • #1276: SelfAssignment cop does auto-correction. ([@lumeet][])
    • ➕ Add auto-correct to RedundantException. ([@mattjmcnaughton][])
    • #1571: New cop StructInheritance checks for inheritance from Struct.new. ([@mmozuras][])
    • #1575: New cop DuplicateMethods points out duplicate method name in class and module. ([@d4rk5eed][])
    • #1144: New cop FirstParameterIndentation checks the indentation of the first parameter in a method call. ([@jonas054][])
    • #1627: New cop SpaceAroundBlockParameters checks the spacing inside and after block parameters pipes. ([@jonas054][])

    🔄 Changes

    • #1492: Abort when auto-correct causes an infinite loop. ([@dblock][])
    • Options -e/--emacs and -s/--silent are no longer recognized. Using them will now raise an error. ([@bquorning][])
    • #1565: Let --fail-level A cause exit with error if all offenses are auto-corrected. ([@jonas054][])
    • #1309: Add argument handling to MultilineBlockLayout. ([@lumeet][])

    🐛 Bugs fixed

    • #1634: Fix PerlBackrefs cop auto-corrections to not raise. ([@cshaffer][])
    • 💅 #1553: Fix bug where Style/EmptyLinesAroundAccessModifier interfered with Style/EmptyLinesAroundBlockBody when there is and access modifier at the beginning of a block. ([@volkert][])
    • 👕 Handle element assignment in Lint/AssignmentInCondition. ([@jonas054][])
    • #1484: Fix EmptyLinesAroundAccessModifier incorrectly finding a violation inside method calls with names identical to an access modifier. ([@dblock][])
    • 🛠 Fix bug concerning Exclude properties inherited from a higher directory level. ([@jonas054][])
    • #1500: Fix crashing --auto-correct --only IndentationWidth. ([@jonas054][])
    • #1512: Fix false negative for typical string formatting examples. ([@kakutani][], [@jonas054][])
    • 🔧 #1504: Fail with a meaningful error if the configuration file is malformed. ([@bquorning][])
    • 🛠 Fix bug where auto_correct Rake tasks does not take in the options specified in its parent task. ([@rrosenblum][])
    • #1054: Handle comments within concatenated strings in LineEndConcatenation. ([@yujinakayama][], [@jonas054][])
    • #1527: Make auto-correct BracesAroundHashParameter leave the correct number of spaces. ([@mattjmcnaughton][])
    • 💅 #1547: Don't print [Corrected] when auto-correction was avoided in Style/Semicolon. ([@jonas054][])
    • #1573: Fix assignment-related auto-correction for BlockAlignment. ([@lumeet][])
    • #1587: Exit with exit code 1 if there were errors ("crashing" cops). ([@jonas054][])
    • #1574: Avoid auto-correcting Hash.new to {} when braces would be interpreted as a block. ([@jonas054][])
    • #1591: Don't check parameters inside [] in MultilineOperationIndentation. ([@jonas054][])
    • 🚅 #1509: Ignore class methods in Rails/Delegate. ([@bbatsov][])
    • 📚 #1594: Fix @example warnings in Yard Doc documentation generation. ([@mattjmcnaughton][])
    • #1598: Fix bug in file inclusion when running from another directory. ([@jonas054][])
    • 🖨 #1580: Don't print [Corrected] when auto-correction was avoided in TrivialAccessors. ([@lumeet][])
    • #1612: Allow expand_path on inherit_from in .rubocop.yml. ([@mattjmcnaughton][])
    • 💅 #1610: Check that class method names actually match the name of the containing class/module in Style/ClassMethods. ([@bbatsov][])