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.
123 Subscribers
View all SubscribersAdd a CodeTriage badge to rubocop
Help out
- Issues
- Fix an error for `Lint/UselessAssignment` with an operator assignment in a top level block call
- Fix an error for `Style/RedundantInterpolation` with a nested interpolation in an argument
- Fix an incorrect autocorrect for cops adding a hash literal argument with `Style/MethodCallWithArgsParentheses`
- Fix an error for `Layout/MultilineMethodCallBraceLayout` with a heredoc argument call used as an argument
- Fix an incorrect autocorrect for `Lint/AmbiguousOperatorPrecedence` with `Style/LineEndConcatenation`
- Fix an infinite loop for `Layout/FirstHashElementIndentation` with pairs on the same line and separator style
- Fix false positives in `Style/HashLookupMethod` when using the `Array` or `Hash` constructor
- Fix an infinite loop for `Layout/EndAlignment` with a safe navigation setter
- Fix an infinite loop for `Layout/DefEndAlignment` with nested def modifiers
- UseProjectIndex: a project's own `.rbs` signatures count as definitions (`Lint/DuplicateMethods`, `Lint/ConstantReassignment`, `Lint/NameTypo`)
- Docs
- RuboCop::Cop::Style::GuardClause#statement_branch?
- RuboCop::Cop::Style::GuardClause#statement?
- RuboCop::Cop::Style::EndlessMethod#corrected_to_multiline?
- RuboCop::Cop::Style::EndlessMethod#nested_in_multiline_correction?
- RuboCop::Cop::Style::RedundantEach#receiver_of_dot_call?
- RuboCop::Cop::Lint::LiteralAsCondition#replace_node
- RuboCop::Cop::Style::ClassMethodsDefinitions#no_code_before?
- RuboCop::Cop::Style::ClassMethodsDefinitions#on_own_lines?
- RuboCop::Cop::Style::IdenticalConditionalBranches#statement_branch?
- RuboCop::Cop::Style::IdenticalConditionalBranches#inline_form?