Rubocop
A Ruby code style checker (linter) and formatter
| Type | object |
|---|---|
| File match |
*.rubocop.yml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/rubocop/latest.json |
| Source | https://www.rubyschema.org/rubocop.json |
Validate with Lintel
npx @lintel/lintel check
Properties
Inherit configuration from one or more gems. Allows you to share RuboCop configuration across multiple projects. The key is the gem name and the value is the relative path to the config file within the gem. Docs
Inherit configuration from one or more files. Can be local file paths or remote URLs. Files can be given with absolute paths or paths relative to the file where they are referenced. Also accepts glob patterns. Docs
Specifies which configuration keys with array values should be merged together instead of overriding the inherited value. This applies to both explicit inheritance via inherit_from and implicit inheritance from the default config. Docs
1 nested properties
Array configuration keys that should be merged with inherited values rather than overriding them
Global configuration that applies to all cops. These settings affect RuboCops overall behavior. Docs
12 nested properties
File patterns (globs) to exclude from all cops. Files matching these patterns will not be inspected. To apply exclusions when specific files are passed as arguments, use --force-exclusion. Docs
File patterns (globs) to include for all cops. Files matching these patterns will be inspected. Overrides the default patterns from RuboCop. Docs
When true, all cops except Lint/Syntax are disabled by default. Only cops explicitly enabled in configuration files will run. Cannot be used with EnabledByDefault. Docs
When true, all cops are enabled by default, including those that are normally disabled. Cannot be used with DisabledByDefault. Docs
The minimum Ruby version your code must support. Cops that detect version-specific features will adjust their behavior accordingly. If not specified, RuboCop will try to detect it from .ruby-version, Gemfile.lock, *.gemspec, or .tool-versions. Docs
The parser backend to use. parser_whitequark supports Ruby 2.0-3.4, while parser_prism supports Ruby 3.3+ and is typically faster. Since RuboCop 1.75, the parser is chosen automatically if not specified. Docs
Base URL for the style guide. This is combined with individual cop StyleGuide values to generate complete URLs. Docs
Base URL for the documentation. Used to generate documentation links for all cops. Docs
File extension for documentation files (e.g., .md for Markdown). Defaults to .html if not specified. Docs
When true, enables checking of Active Support extensions in relevant cops (e.g., Style/HashExcept). This allows RuboCop to recognize Rails/ActiveSupport-specific methods. Docs
Set this to true if you enable frozen string literals globally with the RUBYOPT environment variable (e.g., RUBYOPT=--enable=frozen-string-literal). This affects how RuboCop analyzes string literals. Docs
Maximum number of files RuboCop stores in its result cache before pruning. Set to false to disable cache pruning entirely. Docs
4 nested properties
Enable or disable all cops in this department. Individual cops can still override this setting.
Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs
Base URL for the documentation. Used to generate documentation links for cops in this department. Docs
File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.
4 nested properties
Enable or disable all cops in this department. Individual cops can still override this setting.
Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs
Base URL for the documentation. Used to generate documentation links for cops in this department. Docs
File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.
4 nested properties
Enable or disable all cops in this department. Individual cops can still override this setting.
Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs
Base URL for the documentation. Used to generate documentation links for cops in this department. Docs
File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.
4 nested properties
Enable or disable all cops in this department. Individual cops can still override this setting.
Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs
Base URL for the documentation. Used to generate documentation links for cops in this department. Docs
File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.
4 nested properties
Enable or disable all cops in this department. Individual cops can still override this setting.
Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs
Base URL for the documentation. Used to generate documentation links for cops in this department. Docs
File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.
4 nested properties
Enable or disable all cops in this department. Individual cops can still override this setting.
Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs
Base URL for the documentation. Used to generate documentation links for cops in this department. Docs
File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.
4 nested properties
Enable or disable all cops in this department. Individual cops can still override this setting.
Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs
Base URL for the documentation. Used to generate documentation links for cops in this department. Docs
File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.
4 nested properties
Enable or disable all cops in this department. Individual cops can still override this setting.
Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs
Base URL for the documentation. Used to generate documentation links for cops in this department. Docs
File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.
4 nested properties
Enable or disable all cops in this department. Individual cops can still override this setting.
Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs
Base URL for the documentation. Used to generate documentation links for cops in this department. Docs
File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces comments above gem declarations for documentation. Improves gem intent clarity. Docs
Enforces naming convention for Gemfile. Keeps project structure consistent. Docs
Enforces use of version specifiers in gem declarations. Improves dependency management. Docs
Warns against insecure gem sources (http instead of https). Improves security. Docs
Enforces alphabetical ordering of gems in groups. Improves readability. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces explicit version specifications in gem dependencies. Improves clarity. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces that development dependencies are in development group. Improves gem organization. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces alphabetical ordering of dependencies in gemspec. Improves readability. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks the indentation of private, protected, and public access modifiers. You can choose to indent them to the same level as the class/module definition or one level deeper. Docs
Enforces consistent indentation for method arguments. Improves readability. Docs
Enforces consistent alignment of array elements. Improves code formatting. Docs
Enforces consistent indentation for assignment statements. Improves code clarity. Docs
Enforces alignment of begin/end blocks. Improves code readability. Docs
Enforces alignment of block elements. Improves code structure. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent indentation in case statements. Improves code clarity. Docs
Enforces consistent ordering of class methods and attributes. Improves code organization. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent indentation of comments. Improves code readability. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces alignment of def/end blocks. Improves code structure. Docs
Enforces consistent position of dot in method chains. Improves code formatting. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces blank line between method definitions. Improves code spacing. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces blank lines around access modifiers. Improves code spacing. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces blank lines around attribute accessors. Improves code spacing. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces blank lines around block bodies. Improves code spacing. Docs
Enforces blank lines around class body. Improves code formatting. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces blank lines around module body. Improves code formatting. Docs
Enforces consistent alignment of end keyword. Improves code structure. Docs
Checks for consistent line endings (LF, CRLF, or platform-native). Inconsistent line endings can cause problems with version control systems and cross-platform development. Docs
Enforces indentation of first method argument. Improves code alignment. Docs
Enforces indentation of first array element. Improves code alignment. Docs
Enforces line break before first array element. Improves code formatting. Docs
Enforces indentation of first hash element. Improves code alignment. Docs
Enforces line break before first hash element. Improves code formatting. Docs
Enforces line break before first method argument. Improves code formatting. Docs
Enforces line break before first method parameter. Improves code formatting. Docs
Enforces indentation of first parameter. Improves code alignment. Docs
Enforces consistent alignment of hash elements. Improves code formatting. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent indentation style. Improves code readability. Docs
Enforces consistent use of either spaces or tabs for indentation. Mixing spaces and tabs can lead to display issues in different editors. Docs
Checks that indentation uses the configured number of spaces. The default is 2 spaces per indentation level, which is the Ruby community standard. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces space after comment hash. Improves comment readability. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces leading space for line continuations. Improves code formatting. Docs
Enforces spacing around line continuation characters. Improves readability. Docs
Enforces indentation for string concatenation at line end. Improves formatting. Docs
Enforces a maximum line length. Long lines can be hard to read and may indicate code that should be refactored. The default maximum is typically 120 characters. Docs
Enforces consistent bracket placement for multi-line arrays. Improves formatting. Docs
Enforces line breaks in multi-line arrays. Improves code formatting. Docs
Enforces consistent formatting for multi-line assignments. Improves readability. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent bracket placement for multi-line hashes. Improves formatting. Docs
Enforces line breaks for multi-line hash keys. Improves code formatting. Docs
Enforces line breaks in multi-line method arguments. Improves readability. Docs
Enforces consistent bracket placement for method calls. Improves formatting. Docs
Enforces consistent indentation for method calls. Improves alignment. Docs
Enforces bracket placement in method definitions. Improves formatting. Docs
Enforces line breaks in multi-line method parameters. Improves formatting. Docs
Enforces consistent indentation for multi-line operations. Improves alignment. Docs
Enforces alignment of method parameters. Improves code formatting. Docs
Detects unnecessary line breaks. Removes useless formatting. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces spacing around block parameters. Improves code formatting. Docs
Enforces spaces around = in default parameters. Improves readability. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces spaces around operators. Improves code formatting. Docs
Enforces space before opening brace in blocks. Improves formatting. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces space before first argument. Improves code formatting. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper spacing in lambda literals. Improves code formatting. Docs
Enforces spacing inside array literal brackets. Improves formatting. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces spacing inside block braces. Improves code formatting. Docs
Enforces spacing inside hash braces. Improves code formatting. Docs
Enforces no space inside parentheses. Improves code formatting. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces spacing inside reference brackets. Improves code formatting. Docs
Enforces spacing in string interpolation. Improves code formatting. Docs
Enforces consistent trailing empty lines. Improves file formatting. Docs
Detects and removes trailing whitespace. Improves code cleanliness. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects ambiguous block associations in method calls. Suggests adding parentheses. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects ambiguous range expressions. Suggests clarification with parentheses. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects assignment in conditions which might be unintended. Suggests using comparison. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects constant definitions inside blocks. Suggests defining at class/module level. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects issues with constant resolution. Suggests proper scope. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for leftover debugging code like binding.pry, byebug, or debugger statements. These should typically be removed before committing code. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects use of deprecated deprecated constants. Suggests using modern alternatives. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects duplicate duplicate branch in code. Helps keep code DRY. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects empty empty block. Suggests removing or implementing properly. Docs
Detects empty empty class. Suggests removing or implementing properly. Docs
Detects empty empty conditional body. Suggests removing or implementing properly. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects empty empty file. Suggests removing or implementing properly. Docs
Detects empty empty in pattern. Suggests removing or implementing properly. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects empty empty when. Suggests removing or implementing properly. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper inherit exception handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects cop disable without corresponding enable. Prevents permanently disabled cops. Docs
Detects missing missing super. Ensures required elements are present. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper nested method definition handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects implicit string-to-number conversions. Prevents unexpected behavior. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper raise exception handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects redundant redundant splat expansion. Removes duplicate code. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects shadowing of method arguments in blocks. Prevents confusion. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects rescue clauses that suppress exceptions silently. Improves error visibility. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects underscore-prefixed unused variables. Suggests removing or using. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper unexpected block arity handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects unused block parameters. Suggests using _ prefix. Docs
Checks for method parameters that are defined but never used in the method body. Unused parameters may indicate incomplete implementation or can be removed to improve code clarity. Prefix unused parameters with _ to indicate they're intentionally unused. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects access modifiers with no effect. Removes unnecessary code. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects useless useless default value argument. Removes unnecessary code. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Calculates the ABC (Assignment, Branch, Call) metric for methods. This metric measures method complexity based on assignments, branches (conditionals), and method calls. High ABC scores suggest methods that may be doing too much and should be refactored. Docs
Checks for blocks that are too long. Long blocks can be hard to understand and may indicate code that should be extracted into separate methods. DSL blocks (like RSpec describe blocks) are often excluded from this check. Docs
Enforces maximum nesting depth in blocks. Prevents deeply nested code. Docs
Checks for classes that are too long. Long classes often violate the Single Responsibility Principle and can be difficult to understand and maintain. Consider splitting them into multiple smaller classes. Docs
Enforces maximum collection literal length. Prevents overly long literals. Docs
Measures cyclomatic complexity, which counts the number of linearly independent paths through a method. High cyclomatic complexity indicates methods with many conditional branches that are difficult to test and understand. Docs
Checks for methods that are too long. Long methods are harder to understand, test, and maintain. Consider breaking them into smaller, more focused methods. The default maximum is typically 10 lines. Docs
Enforces maximum module length. Encourages splitting into multiple modules. Docs
Enforces maximum number of parameters. Suggests using options hash or struct. Docs
Enforces limit on perceived complexity. Prevents confusing logic. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces ASCII-only identifiers. Improves code compatibility. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent block forwarding syntax. Improves code clarity. Docs
Enforces proper naming for block parameters. Improves code consistency. Docs
Enforces CamelCase for classes and modules. Follows Ruby conventions. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces filename matches class/module name. Improves project organization. Docs
Enforces consistent heredoc delimiter casing. Improves code consistency. Docs
Enforces proper naming for heredoc delimiters. Improves clarity. Docs
Encourages inclusive terminology in code. Promotes inclusive practices. Docs
Enforces proper naming for memoized variables. Improves clarity. Docs
Enforces proper naming for method parameters. Improves code consistency. Docs
Enforces proper predicate method handling. Improves code quality. Docs
Enforces proper predicate prefix handling. Improves code quality. Docs
Enforces proper naming for rescue variables. Improves clarity. Docs
Enforces proper numbering for variables. Improves consistency. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for access modifier declarations (private, protected, public). Can require inline modifiers (e.g., private def foo) or group style (e.g., private on its own line). Docs
Enforces grouping or separation of accessor methods (attr_reader, attr_writer, attr_accessor). Can require grouping multiple accessors on one line or separating them. Docs
Enforces consistent use of alias vs alias_method. The alias keyword is faster but has different scoping rules than alias_method. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for uses of and/or and suggests using &&/|| instead. The keywords have different precedence which can lead to subtle bugs. Docs
Enforces use of Ruby 2.7+ argument forwarding syntax (...) when all arguments are forwarded to another method. Improves readability and performance. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for non-ASCII characters in comments. Useful for projects that require ASCII-only source code for compatibility reasons. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for bare percent literals. Choose between %q (explicit) or % (bare) for string literals. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent use of do...end vs {...} for blocks. Common styles: use braces for single-line/chaining, do...end for multi-line/procedural methods. Docs
Checks for explicit use of the case equality operator (===). Usually you should use case/when statements instead for better readability. Docs
Checks for if/elsif chains that compare the same variable and suggests using a case/when statement instead. More readable and maintainable. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for nested class/module definitions. Choose between compact (class Foo::Bar) or nested (class Foo; class Bar) style. Docs
Enforces consistent use of is_a? vs kind_of? for class type checking. Both methods are functionally identical. Docs
Checks for class equality comparisons using == and suggests using is_a?, kind_of?, or instance_of? instead. More idiomatic and handles inheritance better. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for defining class methods. Choose between def self.method or class << self style. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces use of compact instead of reject(&:nil?) or select { |e| !e.nil? } for removing nil values from collections. More concise and idiomatic. Docs
Enforces use of preferred collection method names. For example, prefer map over collect, or find over detect. Improves consistency. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for command literals (shell commands). Choose between backticks or %x() syntax. Backticks are more common. Docs
Enforces consistent formatting for comment annotations like TODO, FIXME, OPTIMIZE, etc. Ensures they follow a standard format with colons. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for conditional variable assignment. Choose between assigning to the condition result or assigning inside each branch. Docs
Enforces explicit visibility declarations (private_constant, public_constant) for constants. Helps document and enforce which constants are part of the public API. Docs
Checks that source files include a copyright notice matching a specified pattern. Useful for ensuring license compliance. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for uses of DateTime class and suggests using Time or Date instead. DateTime is rarely needed and has worse performance than Time. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for inline RuboCop disable comments and can enforce department-level or cop-level disabling. Helps maintain control over which cops can be disabled. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for missing top-level documentation on classes and modules. Enforces that public classes/modules have explanatory comments. Improves maintainability. Docs
Checks for missing method documentation. Can require comments on all public methods or even private methods. Useful for library code and APIs. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for double negation (!!) and suggests using explicit conversion methods or truthiness. Can allow double negation in return statements for boolean conversion. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for empty class definitions. Choose between standard class definition or using Class.new. Docs
Checks for empty else branches in conditionals. Can warn about or remove empty else blocks, or require explicit nil. Improves code clarity. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for empty methods. Choose between compact (single line) or expanded (multi-line) format. Docs
Checks for empty strings inside string interpolation (#{""}) and suggests removing them. Unnecessary interpolation should be cleaned up. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces or forbids use of Ruby 3.0+ endless method definitions (def foo = bar). Can require, allow, or disallow this syntax. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for exponential notation in numbers. Choose between scientific, engineering, or integral format. Docs
Enforces use of ENV.fetch instead of ENV[] for accessing environment variables. fetch makes missing variables explicit and allows default values. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for float division to avoid integer division bugs. Can enforce converting one operand to float or using fdiv. Docs
Checks for for loops and suggests using each instead. The for keyword is rarely used in Ruby and each is more idiomatic. Docs
Enforces consistent use of string formatting methods. Choose between format/sprintf or string interpolation with % operator. Docs
Enforces consistent style for format string tokens. Can require named placeholders (%{name}), templates (%<name>s), or allow unannotated (%s). Docs
Enforces presence of # frozen_string_literal: true magic comment at the top of files. Helps improve performance by freezing string literals. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for global variables ($var) and suggests avoiding them. Global variables make code harder to test and reason about. Use constants or dependency injection instead. Docs
Enforces use of guard clauses (early returns) instead of wrapping method body in conditionals. Reduces nesting and improves readability. Docs
Enforces consistent style for hashes as the last element in arrays. Can require or forbid braces around hash literals. Docs
Checks for unnecessarily complex hash construction and suggests simpler alternatives. For example, Hash[array.map { |x| [x, x] }] can be array.to_h { |x| [x, x] }. Docs
Enforces use of each_key and each_value instead of each when only using keys or values. More explicit and efficient. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for case statements that behave like hash lookups and suggests using an actual hash. More efficient for many branches. Docs
Enforces consistent hash lookup style. Can prefer [] brackets or fetch for accessing hash values. fetch makes missing keys explicit. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent hash syntax. Can require modern Ruby 1.9+ syntax (key: value) or hash rockets (=>) or allow mixing based on key type. Very commonly customized. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for if statements nested inside else blocks and suggests using elsif instead. Reduces nesting and improves readability. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for if statements that return boolean literals and suggests simplifying to the condition itself. For example, if x then true else false should be x. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for code that could be simplified using inverse methods. For example, !x.include?(y) should be x.exclude?(y). More readable. Docs
Checks for unless conditions that could be inverted to use if instead. Helps maintain consistent conditional style throughout codebase. Docs
Checks for hardcoded IP addresses in code and suggests extracting to constants or environment variables. Improves maintainability and security. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces or forbids use of the numbered parameter it in single-parameter blocks (Ruby 2.7+). Can require explicit parameters for clarity. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for lambda definitions. Can require lambda keyword, literal syntax ->, or decide based on line count. Docs
Enforces consistent style for calling lambdas. Can require call method or allow the [] syntax. The call method is more explicit. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent formatting for magic comments like # frozen_string_literal: true. Can enforce snake_case or kebab-case and capitalization. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent use of parentheses in method calls with arguments. Can require them always or omit them when possible. Docs
Enforces omitting parentheses for method calls without arguments. For example, prefer foo over foo(). More idiomatic. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent use of parentheses in method definitions. Can require them always, never, or only in multi-line methods. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for if/case statements without corresponding else branches and optionally requires them. Helps ensure all branches are handled. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for multiple include/extend statements. Can require grouping multiple mixins or separating them. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for defining module methods. Can prefer module_function, extend_self, or forbid all usage. Docs
Checks for module member existence checks using respond_to? or const_defined? and suggests using predicate methods instead. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for memoization pattern in multi-line conditions. Can use the ||= operator or conditional braces. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for repeated comparisons to the same variable and suggests using Array#include? or Range#cover? instead. More readable and efficient. Docs
Checks for mutable objects assigned to constants (arrays, hashes, strings) which can be inadvertently modified. Suggests freezing them. Docs
Enforces consistent style for negated conditionals. Can require negation at beginning (unless), end (modifier unless), or both. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for double negatives in unless statements. Can require negation at beginning, end, or both. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Checks for unnecessary parentheses in nested method calls and suggests removing them when possible. Improves readability. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces use of next in loops instead of wrapping body in conditionals. Reduces nesting and improves readability. Docs
Enforces checking for nil using predicate methods (nil?) instead of direct comparisons. Improves code readability and follows Ruby conventions. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces checking for non-nil values using positive conditions rather than double negation. Improves code readability and logic clarity. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent use of numbered parameters in blocks (e.g., _1, _2). Improves clarity over implicit positional arguments. Docs
Enforces a maximum number of numbered parameters allowed in a block. Improves readability by limiting complex numbered parameter usage. Docs
Enforces consistent prefixes for numeric literals (e.g., 0o for octal instead of 0). Improves code clarity and prevents confusion. Docs
Enforces use of underscores in large numeric literals for readability (e.g., 1_000_000 instead of 1000000). Improves visual parsing of large numbers. Docs
Enforces using predicate methods (e.g., zero?, positive?) instead of numeric comparisons. Improves code readability and idiomaticity. Docs
Enforces consistent use of then method for chaining or yield_self alternative. Improves code consistency in functional-style chaining. Docs
Checks that each source file defines at most one top-level class or module. Encourages clearer file organization. Docs
Enforces multi-line formatting for complex ternary expressions to improve readability. Reduces cognitive load on single-line conditionals. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Discourages using hash arguments as options when they should be keyword arguments instead. Improves method signature clarity. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Discourages boolean parameters in method definitions as they often indicate methods doing too much. Use separate methods instead. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent use of parentheses around conditions in if/unless statements. Improves code consistency and readability. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent delimiters for percent literals (e.g., %w[a b c] vs %w(a b c)). Improves code consistency. Docs
Enforces consistent case for %q and %Q percent literals. Improves code consistency and readability. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent hash access methods (fetch vs [], dig vs []). Improves consistency and prevents nil-related bugs. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent quoting style for symbols matching string literal conventions. Improves code consistency and readability. Docs
Enforces consistent style for raising exceptions with or without explicit arguments. Improves code consistency. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects arguments that are not needed since they duplicate default values. Removes unnecessary code. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects conditions that are always true or false based on context. Removes redundant logic. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects redundant fetch blocks that don't perform necessary computation. Removes unnecessary code. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects initialize methods that only call super without changes. Removes unnecessary methods. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects unnecessary return statements in methods that implicitly return. Reduces code verbosity. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces consistent style for regexp literals using slashes or %r{}. Improves code consistency. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces explicit StandardError rescue instead of bare rescue. Improves exception handling clarity. Docs
Enforces consistent style for returning nil explicitly vs implicitly. Improves code consistency. Docs
Enforces proper return nil in predicate method definition handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper send with literal method name handling. Improves code quality. Docs
Enforces proper signal exception handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper single line block params handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper single line methods handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper sole nested conditional handling. Improves code quality. Docs
Enforces proper special global vars handling. Improves code quality. Docs
Enforces proper stabby lambda parentheses handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper string concatenation handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper string literals handling. Improves code quality. Docs
Enforces proper string literals in interpolation handling. Improves code quality. Docs
Enforces proper string methods handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces proper ternary parentheses handling. Improves code quality. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces trailing commas in multi-line arguments. Improves diffs. Docs
Enforces trailing commas in multi-line arrays. Improves diffs. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enforces trailing commas in multi-line hashes. Improves diffs. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects trailing underscore in variables. Suggests removing or using properly. Docs
Detects trivial accessor methods that could be replaced. Suggests attr_reader/writer. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects logical operators in unless conditions. Suggests using if instead. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Detects 'yoda conditions' with literal on left side. Suggests normal order. Docs
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
9 nested properties
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Definitions
Enable or disable this cop. When set to false, the cop will not run. Docs
File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.
File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.
Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs
Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs
Configure Rubocop’s autocorrection behavior. Docs
URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.
The RuboCop version in which this cop was added, in the format major.minor.
The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.
Enable or disable all cops in this department. Individual cops can still override this setting.
Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs
Base URL for the documentation. Used to generate documentation links for cops in this department. Docs
File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.