Rubocop v1.3.0 Release Notes

Release Date: 2020-11-12 // over 3 years ago
  • ๐Ÿ†• New features

    • ๐Ÿ’Ž #8761: Read required_ruby_version from gemspec file if it exists. (@HeroProtagonist)
    • ๐Ÿ‘• #9001: Add new Lint/EmptyClass cop. (@fatkodima)
    • ๐Ÿ‘• #9025: Add AllowedMethods option to Lint/ConstantDefinitionInBlock. (@koic)
    • ๐Ÿ’… #9014: Support auto-correction for Style/IfInsideElse. (@koic)
    • ๐Ÿ’… #8483: Add new Style/StaticClass cop. (@fatkodima)
    • ๐Ÿ’… #9020: Add new Style/NilLambda cop to check for lambdas that always return nil. (@dvandersluis)
    • ๐Ÿ‘• #8404: Add new Lint/DuplicateBranch cop. (@fatkodima)

    ๐Ÿ› Bug fixes

    • ๐Ÿ’… #8499: Fix Style/IfUnlessModifier and Style/WhileUntilModifier to prevent an offense if there are both first-line comment and code after end block. (@dsavochkin)
    • ๐Ÿ’… #8996: Fix a false positive for Style/MultipleComparison when comparing two sides of the disjunction is unrelated. (@koic)
    • ๐Ÿ‘• #8975: Fix an infinite loop when autocorrecting Layout/TrailingWhitespace + Lint/LiteralInInterpolation. (@fatkodima)
    • ๐Ÿ’… #8998: Fix an error for Style/NegatedIfElseCondition when using negated condition and if branch body is empty. (@koic)
    • ๐Ÿ’… #9008: Mark Style/InfiniteLoop as unsafe. (@marcandre)

    ๐Ÿ”„ Changes

    • โšก๏ธ #8978: Update Layout/LineLength autocorrection to be able to handle method calls with long argument lists. (@dvandersluis)
    • โšก๏ธ #9015: Update Lint/EmptyBlock to allow for empty lambdas. (@dvandersluis)
    • ๐Ÿ’… #9022: Add NOTE to keywords of Style/CommentAnnotation. (@koic)
    • ๐Ÿ‘• #9011: Mark autocorrection for Lint/Loop as unsafe. (@dvandersluis)
    • ๐Ÿ’… #9026: Update Style/DocumentDynamicEvalDefinition to detect comment blocks that document the evaluation. (@dvandersluis)
    • ๐Ÿšš #9004: Remove obsolete gem SafeYAML compatibility. (@marcandre)
    • ๐Ÿ’… #9023: Mark unsafe for Style/CollectionCompact. (@koic)
    • #9012: Allow AllowedIdentifiers to be specified for Naming/VariableNumber. (@dvandersluis)