rubocop
https://github.com/bbatsov/rubocop
Ruby
A Ruby static code analyzer, based on the community Ruby style guide.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
126 Subscribers
View all SubscribersAdd a CodeTriage badge to rubocop
Help out
- Issues
- Fix false positives for `Style/ItAssignment` before Ruby 3.4
- --fail-fast silently passes when offenses are found
- Fix comment duplication for `Style/AccessorGrouping` with a single-line trailing comment
- `Style/ClassAndModuleChildren`: `EnforcedStyleForClasses` / `EnforcedStyleForModules` are silently ignored
- Fix `Style/DocumentationMethod` ignoring `AllowedMethods` for inline modifier defs
- Fix a false positive for `Style/EmptyLiteral` with numbered and `it` block parameters
- Fix an incorrect autocorrect for `Style/HashConversion` with a splat argument
- Change `Lint/DuplicateMethods` to detect duplicates across files
- Support autocorrection for tab indentation in `Layout/IndentationWidth` and `Style/ClassAndModuleChildren`
- [Fix #15298] Fix an incorrect autocorrect for `Lint/LiteralInInterpolation`
- Docs
- RuboCop::Cop::Style::EvenOdd#receiver_source
- RuboCop::Cop::HashSubset#to_single_quoted
- RuboCop::Cop::Style::FormatString#requires_parentheses?
- RuboCop::Cop::Style::ExactRegexpMatch#escape_single_quotes
- RuboCop::Cop::Style::EmptyCaseCondition#parenthesize_condition
- RuboCop::Cop::Style::MultilineMemoization#contains_rescue_or_ensure?
- RuboCop::Cop::Lint::AssignmentInCondition#discarded_assignment?
- RuboCop::Cop::Style::EmptyClassDefinition#constant_name
- RuboCop::Cop::Style::EmptyStringInsideInterpolation#ternary_correction
- RuboCop::Cop::Style::EmptyStringInsideInterpolation#trailing_conditional_correction