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![CodeTriage badge for bbatsov/rubocop](/bbatsov/rubocop/badges/users.svg?count=134)
Help out
- Issues
- inherit_* default.yml from config dir
- Update `Style/RedundantCondition` cop to detect ternary expressions where the true branch is `true` and suggest replacing them with a logical OR
- Style/KeywordArgumentsMerging is not safe for rails HashWithIndifferentAccess hashes
- Add new `InternalAffairs/OnSendWithoutOnCSend` cop
- Naming/PredicateName: Optionally use Sorbet to detect predicate methods
- Add new `Lint/RedundantLiteralConversion` cop
- Explicitly provided hidden directories are ignored if absolute paths are used
- Style/MultipleComparison autocorrect leaves an error state due to Performance/CollectionLiteralInLoop
- Changing inherited files' require files does not automatically restart the rubocop server
- Add new `Lint/MethodKeywordName` cop
- Docs
- RuboCop::Cop::Lint::FloatComparison#on_csend
- RuboCop::Cop::Security::CompoundHash#on_csend
- RuboCop::Cop::InternalAffairs::LocationExpression#on_csend
- RuboCop::Cop::InternalAffairs::RedundantSourceRange#on_csend
- RuboCop::Cop::Layout::MultilineMethodCallBraceLayout#on_csend
- RuboCop::Cop::InternalAffairs::NodeFirstOrLastArgument#on_csend
- RuboCop::Cop::Layout::MultilineMethodArgumentLineBreaks#on_csend
- RuboCop::DirectiveComment#raw_cop_names
- RuboCop::CLI::Command::ShowCops::WildcardMatcher#match?
- RuboCop::CLI::Command::ShowCops::WildcardMatcher#pattern