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
- Add `AllowedParentClasses` option to `Style/EmptyClassDefinition`
- Add option to allow Lint/UselessAssignment to ignore when used with keyword args
- `Style/HashLookupMethod` wrongly replaces `Rails.cache.fetch('key')` with `Rails.cache['key]`
- Layout/IndentationWidth picks the wrong fix
- Layout/BlockAlignment confused when there's a line break bw arguments
- Ruby syntax error missing reported as a zero-length range at EOF
- Style/ReduceToHash breaks code when accumulator is used for comparisons
- [Fix #14973] Fix `Style/ReduceToHash` false positive when accumulator is read in key/value
- Don't suggest while ... if as a one-liner
- `Layout/RedundantLineBreak` should have option to selectively apply
- Docs
- RuboCop::Cop::InternalAffairs::NodeTypeMultiplePredicates#replacement
- RuboCop::Cop::InternalAffairs::NodeTypeMultiplePredicates#type_predicate?
- RuboCop::Cop::InternalAffairs::NodeTypeMultiplePredicates#on_and
- RuboCop::Cop::InternalAffairs::NodeTypeMultiplePredicates#on_or
- RuboCop::Cop::InternalAffairs::NodeTypeMultiplePredicates#and_not_another_type?
- RuboCop::Cop::InternalAffairs::NodeTypeMultiplePredicates#none_of_node_types?
- RuboCop::Cop::InternalAffairs::NodeTypeMultiplePredicates#or_another_type?
- RuboCop::Cop::InternalAffairs::NodeTypeMultiplePredicates#one_of_node_types?
- RuboCop::Cop::InternalAffairs::NodePatternGroups#pattern_value
- RuboCop::Cop::InternalAffairs::NodePatternGroups#process_pattern