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.
134 Subscribers
View all SubscribersAdd a CodeTriage badge to rubocop
Help out
- Issues
- New cop to detect assigning rescued exceptions using writer methods
- Add new `InternalAffairs/LocationExists` cop to check for code that can be replaced with `Node#loc?` or `Node#loc_is?`
- Permit indentation whitespace after `"...\n" \`
- Permit leading indentation on line following `\n` in `Layout/LineContinuationLeadingSpace`
- Fix `Style/IdenticalConditionalBranches` cop failure in case of `if` node with implicit `then`
- Robustly handle `csend` nodes across all cops
- Lint for redundant keyword_init on structs
- Running `bin/jruby -S rubocop --regenerate-todo` lists `Layout/LineLength` twice
- New cop for `#dig` followed by `#first`
- Show warning if cop configurations create an inconsistency that will cause unexpected behaviour
- Docs
- RuboCop::Cop::Style::ArrayFirstLast#find_offense_range
- RuboCop::Cop::Style::ArrayFirstLast#preferred_value
- RuboCop::Cop::Style::ArrayFirstLast#on_csend
- RuboCop::LSP::Diagnostic#offense_replacements
- RuboCop::LSP::Diagnostic#autocorrect_action
- RuboCop::LSP::Diagnostic#code_description
- RuboCop::LSP::Diagnostic#severity
- RuboCop::LSP::Diagnostic#message
- RuboCop::LSP::Diagnostic#to_lsp_diagnostic
- RuboCop::LSP::Diagnostic#to_lsp_code_actions