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 false negative for `Layout/LineLength` when autocorrecting class method definitions
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 #13597] Add new `Style/ItBlockParameter` cop
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Support TargetRubyVersion 3.5 (experimental)
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Offend parentheses for chained && expressions in `Style/RedundantParentheses`
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
Support `it` block parameter in `InternalAffairs` cops
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Fix an error for `Style/HashFetchChain`
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Fix handling of long heredoc lines with SplitStrings enabled
github.com/rubocop/rubocop - mauro-oto opened this pull request 6 months ago
github.com/rubocop/rubocop - mauro-oto opened this pull request 6 months ago
Fix comment autocorrection for Style/IfInsideElse
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
Incorrect formatting lead to a logical bug
github.com/rubocop/rubocop - lemiesz opened this issue 6 months ago
github.com/rubocop/rubocop - lemiesz opened this issue 6 months ago
Support `it` block parameter in `Metrics` cops
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Support `it` block parameter in `Lint` cops
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Update `Style/RedundantFormat` to register offenses when the only argument to `format` or `sprintf` is a constant
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
Support `it` block parameter in `Layout` cops
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Support `it` block parameter in `Style` cops
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Fix incorrect autocorrections for `Style/SoleNestedConditional`
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
Github crashes loading our CHANGELOG due to length/size
github.com/rubocop/rubocop - corsonknowles opened this issue 6 months ago
github.com/rubocop/rubocop - corsonknowles opened this issue 6 months ago
[Fix #13617] Automatically use prism when analyzing 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
[Fix #13973] Add new `Lint/VariableBindInAlternativePattern` cop
github.com/rubocop/rubocop - tejasbubane opened this pull request 6 months ago
github.com/rubocop/rubocop - tejasbubane opened this pull request 6 months ago
Add new `Lint/EnvFetchStringDefault` cop
github.com/rubocop/rubocop - tejasbubane opened this pull request 6 months ago
github.com/rubocop/rubocop - tejasbubane opened this pull request 6 months ago
Configuration option for `Layout/HashAlignment` to ensure a minimum indentation for all members of the hash.
github.com/rubocop/rubocop - Zopolis4 opened this issue 6 months ago
github.com/rubocop/rubocop - Zopolis4 opened this issue 6 months ago
Allow cop renames to trigger warnings instead of fatal errors
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
Introduce the concept of "presets" (groups of cops organized by some criteria) to simplify the overall experience
github.com/rubocop/rubocop - bbatsov opened this issue 6 months ago
github.com/rubocop/rubocop - bbatsov opened this issue 6 months ago
Perform initial indexing before triggering watched file notifications
github.com/rubocop/rubocop - vinistock opened this pull request 6 months ago
github.com/rubocop/rubocop - vinistock opened this pull request 6 months ago
Temporarily pin ruby-lsp to < 0.23.12
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
Remove `broken_on: :prism` from 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
[Fix #12360] Add new `Naming/PredicateMethod` cop to check that predicate methods end with `?` and non-predicate methods do not
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
`ruby-lsp` 0.23.12 breaks "workspace/didChangeWatchedFiles creates new runtime adapter" spec
github.com/rubocop/rubocop - Earlopain opened this issue 6 months ago
github.com/rubocop/rubocop - Earlopain opened this issue 6 months ago
Remove duplicate security issue link
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Allow free-form issue creation
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
[Fix #13990] Fix a false positive for Lint/UselessAssignment when a variable is reassigned in a different branch
github.com/rubocop/rubocop - eugeneius opened this pull request 6 months ago
github.com/rubocop/rubocop - eugeneius opened this pull request 6 months ago
An error occurred while `Capybara/RSpec/PredicateMatcher`
github.com/rubocop/rubocop - OuthBack opened this issue 6 months ago
github.com/rubocop/rubocop - OuthBack opened this issue 6 months ago
Improve documentation for `Lint/RaiseException`
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
`Style/MultipleComparison` autocorrect can cause syntax errors due to line breaks
github.com/rubocop/rubocop - corsonknowles opened this issue 6 months ago
github.com/rubocop/rubocop - corsonknowles opened this issue 6 months ago
Prevent a false-positive in UselessAssignment
github.com/rubocop/rubocop - jamie opened this pull request 6 months ago
github.com/rubocop/rubocop - jamie opened this pull request 6 months ago
[Doc] Tweak navigation of docs
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Lint/UselessAssignment False Positive
github.com/rubocop/rubocop - jamie opened this issue 6 months ago
github.com/rubocop/rubocop - jamie opened this issue 6 months ago
Layout/IndentationConsistency Error
github.com/rubocop/rubocop - hunter93 opened this issue 6 months ago
github.com/rubocop/rubocop - hunter93 opened this issue 6 months ago
Cop Idea: Env Fetch Default a String
github.com/rubocop/rubocop - zacheryph opened this issue 6 months ago
github.com/rubocop/rubocop - zacheryph opened this issue 6 months ago
[Fix #13986] Add support for `Array#intersection` to `Style/ArrayIntersect`
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
`Style/ArrayIntersect` should also detect `.intersection`
github.com/rubocop/rubocop - tejasbubane opened this issue 6 months ago
github.com/rubocop/rubocop - tejasbubane opened this issue 6 months ago
Cop Idea: Recommend adding `exception: true` to `system()` calls
github.com/rubocop/rubocop - tejasbubane opened this issue 6 months ago
github.com/rubocop/rubocop - tejasbubane opened this issue 6 months ago
[Bug] `Lint/UselessAssignment` false positive with `in` operator
github.com/rubocop/rubocop - jtannas opened this issue 6 months ago
github.com/rubocop/rubocop - jtannas opened this issue 6 months ago
[Fix #8099] Fix infinite loop between `Layout/SpaceAroundOperators` and `Layout/HashAlignment` with `EnforcedHashRocketStyle` being an array containing `table`
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
An error occurred while Capybara/RSpec/PredicateMatcher cop was inspecting
github.com/rubocop/rubocop - ruban-thilak opened this issue 6 months ago
github.com/rubocop/rubocop - ruban-thilak opened this issue 6 months ago
Prevent redundant plugin loading
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Cop idea: detect misspelling of constructor
github.com/rubocop/rubocop - viralpraxis opened this issue 6 months ago
github.com/rubocop/rubocop - viralpraxis opened this issue 6 months ago
Add `Mode: conservative` configuration to `Style/FormatStringToken` to make the cop only register offenses for strings given to `printf`, `sprintf`, `format`, and `%`
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
Allow `TLS1_1` and `TLS1_2` by default in `Naming/VariableNumber`
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Naming/VariableNumber triggers on `:TLS1_2` parameter to `Net::HTTP.start`
github.com/rubocop/rubocop - Zopolis4 opened this issue 6 months ago
github.com/rubocop/rubocop - Zopolis4 opened this issue 6 months ago
[Fix #13975] Fix false positives for `Style/RedundantCurrentDirectoryInPath`
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
RedundantCurrentDirectoryInPath incorrectly flags require_relative './../monitors/base'
github.com/rubocop/rubocop - grosser opened this issue 6 months ago
github.com/rubocop/rubocop - grosser opened this issue 6 months ago
Update documentation for `Style/FormatStringToken` for clarity
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
Detect binding to variables for alternative patterns
github.com/rubocop/rubocop - tejasbubane opened this issue 6 months ago
github.com/rubocop/rubocop - tejasbubane opened this issue 6 months ago
[Fix #13965] Update `Lint/RedundantCopDisableDirective` to register an offense when cop names are given with improper casing
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
Fix false alarm for config obsoletion
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
[Fix #13969] Fix a false positive for `Lint/SharedMutableDefault`
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Cop `Lint/SharedMutableDefault` reports on ruby 3.4 Hash.new(capacity: 1) form
github.com/rubocop/rubocop - PikachuEXE opened this issue 6 months ago
github.com/rubocop/rubocop - PikachuEXE opened this issue 6 months ago
Fix `InternalAffairs/RedundantDescribedClassAsSubject` cop error on missing `describe`
github.com/rubocop/rubocop - viralpraxis opened this pull request 6 months ago
github.com/rubocop/rubocop - viralpraxis opened this pull request 6 months ago
Make `Lint/RedundantTypeConversion` aware of redundant `to_d`
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
[Fix #13963] Fix wrong autocorrect for `Lint/LiteralAsCondition` when the literal is followed by `return`, `break`, or `next`
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Rubocop disable directives matching has odd behaviour
github.com/rubocop/rubocop - tejasbubane opened this issue 6 months ago
github.com/rubocop/rubocop - tejasbubane opened this issue 6 months ago
Style/RedundantCondition: False positive
github.com/rubocop/rubocop - akimd opened this issue 6 months ago
github.com/rubocop/rubocop - akimd opened this issue 6 months ago
Lint/LiteralAsCondition auto-correct breaks some code even more
github.com/rubocop/rubocop - Aqualon opened this issue 6 months ago
github.com/rubocop/rubocop - Aqualon opened this issue 6 months ago
Warn when list of target files greater than MaxFilesInCache config
github.com/rubocop/rubocop - lovro-bikic opened this issue 6 months ago
github.com/rubocop/rubocop - lovro-bikic opened this issue 6 months ago
Performance regression in RuboCop API consumers after switching to plugins
github.com/rubocop/rubocop - viralpraxis opened this issue 6 months ago
github.com/rubocop/rubocop - viralpraxis opened this issue 6 months ago
Fix a false negative for `Lint/ReturnInVoidContext` when returning out of a block
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Lint/CopDirectiveSyntax gives false positives for inline cops
github.com/rubocop/rubocop - syakovyn opened this issue 6 months ago
github.com/rubocop/rubocop - syakovyn opened this issue 6 months ago
Remove no longer needed workaround for `regexp_parser` bug
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
[Fix #13950] Obsoletion cache can be broken
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Tweak the offense message for `Style/ExponentialNotation`
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
[Fix #12049] Add new `Style/HashFetchChain` cop to detect method chains that can be replaced with a single call to `dig`
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
[Documentation] Update autocorrect docs to accurately define safety
github.com/rubocop/rubocop - a-lavis opened this issue 6 months ago
github.com/rubocop/rubocop - a-lavis opened this issue 6 months ago
Random failures with "Performance cops have been extracted to the rubocop-performance gem"
github.com/rubocop/rubocop - jdelStrother opened this issue 6 months ago
github.com/rubocop/rubocop - jdelStrother opened this issue 6 months ago
Fix a false negatives for `Lint/NonLocalExitFromIterator` with numblocks
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Fix wrong autocorrect for `Style/RescueModifier` when mllhs and the right-hand-side is not a bracketed array
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Fix a false negative for `Lint/UselessConstantScoping` for constants defined in `class << self`
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Fix some false positives for `Style/MethodCallWithArgsParentheses` with `EnforcedStyle: omit_parentheses` style and numblocks
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Fix a false positive for `Style/DoubleNegation` when calling `define_method` with a numblock
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
[Fix #13941] Fix false negative from `Lint/UselessConstantScoping` for class and module definitions
github.com/rubocop/rubocop - tejasbubane opened this pull request 6 months ago
github.com/rubocop/rubocop - tejasbubane opened this pull request 6 months ago
Allow writing Steep annotation on the same line as `def`, `end`, `begin`, `class` and `module` in `Style/CommentedKeyword`
github.com/rubocop/rubocop - dak2 opened this pull request 6 months ago
github.com/rubocop/rubocop - dak2 opened this pull request 6 months ago
Fix incorrect disabling of departments when inheriting configuration
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
False positive on Lint/UselessConstantScoping with `MyClass = Class.new`
github.com/rubocop/rubocop - pdobb opened this issue 6 months ago
github.com/rubocop/rubocop - pdobb opened this issue 6 months ago
[Fix #13794] Fix line-length breaking autoformatting for endless defs with blocks
github.com/rubocop/rubocop - tejasbubane opened this pull request 6 months ago
github.com/rubocop/rubocop - tejasbubane opened this pull request 6 months ago
[Fix #13933] Fix wrong autocorrect for `Style/KeywordParametersOrder` with comments
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Fix false positives for `Style/RedundantCondition`
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Fix changelog for #13935
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
New cop `Style/ComparableBetween`
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 a false negative for `Style/RedundantFreeze` when calling methods that produce frozen objects with numblocks
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
RuboCop 1.72 breaks GitHub CodeClimate CI
github.com/rubocop/rubocop - JoeCohen opened this issue 6 months ago
github.com/rubocop/rubocop - JoeCohen opened this issue 6 months ago
Botches the code completely for keyword arguments with a comment
github.com/rubocop/rubocop - p-datadog opened this issue 6 months ago
github.com/rubocop/rubocop - p-datadog opened this issue 6 months ago
Fix `end pattern with unmatched parenthesis: / (RegexpError)` on Ruby 3.2.0
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
`Style/RedundantCondition` is doing unsafe corrections on methods that end in `?`
github.com/rubocop/rubocop - a-lavis opened this issue 6 months ago
github.com/rubocop/rubocop - a-lavis opened this issue 6 months ago
Make `Layout/LeadingCommentSpace` compatible with Inline RBS type signatures
github.com/rubocop/rubocop - joeldrapper opened this issue 6 months ago
github.com/rubocop/rubocop - joeldrapper opened this issue 6 months ago
Introduce `InternalAffairs/NodeTypeGroup`
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
github.com/rubocop/rubocop - Earlopain opened this pull request 6 months ago
Upgrading to rubocop 1.73.1 (was 1.71.2) results in RegexpError (rubocop/cop/utils/format_string.rb:19) when attempting to run rubocop
github.com/rubocop/rubocop - jethroo opened this issue 6 months ago
github.com/rubocop/rubocop - jethroo opened this issue 6 months ago
[Fix #13766] Fix false positives for `Style/InverseMethods`
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
github.com/rubocop/rubocop - koic opened this pull request 6 months ago
Update `InternalAffairs/ExampleDescription` to handle `expect_no_corrections` with "registers an offense and corrects" description
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
[Fix #12669] Update autocorrection for `Lint/EmptyConditionalBody` to be safe
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago
github.com/rubocop/rubocop - dvandersluis opened this pull request 6 months ago