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
Style/ArgumentsForwarding autocomplete error
github.com/rubocop/rubocop - MatzFan opened this issue 4 months ago
github.com/rubocop/rubocop - MatzFan opened this issue 4 months ago
Layout/LineLength: Allow long fully-qualified namespace strings to exceed max length
github.com/rubocop/rubocop - chris-hewitt opened this issue 4 months ago
github.com/rubocop/rubocop - chris-hewitt opened this issue 4 months ago
[Fix #14123] Fix an error for `Lint/BooleanSymbol`
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 linked pr in changelog entry for "Extension plugin is loaded automatically with require 'rubocop/rspec/support'"
github.com/rubocop/rubocop - Zopolis4 opened this pull request 4 months ago
github.com/rubocop/rubocop - Zopolis4 opened this pull request 4 months ago
False positive for `Layout/IndentationConsistency`
github.com/rubocop/rubocop - ydakuka opened this issue 4 months ago
github.com/rubocop/rubocop - ydakuka opened this issue 4 months ago
Infinite loop detected and caused by Layout/HashAlignment, Lint/BooleanSymbol, Style/HashSyntax
github.com/rubocop/rubocop - anykeyh opened this issue 4 months ago
github.com/rubocop/rubocop - anykeyh opened this issue 4 months ago
[Fix #14120] Fix false positives for `Style/RedundantParentheses`
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
github.com/rubocop/rubocop - koic opened this pull request 4 months ago
Run Ruby 3.4 examples with prism by default
github.com/rubocop/rubocop - Earlopain opened this pull request 5 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 5 months ago
Style/RedundantParentheses false positive when around IF statement
github.com/rubocop/rubocop - yegor256 opened this issue 5 months ago
github.com/rubocop/rubocop - yegor256 opened this issue 5 months ago
[Fix #14116] Make `Style/TrailingCommaInArguments` cop aware of trailing commans in `[]` method call
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
Make RuboCop aware of trailing commas in `[]` method arguments list
github.com/rubocop/rubocop - viralpraxis opened this issue 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this issue 5 months ago
[Fix #13611] Enable `Lint/CircularArgumentReference` on Ruby 3.4
github.com/rubocop/rubocop - Earlopain opened this pull request 5 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 5 months ago
Fix `Style/ClassAndModuleChildren` cop error on tab-intended compactable modules
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
[Fix #14111] Fix an error for `Style/SafeNavigation`
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Style/SafeNavigation crashes on Range object in RuboCop 1.75.3
github.com/rubocop/rubocop - pioz opened this issue 5 months ago
github.com/rubocop/rubocop - pioz opened this issue 5 months ago
`Style/SafeNavigation` cop error on nested &&
github.com/rubocop/rubocop - viralpraxis opened this issue 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this issue 5 months ago
Fix false positives for `Style/RedundantParentheses`
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Add new Lint/InconsistentSafeNavigation cop
github.com/rubocop/rubocop - smcabrera opened this pull request 5 months ago
github.com/rubocop/rubocop - smcabrera opened this pull request 5 months ago
Supply Chain Security - Release workflow
github.com/rubocop/rubocop - GrantBirki opened this pull request 5 months ago
github.com/rubocop/rubocop - GrantBirki opened this pull request 5 months ago
Supply Chain Security for RuboCop 🔒
github.com/rubocop/rubocop - GrantBirki opened this issue 5 months ago
github.com/rubocop/rubocop - GrantBirki opened this issue 5 months ago
Bump `rubocop-rspec` development dependency
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
Fix `Style/ConditionalAssignment` cop error on indexed assignment without arguments
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
Fix `Layout/MultilineOperationIdentation` cop error on `indexasgn` node without arguments
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
Lint/MissingCopEnableDirective is disabled by rubocop:disable all
github.com/rubocop/rubocop - matthewhively opened this issue 5 months ago
github.com/rubocop/rubocop - matthewhively opened this issue 5 months ago
Fix some asciidoc formatting issues in cop documentation
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
undefined method '[]' for nil with (incomplete) case statement
github.com/rubocop/rubocop - forthrin opened this issue 5 months ago
github.com/rubocop/rubocop - forthrin opened this issue 5 months ago
Fix `Style/ClassAndModuleChildren` cop error on one-liner class definition
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
Lint/SafeNavigationConsistency says it has safe autocorrection, though it is not.
github.com/rubocop/rubocop - mikdiet opened this issue 5 months ago
github.com/rubocop/rubocop - mikdiet opened this issue 5 months ago
Feature Request: Allow ignoring trailing commas in single-line array literals
github.com/rubocop/rubocop - akicho8 opened this issue 5 months ago
github.com/rubocop/rubocop - akicho8 opened this issue 5 months ago
Fix `Style/SafeNavigation` with longer && chains
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
Allow interpolation for Lint/SymbolConversion
github.com/rubocop/rubocop - matthewhively opened this issue 5 months ago
github.com/rubocop/rubocop - matthewhively opened this issue 5 months ago
Rubocop warns about the deprecation of `RuboCop::Cop::EnforceSuperclass` even after recommended Rubop Rails version upgrade
github.com/rubocop/rubocop - norman opened this issue 5 months ago
github.com/rubocop/rubocop - norman opened this issue 5 months ago
Offend redundant parens around method arguments for `Style/RedundantParentheses`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
Fix false negative for `Style/RedundantParentheses`
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Add new cop `Style/RedundantArrayFlatten`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
Automate Layout/LineLength to generate heredoc
github.com/rubocop/rubocop - grosser opened this issue 5 months ago
github.com/rubocop/rubocop - grosser opened this issue 5 months ago
Fix false positive in RedundantCurrentDirectoryInPath cop for one-character paths
github.com/rubocop/rubocop - sferik opened this pull request 5 months ago
github.com/rubocop/rubocop - sferik opened this pull request 5 months ago
Use the latest Ruby 3.5 parser for docs
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
[Fix #14082] Mark `Style/ComparableBetween` unsafe for autocorrect
github.com/rubocop/rubocop - tejasbubane opened this pull request 5 months ago
github.com/rubocop/rubocop - tejasbubane opened this pull request 5 months ago
[FIX 14011] Improve Github render speed reliability for `CHANGELOG` files
github.com/rubocop/rubocop - corsonknowles opened this pull request 5 months ago
github.com/rubocop/rubocop - corsonknowles opened this pull request 5 months ago
[FIX 14011] Fix Github page load errors for large `CHANGELOG`s
github.com/rubocop/rubocop - corsonknowles opened this pull request 5 months ago
github.com/rubocop/rubocop - corsonknowles opened this pull request 5 months ago
Fix `Style/RedundantLineContinuation` cop error on multiline assignment
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
Fix `Style/ConditionalAssignment` cop error on oneline if-then-else
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
`Style/ComparableBetween` auto-correction can be unsafe
github.com/rubocop/rubocop - jasonkarns opened this issue 5 months ago
github.com/rubocop/rubocop - jasonkarns opened this issue 5 months ago
`Style/ItBlockParameter` auto-correction can be unsafe
github.com/rubocop/rubocop - colszowka opened this issue 5 months ago
github.com/rubocop/rubocop - colszowka opened this issue 5 months ago
Allow writing RBS::Inline annotation `#:` after end keyword in `Style/CommentedKeyword`
github.com/rubocop/rubocop - dak2 opened this pull request 5 months ago
github.com/rubocop/rubocop - dak2 opened this pull request 5 months ago
False positive in Style/HashExcept for Array of Arrays, and Auto-correct breaks code
github.com/rubocop/rubocop - strviola opened this issue 5 months ago
github.com/rubocop/rubocop - strviola opened this issue 5 months ago
`.rubocop_todo.yml` generates `SupportedStyles` comments with a leading comma
github.com/rubocop/rubocop - mwolman opened this issue 5 months ago
github.com/rubocop/rubocop - mwolman opened this issue 5 months ago
[Fix #14075] Fix an error for `Layout/EmptyLineAfterGuardClause`
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Error during Layout/EmptyLineAfterGuardClause
github.com/rubocop/rubocop - forthrin opened this issue 5 months ago
github.com/rubocop/rubocop - forthrin opened this issue 5 months ago
Clarify zero-sized file spec description
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
[Fix 13676] Fix explicitly provided hidden directories to be searchable
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
Bad autocorrect in `Layout/HashAlignment` when multiple styles are allowed
github.com/rubocop/rubocop - vlad-pisanov opened this issue 5 months ago
github.com/rubocop/rubocop - vlad-pisanov opened this issue 5 months ago
[Fix #14070] Fix false positives for `EnforcedStyleForMultiline: diff_comma`
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Style/TrailingCommaInArrayLiteral: inconsistent results when there are comments
github.com/rubocop/rubocop - akimd opened this issue 5 months ago
github.com/rubocop/rubocop - akimd opened this issue 5 months ago
Improve `Layout/HashAlignment` documentation
github.com/rubocop/rubocop - vlad-pisanov opened this pull request 5 months ago
github.com/rubocop/rubocop - vlad-pisanov opened this pull request 5 months ago
Fix wrong autocorrection for `Style/MapIntoArray`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
Fix false negatives for `Style/RedundantParentheses`
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Add `EnforcedStyle: allow_single_line` as the default to `Style/ItBlockParameter`
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Make `Lint/RedundantTypeConversion` register an offense for `to_json.to_s`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
Prefer `References` over `Reference` in cop config
github.com/rubocop/rubocop - sambostock opened this pull request 5 months ago
github.com/rubocop/rubocop - sambostock opened this pull request 5 months ago
[Fix #14062] Fix a false positive for `Lint/ReturnInVoidContext` when returning out of a `define_method` block
github.com/rubocop/rubocop - Earlopain opened this pull request 5 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 5 months ago
ReturnInVoidContext false positive in dynamic module class initializer with `define_method`
github.com/rubocop/rubocop - doits opened this issue 5 months ago
github.com/rubocop/rubocop - doits opened this issue 5 months ago
Misleading configuration for `Style/ItBlockParameter`
github.com/rubocop/rubocop - tdeo opened this issue 5 months ago
github.com/rubocop/rubocop - tdeo opened this issue 5 months ago
Document `Style/GlobalStdStream` Ractor benefits
github.com/rubocop/rubocop - Earlopain opened this pull request 5 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 5 months ago
hash_syntax.rb docs: Clarify you're allowed to mix syntaxes
github.com/rubocop/rubocop - henrik opened this pull request 5 months ago
github.com/rubocop/rubocop - henrik opened this pull request 5 months ago
Fix method name in Plugin Migration Guide
github.com/rubocop/rubocop - krororo opened this pull request 5 months ago
github.com/rubocop/rubocop - krororo opened this pull request 5 months ago
Fix `Style/ConditionalAssignment` cop error on `dstr` node in branch
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
False positibe Lint/Syntax on pattern matching and splat operator applied to method result
github.com/rubocop/rubocop - flash-gordon opened this issue 5 months ago
github.com/rubocop/rubocop - flash-gordon opened this issue 5 months ago
[Fix #14053] Fix incorrect autocorrect for `Lint/DeprecatedOpenSSLConstant`
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Enable `RSpec/Dialect` to enforce `shared_examples` instead of `shared_examples_for`
github.com/rubocop/rubocop - dvandersluis opened this pull request 5 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 5 months ago
Lint/DeprecatedOpenSSLConstant wrongly corrects `OpenSSL::Cipher::BF.new("ECB")` to `OpenSSL::Cipher.new('bf-ecb-cbc')`
github.com/rubocop/rubocop - cellotak opened this issue 5 months ago
github.com/rubocop/rubocop - cellotak opened this issue 5 months ago
[Fix #14051] Fix incorrect autocorrect for `Style/RedundantCondition`
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Auto-correcting `Style/RedundantCondition` can introduce a `Lint/RequireParentheses` offense that changes the meaning of the code
github.com/rubocop/rubocop - patbl opened this issue 5 months ago
github.com/rubocop/rubocop - patbl opened this issue 5 months ago
`--disable-uncorrectable` for `%w` array literals adds `# rubocop:todo Lint/UselessConstantScoping` to the array
github.com/rubocop/rubocop - patbl opened this issue 5 months ago
github.com/rubocop/rubocop - patbl opened this issue 5 months ago
[Fix #14046] Add new `Style/Itself` cop
github.com/rubocop/rubocop - dvandersluis opened this pull request 5 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 5 months ago
Do not emit a warning for an actually empty file while checking if it is executable
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
Fix `Style/FrozenStringLiteralComment` cop errors on emacs-styled magic comment
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 5 months ago
Cop idea: prefer &:itself then an equivalent block
github.com/rubocop/rubocop - Darhazer opened this issue 5 months ago
github.com/rubocop/rubocop - Darhazer opened this issue 5 months ago
The new deprecated cop warning is confusing when triggered in plugins
github.com/rubocop/rubocop - Bo98 opened this issue 5 months ago
github.com/rubocop/rubocop - Bo98 opened this issue 5 months ago
Lint/CopDirectiveSyntax does not allow disabling with wildcard
github.com/rubocop/rubocop - Ben3eeE opened this issue 5 months ago
github.com/rubocop/rubocop - Ben3eeE opened this issue 5 months ago
[Fix #14041] Fix an error when using ERB templated config YAML with server mode
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
New cop to detect condition branches made redundant by an early exit
github.com/rubocop/rubocop - Zopolis4 opened this issue 5 months ago
github.com/rubocop/rubocop - Zopolis4 opened this issue 5 months ago
`Cache.restart_key` fails to parse ERB tags (i.e. `<%= ...`) in `.rubocop.yml`
github.com/rubocop/rubocop - mvastola opened this issue 5 months ago
github.com/rubocop/rubocop - mvastola opened this issue 5 months ago
Add note about frozen string literals handling for `Style/EmptyLiteral`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
Update Style/RaiseArgs docs
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 5 months ago
Rename `allow_named_parameter` to `only_numbered_parameters` in `Style/ItBlockParameter`
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Tweak the output of `rubocop -V` when `TargetRubyVersion` <= 3.2
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
github.com/rubocop/rubocop - koic opened this pull request 5 months ago
Fix false negative for `Lint/ShadowingOuterLocalVariable`
github.com/rubocop/rubocop - lovro-bikic opened this pull request 6 months ago
github.com/rubocop/rubocop - lovro-bikic opened this pull request 6 months ago
[Fix #13617] Proper support for Ruby 3.4
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Consistently use `shared_examples` in specs
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
Add new `InternalAffairs/SharedExamples` cop to enforce consistency when defining shared examples in specs
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
[Fixes #12358] Add `does` as a forbidden prefix to `Naming/PredicateName`
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
`--server` mode does not honor `--config` cli options
github.com/rubocop/rubocop - tdeo opened this issue 6 months ago
github.com/rubocop/rubocop - tdeo opened this issue 6 months ago
Ignore permission errors when searching for gemspec files
github.com/rubocop/rubocop - joshheinrichs-shopify opened this pull request 6 months ago
github.com/rubocop/rubocop - joshheinrichs-shopify opened this pull request 6 months ago
Add `AllowConsecutiveConditionals` setting to `Style/Next` to allow consecutive conditional statements
github.com/rubocop/rubocop - vlad-pisanov opened this pull request 6 months ago
github.com/rubocop/rubocop - vlad-pisanov opened this pull request 6 months ago
Fix false negative for `Layout/MultilineMethodParameterLineBreaks` when class method definitions are used
github.com/rubocop/rubocop - vlad-pisanov opened this pull request 6 months ago
github.com/rubocop/rubocop - vlad-pisanov opened this pull request 6 months ago