DeepSource
Dashboard Resources Pricing Discover Directory Log in

Run your first analysis.

Find thousands of code security and quality issues in your codebase, before they end up in production.

Start now
All analyzers Ruby
Ruby

Ruby

By DeepSource

Use Analyzer
Docs
Discuss
Incorrect pluralization grammar detected RB-RL1037
Style
Autofix

When using ActiveSupport's number pluralization, proper aliases should be used for readablity. For example, 1.day.ago, while equivalent to 1.days.ago, does not make grammatical sense.

Grouped parentheses found in function calls RB-LI1043
Style
Autofix

Do not put a space between method name and left parenthesis, it makes the code ambiguous to read.

Detected use of discouraged ways to define class methods RB-ST1194
Style

Using def self.method_name or class << self to define class methods is recommended.

Inconsistent usage of request attribute detected RB-RL1047
Style
Autofix

The referer from the request object should be accessed in a consistent way throughout the codebase. By default, this issue is raised when referrer is used. However, it can be configured to raise this issue on usage of referer in .rubocop.yml.

Inconsistent use of safe navigation detected RB-RL1049
Style
Autofix

By default, this issue is raised when using try! in place of &.. try can be detected, too, if configured in .rubocop.yml. For example, if try is detected too