github rubocop/rubocop v1.2.0
RuboCop 1.2

latest releases: v1.64.1, v1.64.0, v1.63.5...
3 years ago

New features

  • #8983: Support auto-correction for Naming/HeredocDelimiterCase. (@koic)
  • #8004: Add new GitHubActionsFormatter formatter. (@lautis)
  • #8175: Add new AllowedCompactTypes option for Style/RaiseArgs. (@pdobb)
  • #8566: Add new Style/CollectionCompact cop. (@fatkodima)
  • #8925: Add --display-time option for displaying elapsed time of rubocop command. (@joshuapinter)
  • #8967: Add new Style/NegatedIfElseCondition cop. (@fatkodima)
  • #8984: Support auto-correction for Style/DoubleNegation. (@koic)
  • #8992: Support auto-correction for Lint/ElseLayout. (@koic)
  • #8988: Support auto-correction for Lint/UselessSetterCall. (@koic)
  • #8982: Support auto-correction for Naming/BinaryOperatorParameterName. (@koic)

Bug fixes

  • #8989: Fix multibyte support in the regexp node handler that led Style/RedundantRegexpEscape to malfunction and corrupt a program in auto-correction. (@knu)
  • #8912: Fix Layout/ElseAlignment for rescue/else/ensure inside do/end blocks with assignment. (@miry)
  • #8971: Fix a false alarm for # rubocop:disable Lint/EmptyBlock inline comment with Lint/RedundantCopDisableDirective. (@koic)
  • #8976: Fix an incorrect auto-correct for Style/KeywordParametersOrder when when kwoptarg is before kwarg and argument parentheses omitted. (@koic)
  • #8084: Fix a bug in how Layout/SpaceAroundBlockParameters handles block parameters with a trailing comma. (@bquorning)
  • #8966: Fix Layout/SpaceInsideParens to enforce no spaces in empty parens for all styles. (@joshuapinter)

Changes

  • #5717: Support defined?-based memoization for Naming/MemoizedInstanceVariableName cop. (@fatkodima)
  • #8964: Extend Naming/VariableNumber cop to handle method names and symbols. (@fatkodima)

Don't miss a new rubocop release

NewReleases is sending notifications on new releases.