Skip to content

@bbatsov bbatsov released this Sep 13, 2021

New features

  • #7849: Add new Lint/AmbiguousOperatorPrecedence cop. (@dvandersluis)
  • #9061: Add new Lint/IncompatibleIoSelectWithFiberScheduler cop. (@koic)

Bug fixes

  • #10067: Fix an error for Lint/NumberConversion when using nested number conversion methods. (@koic)
  • #10054: Fix a false positive for Layout/SpaceAroundOperators when match operators between << and +=. (@koic)
  • #10061: Fix a false positive for Style/RedundantSort when using size method in the block. (@koic)
  • #10063: Fix a false positive for Layout/SingleLineBlockChain when method call chained on a new line after a single line block with trailing dot. (@koic)
  • #10064: Fix Style/ExplicitBlockArgument corrector assuming any existing block argument was named block. (@byroot)
  • #10070: Fix a false positive for Style/MutableConstant when using non-interpolated heredoc in Ruby 3.0. (@koic)

Changes

  • #9674: Disable Style/AsciiComments by default. (@dvandersluis)
  • #10051: Improve the messaging for Style/Documentation to be more clear about what class/module needs documentation. (@dvandersluis)
  • #10074: Update Naming/InclusiveLanguage to be disabled by default. (@dvandersluis)
  • #10068: Mark Style/AndOr as unsafe auto-correction. (@koic)
Assets 2

@bbatsov bbatsov released this Aug 26, 2021

New features

  • #10040: Make Lint/Debugger aware of debug.rb. (@koic)
  • #9580: Add a new cop that enforces which bundler gem file to use. (@gregfletch)

Bug fixes

  • #10033: Fix an incorrect auto-correct for Style/BlockDelimiters when there is a comment after the closing brace and using method chanin. (@koic)
  • #6630: Updated Style/CommentAnnotation to be able to handle multiword keyword phrases. (@dvandersluis)
  • #7836: Update Style/BlockDelimeters to add begin...end when converting a block containing rescue or ensure to braces. (@dvandersluis)
  • #10031: Fix a false positive for Style/HashExcept when comparing with hash value. (@koic)

Changes

Assets 2

@bbatsov bbatsov released this Aug 26, 2021

Bug fixes

  • #10017: Fixan error for Layout/RescueEnsureAlignment when using zsuper with block. (@koic)
  • #10011: Fix a false positive for Style/RedundantSelfAssignmentBranch when using instance variable, class variable, and global variable. (@koic)
  • #10010: Fix a false positive for Style/DoubleNegation when !! is used at return location and before rescue keyword. (@koic)
  • #10014: Fix Style/Encoding to handle more situations properly. (@dvandersluis)
  • #10016: Fix conflict between Style/SoleNestedConditional and Style/NegatedIf/Style/NegatedUnless. (@dvandersluis)
  • #10024: Fix an incorrect auto-correct for Style/RedundantSelfAssignmentBranch when using multiline if / else conditional assignment. (@koic)
  • #10004: Fix a false positive for Style/RedundantBegin when using one-liner with semicolon. (@koic)
Assets 2

@bbatsov bbatsov released this Aug 12, 2021

New features

  • #4182: Add Lint/AmbiguousRange cop to check for ranges with ambiguous boundaries. (@dvandersluis)
  • #10000: Parallel static analysis by default. (@koic)
  • #9948: Support Ruby 2.7's pattern matching for Style/ConditionalAssignment cop. (@koic)
  • #9999: Add new Style/RedundantSelfAssignmentBranch cop. (@koic)

Bug fixes

  • #9927: Indent hash values in Layout/LineEndStringConcatenationIndentation. (@jonas054)
  • #9959: Make Style/IdenticalConditionalBranches able to handle ternary ifs. (@dvandersluis)
  • #9946: Avoid slow regexp matches in Style/CommentedKeyword. (@jonas054)
  • #7422: Treat constant assignment like other assignment in Layout/SpaceAroundOperators. (@dvandersluis)
  • #9953: Fix an infinite loop error and a false auto-correction behavior for Layout/EndAlignment when using a conditional statement in a method argument. (@koic)
  • #9958: Prevent an infinite loop when a detected method has fewer arguments than expected. (@dvandersluis)
  • #9977: Update Layout/EmptyLineAfterGuardClause to not register an offense if there is another expression following the guard clause on the same line. (@dvandersluis)
  • #9980: Fix a false positive for Style/IdenticalConditionalBranches when assigning to a variable used in a condition. (@koic)
  • #9975: Parentheses are always required for Style/MethodDefParentheses when a forwarding argument (...) is used. (@dvandersluis)
  • #9984: Fix false negatives involving heredocs for Layout/SpaceBeforeComma, Layout/SpaceBeforeComment, Layout/SpaceBeforeSemicolon and Layout/SpaceInsideParens. (@dvandersluis)
  • #9954: Fix infinite loop error for Layout/HashAlignment when EnforcedStyle: with_fixed_indentation is specified for Layout/ArgumentAlignment. (@koic)
  • #10002: Fix an incorrect auto-correct for Lint/AmbigousRegexpLiteral when using nested method arguments without parentheses. (@koic)
  • #9952 rubocop-rspec#1126: Fix inherit_mode for deeply nested configuration defined in extensions' default configuration. (@pirj)
  • #9957: Add WholeWord configuration to Naming/InclusiveLanguage's FlaggedTerms config. (@dvandersluis)
  • #9970: Don't register an offense when sort method has arguments for Style/RedundantSort cop. (@mtsmfm)
  • #4097: Add require English for special globals. (@biinari)
  • #9955: Fix Style/ExplicitBlockArgument adding a second set of parentheses. (@dvandersluis)
  • #9973: Fix a false positive for Layout/RescueEnsureAlignment when aligned rescue keyword and leading dot. (@koic)
  • #9945: Fix auto-correction of lines in heredocs with only spaces in Layout/TrailingWhitespace. (@jonas054)

Changes

  • #9989: Mark Style/CommentedKeyword as unsafe auto-correction. (@koic)
  • #9964: Make Layout/LeadingCommentSpace aware of #:nodoc. (@koic)
  • #9985: Mark Style/IdenticalConditionalBranches as unsafe auto-correction. (@koic)
  • #9962: Update Style/WordArray to register an offense in percent style if any values contain spaces. (@dvandersluis)
  • #9979: Enable basic autocorrection for Style/Semicolon. (@dvandersluis)
Assets 2

@bbatsov bbatsov released this Jul 23, 2021

New features

  • #9930: Support Ruby 2.7's pattern matching for Lint/DuplicateBranch cop. (@koic)

Bug fixes

  • #9938: Fix an incorrect auto-correct for Layout/LineLength when a heredoc is used as the first element of an array. (@koic)
  • #9940: Fix an incorrect auto-correct for Style/HashTransformValues when value is a hash literal for _.to_h{...}. (@koic)
  • #9752: Improve error message for top level department used in configuration. (@jonas054)
  • #9933: Fix GitHub Actions formatter when running in non-default directory. (@ojab)
  • #9922: Make better auto-corrections in Style/DoubleCopDisableDirective. (@jonas054)
  • #9848: Fix handling of comments in Layout/ClassStructure auto-correct. (@jonas054)
  • #9926: Fix an incorrect auto-correct for Style/SingleLineMethods when method body is enclosed in parentheses. (@koic)
  • #9928: Fix an infinite loop error and a false auto-correction behavior for Layout/EndAlignment when using operator methods and EnforcedStyleAlignWith: variable. (@koic)
  • #9434: Fix false positive for setter calls in Layout/FirstArgumentIndentation. (@jonas054)
Assets 2

@bbatsov bbatsov released this Jul 6, 2021

Bug fixes

  • #9891: Fix --auto-gen-config bug for Style/HashSyntax. (@jonas054)
  • #9905: Fix false positive for single line concatenation in Layout/LineEndStringConcatenationIndentation. (@jonas054)
  • #9907: Fix an incorrect auto-correct for Lint/UselessTimes when using block argument for 1.times. (@koic)
  • #9869: Fix reference to file in configuration override warning. (@jonas054)
  • #9902: Fix an incorrect auto-correct for Style/BlockDelimiters when there is a comment after the closing brace. (@koic)
  • #8469: Add inspection of class << to Layout/SpaceAroundOperators. (@jonas054)
  • #9909: This PR fixes an incorrect auto-correct for Style/SingleLineMethods when using return, break, or next for one line method body in Ruby 3.0. (@koic)
  • #9914: Fix an error for Layout/HashAlignment when using aligned hash argument for proc.(). (@koic)
Assets 2

@koic koic released this Jul 2, 2021

Bug fixes

  • #9894: Handle multiline string literals in Layout/LineEndStringConcatenationIndentation. (@jonas054)
  • #9890: Make colon after comment annotation configurable. (@gregfletch)
Assets 2

@koic koic released this Jul 2, 2021

Bug fixes

  • #9897: Fix an incorrect auto-correct for Layout/HashAlignment when setting EnforcedStyle: with_fixed_indentation of Layout/ArgumentAlignment and using misaligned keyword arguments. (@koic)

Changes

  • #9895: Set CheckStrings: false and Remove master from FlaggedTerms for Naming/InclusiveLanguage. (@koic)
Assets 2

@bbatsov bbatsov released this Jun 29, 2021

New features

  • #9842: Add new Naming/InclusiveLanguage cop. (@tjwp)

Bug fixes

  • #9803: Fix Bundler/GemVersion cop not respecting git tags. (@tejasbubane, @timlkelly)
  • #9882: Fix an incorrect auto-correct for Layout/LineLength when using heredoc as the first method argument and omitting parentheses. (@koic)
  • #7592: Add cop Layout/LineEndStringConcatenationIndentation. (@jonas054)
  • #9880: Fix a false positive for Style/RegexpLiteral when using a regexp starts with a blank as a method argument. (@koic)
  • #9888: Fix a false positive for Layout/ClosingParenthesisIndentation when using keyword arguemnts. (@koic)
  • #9886: Fix indentation in Style/ClassAndModuleChildren. (@markburns)

Changes

  • #9144: Add aggressive and conservative modes of operation for Style/StringConcatenation cop. (@tejasbubane)
Assets 2

@koic koic released this Jun 15, 2021

New features

  • #9626: Disable all cop department with directive comment. (@AndreiEres)
  • #9827: Add basic auth support to download raw yml config from private repo. (@AirWick219)
  • #9873: Support one-line pattern matching syntax for Layout/SpaceAroundKeyword and Layout/SpaceAroundOperators. (@koic)
  • #9857: Support Ruby 2.7's pattern matching for Layout/IndentationWidth cop. (@koic)
  • #9877: Support Ruby 2.7's in pattern syntax for Lint/LiteralAsCondition. (@koic)
  • #9855: Support Ruby 2.7's pattern matching for Style/IdenticalConditionalBranches cop. (@koic)

Bug fixes

  • #9874: Fix a false positive for Style/RegexpLiteral when using %r regexp literal with EnforcedStyle: omit_parentheses of Style/MethodCallWithArgsParentheses. (@koic)
  • #9876: Fix empty line after guard clause with and return and heredoc. (@AndreiEres)
  • #9861: Fix error in Layout/HashAlignment with an empty hash literal. (@dvandersluis)
  • #9867: Fix an incorrect auto-correct for Layout/DotPosition when using only dot line. (@koic)
Assets 2