RuboCop
We are on a mission to bring consistent code style to all Ruby projects (and prevent some mistakes).
Collective -
Host: opensource -
https://opencollective.com/rubocop
- Code: https://github.com/bbatsov/rubocop
False positive in `Lint/UselessAccessModifier` when using `private` in singleton method
github.com/rubocop/rubocop - eiskrenkov opened this issue 2 months ago
github.com/rubocop/rubocop - eiskrenkov opened this issue 2 months ago
The `Naming/PredicateMethod` cop ignores implicit nil return.
github.com/rubocop/rubocop - piotrmurach opened this issue 2 months ago
github.com/rubocop/rubocop - piotrmurach opened this issue 2 months ago
Fix changelog for `Naming/PredicateMethod`
github.com/rubocop/rubocop - dvandersluis opened this pull request 2 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 2 months ago
Enhance `Naming/MethodName` cop to detect offenses within `define_method` calls
github.com/rubocop/rubocop - viralpraxis opened this pull request 2 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 2 months ago
[Fix #14329] Fix false positives for `Lint/LiteralAsCondition`
github.com/rubocop/rubocop - koic opened this pull request 2 months ago
github.com/rubocop/rubocop - koic opened this pull request 2 months ago
Lint/LiternalAsCondition false positive in case statement
github.com/rubocop/rubocop - jcoyne opened this issue 2 months ago
github.com/rubocop/rubocop - jcoyne opened this issue 2 months ago
[Fix #14326] Fix additional autocorrection errors in `Style/HashConversion` for nested `Hash[]` calls
github.com/rubocop/rubocop - dvandersluis opened this pull request 2 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 2 months ago
[Fix #14318] Add `WaywardPredicates` config to `Naming/PredicateMethod` to handle methods that look like predicates but aren't
github.com/rubocop/rubocop - dvandersluis opened this pull request 2 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 2 months ago
`Style/HashConversion` Autocorrect Error
github.com/rubocop/rubocop - a-lavis opened this issue 2 months ago
github.com/rubocop/rubocop - a-lavis opened this issue 2 months ago
Enhance `Naming/MethodName` cop to handle offenses within `Struct` members
github.com/rubocop/rubocop - viralpraxis opened this pull request 2 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 2 months ago
Fix build errors on Winsows matrix
github.com/rubocop/rubocop - koic opened this pull request 2 months ago
github.com/rubocop/rubocop - koic opened this pull request 2 months ago
Add new cop to discourage long ternary expressions
github.com/rubocop/rubocop - fatkodima opened this issue 2 months ago
github.com/rubocop/rubocop - fatkodima opened this issue 2 months ago
Discourage "it" as function parameter
github.com/rubocop/rubocop - forthrin opened this issue 3 months ago
github.com/rubocop/rubocop - forthrin opened this issue 3 months ago
Default `Style/Alias` to prefer `alias_method`?
github.com/rubocop/rubocop - esotericpig opened this issue 3 months ago
github.com/rubocop/rubocop - esotericpig opened this issue 3 months ago
Why is `Naming/PredicateMethod` enabled by default?
github.com/rubocop/rubocop - esotericpig opened this issue 3 months ago
github.com/rubocop/rubocop - esotericpig opened this issue 3 months ago
Fix incorrect autocorrect for `Lint/RedundantTypeConversion`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
Naming/PredicateMethod should not be triggered by nonzero?
github.com/rubocop/rubocop - zverok opened this issue 3 months ago
github.com/rubocop/rubocop - zverok opened this issue 3 months ago
Fix missing quote in sample code
github.com/rubocop/rubocop - kozy4324 opened this pull request 3 months ago
github.com/rubocop/rubocop - kozy4324 opened this pull request 3 months ago
[Fix #14313] Fix a false positive for `Layout/SpaceBeforeBrackets`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
[Fix #14298] Fix an error for Style/SoleNestedConditional
github.com/rubocop/rubocop - 5hun-s opened this pull request 3 months ago
github.com/rubocop/rubocop - 5hun-s opened this pull request 3 months ago
Enhance `Gemspec/RequireMFA` cop autocorrect to insert MFA directive after last `metadata` assignment
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Issue with `Layout/SpaceBeforeBrackets` in the `. [](key)` form
github.com/rubocop/rubocop - r7kamura opened this issue 3 months ago
github.com/rubocop/rubocop - r7kamura opened this issue 3 months ago
[Fix #14292] Fix false positives for `Style/RedundantParentheses`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
Detect multiline method calls by `Layout/MultilineAssignmentLayout`
github.com/rubocop/rubocop - fatkodima opened this issue 3 months ago
github.com/rubocop/rubocop - fatkodima opened this issue 3 months ago
[Fix #14306] Fix an error for `Style/HashConversion`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
`Style/SoleNestedConditional` incorrectly autofixes condition with assignment
github.com/rubocop/rubocop - knarewski opened this issue 3 months ago
github.com/rubocop/rubocop - knarewski opened this issue 3 months ago
[Fix #14307] Fix `Style/MethodCallWithArgsParentheses` false positives
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Fix Style/MethodCallWithArgsParentheses with guarded return and anonymous forwards
github.com/rubocop/rubocop - bkuhlmann opened this issue 3 months ago
github.com/rubocop/rubocop - bkuhlmann opened this issue 3 months ago
`Style/HashConversion` Autocorrect Error
github.com/rubocop/rubocop - a-lavis opened this issue 3 months ago
github.com/rubocop/rubocop - a-lavis opened this issue 3 months ago
[Fix #14128] Allow long fully-qualified namespace strings to exceed max length
github.com/rubocop/rubocop - niranjan-patil opened this pull request 3 months ago
github.com/rubocop/rubocop - niranjan-patil opened this pull request 3 months ago
Deal with (ignore?) plugins and custom cops from a remote config
github.com/rubocop/rubocop - jasonkarns opened this issue 3 months ago
github.com/rubocop/rubocop - jasonkarns opened this issue 3 months ago
Fix `Lint/SelfAssignment` to allow inline RBS comments.
github.com/rubocop/rubocop - Morriar opened this pull request 3 months ago
github.com/rubocop/rubocop - Morriar opened this pull request 3 months ago
Fix a stale link in the Plugin Configuration docs
github.com/rubocop/rubocop - duffuniverse opened this pull request 3 months ago
github.com/rubocop/rubocop - duffuniverse opened this pull request 3 months ago
Fix autocorrection syntax error for multiline expressions in Style/RedundantParentheses
github.com/rubocop/rubocop - lovro-bikic opened this pull request 3 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 3 months ago
Fix false positives for `Lint/DuplicateMethods` when the self-alias trick is used
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
[Fix #14296] Fix false positives for `Style/RedundantSelf`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
Autocorrect clobbering with nested if/unless/if and Style/SoleNestedConditional
github.com/rubocop/rubocop - ssagara00 opened this issue 3 months ago
github.com/rubocop/rubocop - ssagara00 opened this issue 3 months ago
Follow-up to #14159: add specs for empty constant pattern
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Unsafe `Style/RedundantSelf` cop auto-correct with conditional assignment operator
github.com/rubocop/rubocop - thdaraujo opened this issue 3 months ago
github.com/rubocop/rubocop - thdaraujo opened this issue 3 months ago
Update `Naming/PredicateMethod` to consider negation (`!`/`not`) as boolean values
github.com/rubocop/rubocop - dvandersluis opened this pull request 3 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 3 months ago
[Fix #14255] Update `Naming/PredicateMethod` to treat returned predicate method calls as boolean values
github.com/rubocop/rubocop - dvandersluis opened this pull request 3 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 3 months ago
Fix stale links in the Integration with Other Tools docs
github.com/rubocop/rubocop - duffuniverse opened this pull request 3 months ago
github.com/rubocop/rubocop - duffuniverse opened this pull request 3 months ago
Style/RedundantParentheses still breaks pattern matching
github.com/rubocop/rubocop - akimd opened this issue 3 months ago
github.com/rubocop/rubocop - akimd opened this issue 3 months ago
Fix typos in the Configuration docs
github.com/rubocop/rubocop - duffuniverse opened this pull request 3 months ago
github.com/rubocop/rubocop - duffuniverse opened this pull request 3 months ago
Fix misleading message for using multi-line `it` parameter in Style/itBlockParameter
github.com/rubocop/rubocop - kozy4324 opened this pull request 3 months ago
github.com/rubocop/rubocop - kozy4324 opened this pull request 3 months ago
Fix typos in Cops docs
github.com/rubocop/rubocop - duffuniverse opened this pull request 3 months ago
github.com/rubocop/rubocop - duffuniverse opened this pull request 3 months ago
Add new cop `Style/CollectionQuerying`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 3 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 3 months ago
[Fix #14286] Fix incorrect autocorrect for `Lint/SafeNavigationChain`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
`Style/SafeNavigation` cop incorrectly transforms arithmetic operations, leading to syntax errors.
github.com/rubocop/rubocop - marocchino opened this issue 3 months ago
github.com/rubocop/rubocop - marocchino opened this issue 3 months ago
Fix warning on duplicated `Lint/UselessAccessModifier` `MethodsCreationContext` option
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Fix build error when using Ruby LSP >= 0.24
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
Lint/UselessDefaultValueArgument cop throws an error
github.com/rubocop/rubocop - blimp666 opened this issue 3 months ago
github.com/rubocop/rubocop - blimp666 opened this issue 3 months ago
Infinite loop caused by Layout/EndAlignment when EnforcedStyleAlignWith set to variable
github.com/rubocop/rubocop - dtcoutu opened this issue 3 months ago
github.com/rubocop/rubocop - dtcoutu opened this issue 3 months ago
Programatic bug report templates
github.com/rubocop/rubocop - sambostock opened this issue 3 months ago
github.com/rubocop/rubocop - sambostock opened this issue 3 months ago
False positive for Lint/RedundantSafeNavigation with safe nav on class variable
github.com/rubocop/rubocop - dewey-the-composer opened this issue 3 months ago
github.com/rubocop/rubocop - dewey-the-composer opened this issue 3 months ago
Register conditions wrapped in parentheses as offenses in `Style/MinMaxComparison`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 3 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 3 months ago
Fix an error for `Style/PercentQLiterals` cop
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
[Fix #14275] Fix false positives for `Style/RedundantParentheses`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
Fix Style/RedundantParentheses pattern matching OR condition
github.com/rubocop/rubocop - bkuhlmann opened this issue 3 months ago
github.com/rubocop/rubocop - bkuhlmann opened this issue 3 months ago
[Fix #14273] Fix an error for `Lint/EmptyInterpolation`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
Lint/EmptyInterpolation crash with boolean value
github.com/rubocop/rubocop - cbliard opened this issue 3 months ago
github.com/rubocop/rubocop - cbliard opened this issue 3 months ago
[Fix #14165] Add new DefaultToNil option to Style/FetchEnvVar cop
github.com/rubocop/rubocop - Yuhi-Sato opened this pull request 3 months ago
github.com/rubocop/rubocop - Yuhi-Sato opened this pull request 3 months ago
[Fix #14269] Fix false positives for `Style/RedundantSelf`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
[Fix #14232] Add `AllowedPatterns` and `AllowBangMethods` configuration to `Naming/PredicateMethod`
github.com/rubocop/rubocop - dvandersluis opened this pull request 3 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 3 months ago
`Style/RedundantSelf` is not safe for autocorrection
github.com/rubocop/rubocop - kiomac opened this issue 3 months ago
github.com/rubocop/rubocop - kiomac opened this issue 3 months ago
Register operator expression range boundaries as offenses in `Lint/AmbiguousRange`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 3 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 3 months ago
Fix an error for `Style/ConditionalAssignment` cop
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Add `DefaultToNil` option to `Style/FetchEnvVar`
github.com/rubocop/rubocop - steiley opened this pull request 3 months ago
github.com/rubocop/rubocop - steiley opened this pull request 3 months ago
Style/SafeNavigation Crashes when truthy branch of ternary is a chained call in 1.76.0
github.com/rubocop/rubocop - jim-howe-notarize opened this issue 3 months ago
github.com/rubocop/rubocop - jim-howe-notarize opened this issue 3 months ago
Offend access modifiers used on top-level in `Lint/UselessAccessModifier`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 3 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 3 months ago
[Fix #14260] Fix an error for `Lint/UselessDefaultValueArgument`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
`Naming/PredicateMethod` false positive with ternary returning strings
github.com/rubocop/rubocop - ydakuka opened this issue 3 months ago
github.com/rubocop/rubocop - ydakuka opened this issue 3 months ago
[Fix #14260] Fix an error for `Lint/UselessDefaultValueArgument` with no receiver
github.com/rubocop/rubocop - Earlopain opened this pull request 3 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 3 months ago
An error occurred in Lint/UselessDefaultValueArgument cop
github.com/rubocop/rubocop - imadoki opened this issue 3 months ago
github.com/rubocop/rubocop - imadoki opened this issue 3 months ago
Fix build errors on Winsows matrix
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
Add new rake task to verify config references availability
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Naming/PredicateMethod: more detailed introspection of the method body
github.com/rubocop/rubocop - zverok opened this issue 3 months ago
github.com/rubocop/rubocop - zverok opened this issue 3 months ago
Naming/PredicateMethod: consider predicates in method body
github.com/rubocop/rubocop - zverok opened this issue 3 months ago
github.com/rubocop/rubocop - zverok opened this issue 3 months ago
Improve `expect_offense` interpolation documentation
github.com/rubocop/rubocop - sambostock opened this pull request 3 months ago
github.com/rubocop/rubocop - sambostock opened this pull request 3 months ago
Workaround to avoid build error in Ruby LSP add-on test with Ruby LSP 0.24
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
[Fix #14249] Fix false positives for `Style/RedundantArrayFlatten`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
Custom Cops don't actually add offenses for some reason in ruby 3.1/rubocop 1.75.8
github.com/rubocop/rubocop - zdenkers opened this issue 3 months ago
github.com/rubocop/rubocop - zdenkers opened this issue 3 months ago
`Style/RedundantArrayFlatten` can be unsafe when the `Array` contains empty `Array`s and `join` uses a separator
github.com/rubocop/rubocop - JasonBarnabe opened this issue 3 months ago
github.com/rubocop/rubocop - JasonBarnabe opened this issue 3 months ago
Lint/EmptyInterpolation and Lint/LiteralInInterpolation crash
github.com/rubocop/rubocop - akimd opened this issue 3 months ago
github.com/rubocop/rubocop - akimd opened this issue 3 months ago
Fix `Style/SafeNavigation` cop invalid autocorrection on colon method call
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Lint/EmptyInterpolation crashes
github.com/rubocop/rubocop - yujideveloper opened this issue 3 months ago
github.com/rubocop/rubocop - yujideveloper opened this issue 3 months ago
Fix `Lint/EmptyInterpolation` when primitives interpolated
github.com/rubocop/rubocop - ka8725 opened this pull request 3 months ago
github.com/rubocop/rubocop - ka8725 opened this pull request 3 months ago
[Fix #14239] Fix false positives for `Style/RedundantParentheses`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
Naming/PredicateMethod false positive with explicit type conversion methods
github.com/rubocop/rubocop - ntkme opened this issue 3 months ago
github.com/rubocop/rubocop - ntkme opened this issue 3 months ago
Fix `Naming/PredicateMethod` cop error on empty `begin` method body
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Style/RedundantParentheses breaks pattern matching
github.com/rubocop/rubocop - akimd opened this issue 3 months ago
github.com/rubocop/rubocop - akimd opened this issue 3 months ago
[Fix #14236] Fix an error for `Style/SafeNavigation`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
Style/SafeNavigation fails with TypeError
github.com/rubocop/rubocop - ildarkayumov opened this issue 3 months ago
github.com/rubocop/rubocop - ildarkayumov opened this issue 3 months ago
Follow up to #14234: handle indexed assignment
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
[Fix #14233] Fix an error for `Style/SafeNavigation`
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
github.com/rubocop/rubocop - koic opened this pull request 3 months ago
`Style/SafeNavigation` crashes with 1.76.0
github.com/rubocop/rubocop - dentarg opened this issue 3 months ago
github.com/rubocop/rubocop - dentarg opened this issue 3 months ago
`Naming/PredicateMethod` false positive when an "operation" returns `true`
github.com/rubocop/rubocop - tagliala opened this issue 3 months ago
github.com/rubocop/rubocop - tagliala opened this issue 3 months ago
Infinite loop detected and caused by Cop/LineBreakAroundConditionalBlock [DRAFT]
github.com/rubocop/rubocop - gerardo-navarro opened this issue 3 months ago
github.com/rubocop/rubocop - gerardo-navarro opened this issue 3 months ago