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
Fix deprecated cop handling in auto-gen-config (fixes #14227)
github.com/rubocop/rubocop - alexeyschepin opened this pull request 3 months ago
github.com/rubocop/rubocop - alexeyschepin opened this pull request 3 months ago
[Fix #14228] Fix false positive 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
False positive for `Style/RedundantParentheses` cop
github.com/rubocop/rubocop - ydakuka opened this issue 3 months ago
github.com/rubocop/rubocop - ydakuka opened this issue 3 months ago
`Naming/PredicateName` cop ignores offenses in specs when running `rubocop --auto-gen-config`
github.com/rubocop/rubocop - ydakuka opened this issue 3 months ago
github.com/rubocop/rubocop - ydakuka opened this issue 3 months ago
Fix `Lint/LiteralAsCondition` autocorrect when branches of a condition have comments
github.com/rubocop/rubocop - Zopolis4 opened this pull request 3 months ago
github.com/rubocop/rubocop - Zopolis4 opened this pull request 3 months ago
Fix `Style/EmptyStringInsideInterpolation` cop error on non-string literal
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 false negatives 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
Add new `Gemspec/AttributeAssignment` 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
Subsequent correction iterations lose information about cached offense status
github.com/rubocop/rubocop - viralpraxis opened this issue 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this issue 3 months ago
Enhance `Gemspec` department cops to detect offenses with `it` or `_1`
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 #14217] 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
Add extra spec for `Gemspec/DuplicatedAssignment` cop with array assignments
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Use valid `metadata` keys in `Gemspec/DuplicatedAssignment` cop specs
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` causes a false positive when using a one-line pattern matching in method argument
github.com/rubocop/rubocop - sanfrecce-osaka opened this issue 3 months ago
github.com/rubocop/rubocop - sanfrecce-osaka opened this issue 3 months ago
[fix #14205] False negatives in `Style/Safenavigation`
github.com/rubocop/rubocop - steiley opened this pull request 3 months ago
github.com/rubocop/rubocop - steiley opened this pull request 3 months ago
Recognize inequation in `Lint/IdentityComparison`
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
Minor spelling fixes (non-user facing)
github.com/rubocop/rubocop - tas50 opened this pull request 3 months ago
github.com/rubocop/rubocop - tas50 opened this pull request 3 months ago
Fix `Style/EmptyStringInsideInterpolation` cop error on non-literal branch node
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Rename `EnforcedStyle` of `Style/EmptyStringInsideInterpolation`
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 #14031] Honor --config options on server mode
github.com/rubocop/rubocop - steiley opened this pull request 3 months ago
github.com/rubocop/rubocop - steiley opened this pull request 3 months ago
[Fix #14197] Fix infinite loop error for `Layout/FirstArgumentIndentation`
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 an error for `Style/RedundantFormat` with invalid format arguments
github.com/rubocop/rubocop - Earlopain opened this pull request 3 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 3 months ago
Show better message on error with `--debug`
github.com/rubocop/rubocop - Earlopain opened this pull request 3 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 3 months ago
frozen_string_literal is default since Ruby 3.4
github.com/rubocop/rubocop - anna-dev opened this issue 3 months ago
github.com/rubocop/rubocop - anna-dev opened this issue 3 months ago
[Fix #14050] Modify condition for EOL comment
github.com/rubocop/rubocop - jonas054 opened this pull request 3 months ago
github.com/rubocop/rubocop - jonas054 opened this pull request 3 months ago
False negatives in `Style/SafeNavigation`
github.com/rubocop/rubocop - vlad-pisanov opened this issue 3 months ago
github.com/rubocop/rubocop - vlad-pisanov opened this issue 3 months ago
Fix `Layout/EmptyLinesAroundAccessModifier` cop error on trailing access modifier
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 `codespell` rake task if not found in PATH
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 3 months ago
Enable Windows CI matrix for Ruby 2.7
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 #14050] In the case of disable-uncorrectable, `Lint/UselessConstantScoping` doesn't make unintended corrections
github.com/rubocop/rubocop - steiley opened this pull request 4 months ago
github.com/rubocop/rubocop - steiley opened this pull request 4 months ago
Fix false positives for `Style/DefWithParentheses`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Fix wrong autocorrection for `Style/MapToHash` with destructuring argument
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
Fix `Lint/DuplicateMethods` cop error if `to` option is specified dynamically
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
Infinite loop when formatting with alignment/indentation cops
github.com/rubocop/rubocop - maxnotarangelo opened this issue 4 months ago
github.com/rubocop/rubocop - maxnotarangelo opened this issue 4 months ago
Consistently highlight `Metric` cops method name in offense messages
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
Fix `Style/AccessModifierDeclarations` cop error on symbol modifier without parent
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
[Fix #14193] Fix `Lint/UselessAssignment` cop error when using nested assignment with splat
github.com/rubocop/rubocop - Earlopain opened this pull request 4 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 4 months ago
Lint/UselessAssignment: crash on splatted nested parallel assignment
github.com/rubocop/rubocop - sammiya opened this issue 4 months ago
github.com/rubocop/rubocop - sammiya opened this issue 4 months ago
Fix false negatives for `Layout/SpaceBeforeBrackets`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
[Fix #13194] Detect case statement in FloatComparison
github.com/rubocop/rubocop - daisuke opened this pull request 4 months ago
github.com/rubocop/rubocop - daisuke opened this pull request 4 months ago
[Fix #14189] Fix incorrect autocorrect for `Layout/SpaceBeforeBrackets`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Layout/SpaceBeforeBrackets generates invalid code
github.com/rubocop/rubocop - adfoster-r7 opened this issue 4 months ago
github.com/rubocop/rubocop - adfoster-r7 opened this issue 4 months ago
Enhance `Gemspec/DuplicatedAssignment` cop to detect duplicated indexed assignment
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
Fix docs: change `RuboCop::Runners` to `RuboCop::Runner`
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
[Fix #13295] Fix Layout/ClassStructure document
github.com/rubocop/rubocop - Okkun555 opened this pull request 4 months ago
github.com/rubocop/rubocop - Okkun555 opened this pull request 4 months ago
Fix an error for `Style/IfUnlessModifierOfIfUnless`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Add new cop `Lint/UselessOr`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
Recognize `prefix` argument for `delegate` method in `Lint/DuplicateMethods`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
`Lint/UselessConstantScoping` provides false positives when private_constant takes a list of arguments
github.com/rubocop/rubocop - corsonknowles opened this issue 4 months ago
github.com/rubocop/rubocop - corsonknowles opened this issue 4 months ago
Make `Lint/DuplicateMethods` aware of Active Support's `delegate` method
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
Ignore specific method calls in Metrics/AbcSize
github.com/rubocop/rubocop - CuddlyBunion341 opened this issue 4 months ago
github.com/rubocop/rubocop - CuddlyBunion341 opened this issue 4 months ago
[Fix #14082] Mark `Style/ComparableBetween` as unsafe
github.com/rubocop/rubocop - Earlopain opened this pull request 4 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 4 months ago
[Fix #14177] Fix false positives for `Style/SoleNestedConditional`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Style/SoleNestedConditional: autocorrect generates broken conditional statements
github.com/rubocop/rubocop - bcoles opened this issue 4 months ago
github.com/rubocop/rubocop - bcoles opened this issue 4 months ago
Fix an error for `Style/MultilineIfModifier`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Temporarily disable Windows CI matrix for Ruby 2.7
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Expand `Style/DataInheritance` and `Style/StructInheritance` docs
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
Fix an error for `Style/StringConcatenation`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Fix `Style/AccessModifierDeclarations` false positives with `inline` style and missing defs
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
[Fix #14077] Change `nil` representation in todo file comments
github.com/rubocop/rubocop - jonas054 opened this pull request 4 months ago
github.com/rubocop/rubocop - jonas054 opened this pull request 4 months ago
Fix `Style/AccessModifierDeclarations` cop error on colon after modifier
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
Apply the `RESTRICT_ON_SEND` feature to `on_block` callbacks
github.com/rubocop/rubocop - amomchilov opened this issue 4 months ago
github.com/rubocop/rubocop - amomchilov opened this issue 4 months ago
Fix `Style/ConditionalAssignment` cop error on `if` in condition
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
Only load what is required from `cgi`
github.com/rubocop/rubocop - Earlopain opened this pull request 4 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 4 months ago
Add new cop `Lint/UselessDefaultValueArgument`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 4 months ago
Refine `Style/FetchEnvVar` to preserve readability and intention
github.com/rubocop/rubocop - wafcio opened this issue 4 months ago
github.com/rubocop/rubocop - wafcio opened this issue 4 months ago
Fix an error for `Lint/UselessAssignment`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Clarify and standardize `RESTRICT_ON_SEND` type
github.com/rubocop/rubocop - viralpraxis opened this issue 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this issue 4 months ago
[Fix #14156] Make `Style/IfUnlessModifier` allow endless method definition
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Error in `Layout/SpaceInsideArrayLiteralBrackets` when pattern specifies a class
github.com/rubocop/rubocop - a-bulancov opened this issue 4 months ago
github.com/rubocop/rubocop - a-bulancov opened this issue 4 months ago
Enhance `Layout/SpaceInsideArrayLiteralBrackets` cop to analyze nested constant patterns
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
Style/TrailingCommaInArguments errors for multiline value objects
github.com/rubocop/rubocop - jasonopslevel opened this issue 4 months ago
github.com/rubocop/rubocop - jasonopslevel opened this issue 4 months ago
Layout/SpaceInsideArrayLiteralBrackets crashes
github.com/rubocop/rubocop - akimd opened this issue 4 months ago
github.com/rubocop/rubocop - akimd opened this issue 4 months ago
Improve `Style/IfUnlessModifier` and `Style/AmbiguousEndlessMethodDefinition` interaction
github.com/rubocop/rubocop - vlad-pisanov opened this issue 4 months ago
github.com/rubocop/rubocop - vlad-pisanov opened this issue 4 months ago
Rubocop not running on local environment
github.com/rubocop/rubocop - MeenaModhvadia opened this issue 4 months ago
github.com/rubocop/rubocop - MeenaModhvadia opened this issue 4 months ago
Add `Lint/HashMissingClass`
github.com/rubocop/rubocop - sambostock opened this pull request 4 months ago
github.com/rubocop/rubocop - sambostock opened this pull request 4 months ago
Fix `Style/PercentQLiterals` cop error on Unicode escape sequence
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
Fix `Layout/SpaceInsideArrayLiteralBrackets` cop error on array pattern without brackets
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
Fix `Lint/Void` cop error on nested empty `begin`
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
[Fix #14072] Resolve autocorrect issue in Layout/HashAlignment
github.com/rubocop/rubocop - jonas054 opened this pull request 4 months ago
github.com/rubocop/rubocop - jonas054 opened this pull request 4 months ago
Fix an infinite loop error for `Layout/SpaceAfterSemicolon` with `Layout/SpaceBeforeSemicolon`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Fix `Lint/LiteralAsCondition` cop error on `if` without body
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
Fix `Style/MethodCallWithArgsParentheses` cop error on complex numbers
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
Fix `Lint/ArrayLiteralInRegexp` cop error on empty interpolation
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
`Layout/SpaceInsideArrayLiteralBrackets` make aware of array pattern matching
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
[Fix #14142] `Layout/SpaceInsideHashLiteralBraces` make aware of hash pattern matching
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Extend hash layout cops to pattern matching
github.com/rubocop/rubocop - vlad-pisanov opened this issue 4 months ago
github.com/rubocop/rubocop - vlad-pisanov opened this issue 4 months ago
Auto-correct cops for invalid syntax
github.com/rubocop/rubocop - joeldrapper opened this issue 4 months ago
github.com/rubocop/rubocop - joeldrapper opened this issue 4 months ago
Layout/LeadingCommentSpace: allow splitting long inline RBS comment signatures
github.com/rubocop/rubocop - Morriar opened this pull request 4 months ago
github.com/rubocop/rubocop - Morriar opened this pull request 4 months ago
[Bug] Style/TrailingCommaInArguments crash when parsing square bracket initialization
github.com/rubocop/rubocop - lavoiesl opened this issue 4 months ago
github.com/rubocop/rubocop - lavoiesl opened this issue 4 months ago
[Fix #14137] Fix `Style/TrailingCommaInArguments` cop error if style is `comma`
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 4 months ago
`EnforcedStyleForMultiline: comma` breaks `Style/TrailingCommaInArguments` after 1.75.4
github.com/rubocop/rubocop - Bo98 opened this issue 4 months ago
github.com/rubocop/rubocop - Bo98 opened this issue 4 months ago
[Fix #13045] Support autocorrect for `Lint/EmptyFile`
github.com/rubocop/rubocop - Zopolis4 opened this pull request 4 months ago
github.com/rubocop/rubocop - Zopolis4 opened this pull request 4 months ago
Temporarily disable windows CI
github.com/rubocop/rubocop - Earlopain opened this pull request 4 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 4 months ago
Fix an error for `Style/ComparableBetween` when comparing the value with itself
github.com/rubocop/rubocop - Earlopain opened this pull request 4 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 4 months ago
Fix `Lint/LiteralAsCondition` autocorrect when a literal is the condition of an elsif followed by an else.
github.com/rubocop/rubocop - Zopolis4 opened this pull request 4 months ago
github.com/rubocop/rubocop - Zopolis4 opened this pull request 4 months ago
[Fix #14131] Fix false positives for `Style/ArgumentsForwarding`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Ruby 3.4: Style/ArgumentsForwarding incorrectly recommends ... splat in nested usage scenarios
github.com/rubocop/rubocop - johnnyshields opened this issue 4 months ago
github.com/rubocop/rubocop - johnnyshields opened this issue 4 months ago
[Fix #14129] Fix false positives for `Style/ArgumentsForwarding`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago