Rubocop v0.49.0 Release Notes

Release Date: 2017-05-24 // almost 7 years ago
  • ๐Ÿ†• New features

    • #117: Add --parallel option for running RuboCop in multiple processes or threads. ([@jonas054][])
    • โž• Add auto-correct support to Style/MixinGrouping. ([@rrosenblum][])
    • ๐Ÿ‘ท #4236: Add new Rails/ApplicationJob and Rails/ApplicationRecord cops. ([@tjwp][])
    • ๐ŸŽ #4078: Add new Performance/Caller cop. ([@alpaca-tc][])
    • ๐ŸŽ #4314: Check slow hash accessing in Array#sort by Performance/CompareWithBlock. ([@pocke][])
    • ๐Ÿ’… #3438: Add new Style/FormatStringToken cop. ([@backus][])
    • ๐Ÿ‘• #4342: Add new Lint/ScriptPermission cop. ([@yhirano55][])
    • ๐Ÿ’… #4145: Add new Style/YodaCondition cop. ([@smakagon][])
    • #4403: Add public API Cop.autocorrect_incompatible_with for specifying other cops that should not auto-correct together. ([@backus][])
    • ๐Ÿ’… #4354: Add auto-correct to Style/FormatString. ([@hoshinotsuyoshi][])
    • ๐Ÿ’… #4021: Add new Style/MultipleComparison cop. ([@dabroz][])
    • ๐Ÿ†• New Lint/RescueType cop. ([@rrosenblum][])
    • #4328: Add --ignore-parent-exclusion flag to ignore AllCops/Exclude inheritance. ([@nelsonjr][])

    ๐Ÿ”„ Changes

    • ๐Ÿ’… #4262: Add new MinSize configuration to Style/SymbolArray, consistent with the same configuration in Style/WordArray. ([@scottmatthewman][])
    • ๐Ÿ‘• #3400: Remove auto-correct support from Lint/Debugger. ([@ilansh][])
    • ๐Ÿšš #4278: Move all cops dealing with whitespace into a new department called Layout. ([@jonas054][])
    • #4320: Update Rails/OutputSafety to disallow wrapping raw or html_safe with safe_join. ([@klesse413][])
    • #4336: Store rubocop_cache in safer directories. ([@jonas054][])
    • ๐Ÿ‘• #4361: Use relative path for offense message in Lint/DuplicateMethods. ([@pocke][])
    • 0๏ธโƒฃ #4385: Include .jb file by default. ([@pocke][])

    ๐Ÿ› Bug fixes

    • ๐Ÿ’… #4265: Require a space before first argument of a method call in Style/SpaceBeforeFirstArg cop. ([@cjlarose][])
    • ๐Ÿ‘• #4237: Fix false positive in Lint/AmbiguousBlockAssociation cop for lambdas. ([@smakagon][])
    • ๐Ÿ’Ž #4242: Add Capfile to the list of known Ruby filenames. ([@bbatsov][])
    • ๐Ÿš… #4240: Handle ||= in Rails/RelativeDateConstant. ([@bbatsov][])
    • ๐Ÿš… #4241: Prevent Rails/Blank and Rails/Present from breaking when there is no explicit receiver. ([@rrosenblum][])
    • ๐Ÿš… #4249: Handle multiple assignment in Rails/RelativeDateConstant. ([@bbatsov][])
    • ๐Ÿ’Ž #4250: Improve a bit the Ruby code detection config. ([@bbatsov][])
    • ๐Ÿ’… #4283: Fix Style/EmptyCaseCondition auto-correct bug - when first when branch includes comma-delimited alternatives. ([@ilansh][])
    • ๐Ÿ’… #4268: Handle end-of-line comments when auto-correcting Style/EmptyLinesAroundAccessModifier. ([@vergenzt][])
    • ๐Ÿ’… #4275: Prevent Style/MethodCallWithArgsParentheses from blowing up on yield. ([@drenmi][])
    • #3969: Handle multiline method call alignment for arguments to methods. ([@jonas054][])
    • 0๏ธโƒฃ #4304: Allow enabling whole departments when DisabledByDefault is true. ([@jonas054][])
    • ๐Ÿš… #4264: Prevent Rails/SaveBang from blowing up when using the assigned variable in a hash. ([@drenmi][])
    • #4310: Treat paths containing invalid byte sequences as non-matches. ([@mclark][])
    • ๐Ÿš… #4063: Fix Rails/ReversibleMigration misdetection. ([@gprado][])
    • ๐Ÿ”’ #4339: Fix false positive in Security/Eval cop for multiline string lietral. ([@pocke][])
    • ๐Ÿ”’ #4339: Fix false negative in Security/Eval cop for Binding#eval. ([@pocke][])
    • #4327: Prevent Layout/SpaceInsidePercentLiteralDelimiters from registering offenses on execute-strings. ([@drenmi][])
    • ๐Ÿ’… #4371: Prevent Style/MethodName from complaining about unary operator definitions. ([@drenmi][])
    • ๐ŸŽ #4366: Prevent Performance/RedundantMerge from blowing up on double splat arguments. ([@drenmi][])
    • ๐Ÿ’… #4352: Fix the auto-correct of Style/AndOr when Enumerable accessors ([]) are used. ([@rrosenblum][])
    • ๐Ÿ’… #4393: Prevent Style/InverseMethods from registering an offense for methods that are double negated. ([@rrosenblum][])
    • #4394: Prevent some cops from breaking on safe navigation operator. ([@drenmi][])
    • ๐Ÿš… #4260: Prevent Rails/SkipsModelValidations from registering an offense for FileUtils.touch. ([@rrosenblum][])