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.
50 Subscribers
View all SubscribersAdd a CodeTriage badge to rubocop
Help out
- Issues
- New cop for `#dig` followed by `#first`
- New Cop: Detect `'/dev/null'` and suggest `File::NULL` instead
- Add new `Style/FileTouch` cop
- New cop for chained `#dig` calls
- New cop to detect usage of File.open with empty block
- Update `Lint/ItWithoutArgumentsInBlock` to not register an offense in Ruby 3.4
- Add new `Naming/ItAssignment` cop to detect assignments to `it` inside blocks
- [Fix #11013] Alert on shared mutable defaults during Hash Initialization
- Show warning if cop configurations create an inconsistency that will cause unexpected behaviour
- [Fix #13395] False positive for `Lint/UselessAssignment` when assigning in branch and block
- Docs
- RuboCop::Cop::Style::AccessModifierDeclarations#correctable_group_offense?
- RuboCop::Cop::Style::AccessModifierDeclarations#allowed?
- RuboCop::Cop::Lint::InterpolationCheck#valid_syntax?
- RuboCop::Cop::InternalAffairs::OperatorKeyword#on_or
- RuboCop::Cop::InternalAffairs::OperatorKeyword#and_or_type
- RuboCop::Cop::Style::IfWithSemicolon#use_return_with_argument?
- RuboCop::Cop::Style::IfWithSemicolon#require_newline?
- RuboCop::Cop::Lint::FloatComparison#literal_safe?
- RuboCop::Cop::Lint::NumericOperationWithConstantResult#constant_result?
- RuboCop::Cop::Lint::NumericOperationWithConstantResult#on_op_asgn