rubocop
https://github.com/rubocop-hq/rubocop
Ruby
A Ruby static code analyzer and formatter, 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.
49 Subscribers
View all SubscribersAdd a CodeTriage badge to rubocop
Help out
- Issues
- Fix an incorrect autocorrect for `Style/MultilineTernaryOperator` with a heredoc
- Fix an incorrect autocorrect for `Lint/UselessAssignment` with the first argument of a method call without parentheses
- Fix an incorrect autocorrect for `Style/NilLambda` with a single-line `do`...`end` block
- Fix an incorrect autocorrect for `Lint/LiteralAsCondition` when removing a node where an expression is required
- Fix an incorrect autocorrect for `Style/MethodCallWithArgsParentheses` with a semicolon in a parenthesized argument
- Fix an incorrect autocorrect for `Style/For` with a trailing comma in the loop variable
- Fix an infinite loop for `Layout/IndentationStyle` with fewer spaces than the indentation width
- Fix an incorrect autocorrect for `Lint/SafeNavigationChain` with an operator call as an argument
- Fix an incorrect autocorrect for `Style/DefWithParentheses` with an endless method whose `=` is on the next line
- Fix an incorrect autocorrect for `Style/StabbyLambdaParentheses` with block-local variables or a destructured first argument
- Docs
- RuboCop::Cop::Style::NilLambda#body_range_on_shared_line
- RuboCop::Cop::Style::NilLambda#own_lines?
- RuboCop::Cop::Style::GuardClause#remove_end
- RuboCop::Cop::Style::GuardClause#code_after_end_needs_conditional?
- RuboCop::Cop::Style::RedundantSort.autocorrect_incompatible_with
- RuboCop::Cop::Layout::ClassStructure#blank_line_above?
- RuboCop::Cop::Layout::ClassStructure#directly_followed?
- RuboCop::Cop::Layout::ClassStructure#blank_between?
- RuboCop::Cop::Layout::ClassStructure#moved_runs
- RuboCop::Cop::Layout::ClassStructure#separators