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
Type: object

Properties

inherit_gem Record<string, string | string[]>

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_from string | string[]

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

inherit_mode object

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
merge enum[]

Array configuration keys that should be merged with inherited values rather than overriding them

uniqueItems=true
AllCops object

Global configuration that applies to all cops. These settings affect RuboCops overall behavior. Docs

12 nested properties
Exclude string[]

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

uniqueItems=true
Include string[]

File patterns (globs) to include for all cops. Files matching these patterns will be inspected. Overrides the default patterns from RuboCop. Docs

uniqueItems=true
DisabledByDefault boolean

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

EnabledByDefault boolean

When true, all cops are enabled by default, including those that are normally disabled. Cannot be used with DisabledByDefault. Docs

TargetRubyVersion number | enum

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

ParserEngine enum

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

Values: "parser_whitequark" "parser_prism"
StyleGuideBaseURL string

Base URL for the style guide. This is combined with individual cop StyleGuide values to generate complete URLs. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for all cops. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown). Defaults to .html if not specified. Docs

ActiveSupportExtensionsEnabled boolean

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

StringLiteralsFrozenByDefault boolean

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

MaxFilesInCache integer | const: false

Maximum number of files RuboCop stores in its result cache before pruning. Set to false to disable cache pruning entirely. Docs

Bundler
4 nested properties
Enabled boolean

Enable or disable all cops in this department. Individual cops can still override this setting.

StyleGuideBaseURL string

Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for cops in this department. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.

Gemspec
4 nested properties
Enabled boolean

Enable or disable all cops in this department. Individual cops can still override this setting.

StyleGuideBaseURL string

Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for cops in this department. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.

Layout
4 nested properties
Enabled boolean

Enable or disable all cops in this department. Individual cops can still override this setting.

StyleGuideBaseURL string

Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for cops in this department. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.

Lint
4 nested properties
Enabled boolean

Enable or disable all cops in this department. Individual cops can still override this setting.

StyleGuideBaseURL string

Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for cops in this department. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.

Metrics
4 nested properties
Enabled boolean

Enable or disable all cops in this department. Individual cops can still override this setting.

StyleGuideBaseURL string

Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for cops in this department. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.

Migration
4 nested properties
Enabled boolean

Enable or disable all cops in this department. Individual cops can still override this setting.

StyleGuideBaseURL string

Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for cops in this department. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.

Naming
4 nested properties
Enabled boolean

Enable or disable all cops in this department. Individual cops can still override this setting.

StyleGuideBaseURL string

Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for cops in this department. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.

Security
4 nested properties
Enabled boolean

Enable or disable all cops in this department. Individual cops can still override this setting.

StyleGuideBaseURL string

Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for cops in this department. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.

Style
4 nested properties
Enabled boolean

Enable or disable all cops in this department. Individual cops can still override this setting.

StyleGuideBaseURL string

Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for cops in this department. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.

Bundler/DuplicatedGem
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Bundler/DuplicatedGroup
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Bundler/GemComment

Enforces comments above gem declarations for documentation. Improves gem intent clarity. Docs

All of: cop, variant
Bundler/GemFilename

Enforces naming convention for Gemfile. Keeps project structure consistent. Docs

All of: cop, variant
Bundler/GemVersion

Enforces use of version specifiers in gem declarations. Improves dependency management. Docs

All of: cop, variant
Bundler/InsecureProtocolSource

Warns against insecure gem sources (http instead of https). Improves security. Docs

All of: cop, variant
Bundler/OrderedGems

Enforces alphabetical ordering of gems in groups. Improves readability. Docs

All of: cop, variant
Gemspec/AddRuntimeDependency
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Gemspec/AttributeAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Gemspec/DependencyVersion

Enforces explicit version specifications in gem dependencies. Improves clarity. Docs

All of: cop, variant
Gemspec/DeprecatedAttributeAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Gemspec/DevelopmentDependencies

Enforces that development dependencies are in development group. Improves gem organization. Docs

All of: cop, variant
Gemspec/DuplicatedAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Gemspec/OrderedDependencies

Enforces alphabetical ordering of dependencies in gemspec. Improves readability. Docs

All of: cop, variant
Gemspec/RequireMFA
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Gemspec/RequiredRubyVersion
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Gemspec/RubyVersionGlobalsUsage
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/AccessModifierIndentation

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

All of: cop, variant
Layout/ArgumentAlignment

Enforces consistent indentation for method arguments. Improves readability. Docs

All of: cop, variant
Layout/ArrayAlignment

Enforces consistent alignment of array elements. Improves code formatting. Docs

All of: cop, variant
Layout/AssignmentIndentation

Enforces consistent indentation for assignment statements. Improves code clarity. Docs

All of: cop, variant
Layout/BeginEndAlignment

Enforces alignment of begin/end blocks. Improves code readability. Docs

All of: cop, variant
Layout/BlockAlignment

Enforces alignment of block elements. Improves code structure. Docs

All of: cop, variant
Layout/BlockEndNewline
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/CaseIndentation

Enforces consistent indentation in case statements. Improves code clarity. Docs

All of: cop, variant
Layout/ClassStructure

Enforces consistent ordering of class methods and attributes. Improves code organization. Docs

All of: cop, variant
Layout/ClosingHeredocIndentation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/ClosingParenthesisIndentation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/CommentIndentation

Enforces consistent indentation of comments. Improves code readability. Docs

All of: cop, variant
Layout/ConditionPosition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/DefEndAlignment

Enforces alignment of def/end blocks. Improves code structure. Docs

All of: cop, variant
Layout/DotPosition

Enforces consistent position of dot in method chains. Improves code formatting. Docs

All of: cop, variant
Layout/ElseAlignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/EmptyComment

Detects empty comments. Suggests removing unused comments. Docs

All of: cop, variant
Layout/EmptyLineAfterGuardClause
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/EmptyLineAfterMagicComment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/EmptyLinesAfterModuleInclusion
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/EmptyLineAfterMultilineCondition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/EmptyLineBetweenDefs

Enforces blank line between method definitions. Improves code spacing. Docs

All of: cop, variant
Layout/EmptyLines
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/EmptyLinesAroundAccessModifier

Enforces blank lines around access modifiers. Improves code spacing. Docs

All of: cop, variant
Layout/EmptyLinesAroundArguments
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/EmptyLinesAroundAttributeAccessor

Enforces blank lines around attribute accessors. Improves code spacing. Docs

All of: cop, variant
Layout/EmptyLinesAroundBeginBody
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/EmptyLinesAroundBlockBody

Enforces blank lines around block bodies. Improves code spacing. Docs

All of: cop, variant
Layout/EmptyLinesAroundClassBody

Enforces blank lines around class body. Improves code formatting. Docs

All of: cop, variant
Layout/EmptyLinesAroundExceptionHandlingKeywords
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/EmptyLinesAroundMethodBody
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/EmptyLinesAroundModuleBody

Enforces blank lines around module body. Improves code formatting. Docs

All of: cop, variant
Layout/EndAlignment

Enforces consistent alignment of end keyword. Improves code structure. Docs

All of: cop, variant
Layout/EndOfLine

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

All of: cop, variant
Layout/ExtraSpacing

Detects unnecessary extra spacing. Removes visual clutter. Docs

All of: cop, variant
Layout/FirstArgumentIndentation

Enforces indentation of first method argument. Improves code alignment. Docs

All of: cop, variant
Layout/FirstArrayElementIndentation

Enforces indentation of first array element. Improves code alignment. Docs

All of: cop, variant
Layout/FirstArrayElementLineBreak

Enforces line break before first array element. Improves code formatting. Docs

All of: cop, variant
Layout/FirstHashElementIndentation

Enforces indentation of first hash element. Improves code alignment. Docs

All of: cop, variant
Layout/FirstHashElementLineBreak

Enforces line break before first hash element. Improves code formatting. Docs

All of: cop, variant
Layout/FirstMethodArgumentLineBreak

Enforces line break before first method argument. Improves code formatting. Docs

All of: cop, variant
Layout/FirstMethodParameterLineBreak

Enforces line break before first method parameter. Improves code formatting. Docs

All of: cop, variant
Layout/FirstParameterIndentation

Enforces indentation of first parameter. Improves code alignment. Docs

All of: cop, variant
Layout/HashAlignment

Enforces consistent alignment of hash elements. Improves code formatting. Docs

All of: cop, variant
Layout/HeredocArgumentClosingParenthesis
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/HeredocIndentation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/IndentationConsistency

Enforces consistent indentation style. Improves code readability. Docs

All of: cop, variant
Layout/IndentationStyle

Enforces consistent use of either spaces or tabs for indentation. Mixing spaces and tabs can lead to display issues in different editors. Docs

All of: cop, variant
Layout/IndentationWidth

Checks that indentation uses the configured number of spaces. The default is 2 spaces per indentation level, which is the Ruby community standard. Docs

All of: cop, variant
Layout/InitialIndentation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/LeadingCommentSpace

Enforces space after comment hash. Improves comment readability. Docs

All of: cop, variant
Layout/LeadingEmptyLines
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/LineContinuationLeadingSpace

Enforces leading space for line continuations. Improves code formatting. Docs

All of: cop, variant
Layout/LineContinuationSpacing

Enforces spacing around line continuation characters. Improves readability. Docs

All of: cop, variant
Layout/LineEndStringConcatenationIndentation

Enforces indentation for string concatenation at line end. Improves formatting. Docs

All of: cop, variant
Layout/LineLength

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

All of: cop, variant
Layout/MultilineArrayBraceLayout

Enforces consistent bracket placement for multi-line arrays. Improves formatting. Docs

All of: cop, variant
Layout/MultilineArrayLineBreaks

Enforces line breaks in multi-line arrays. Improves code formatting. Docs

All of: cop, variant
Layout/MultilineAssignmentLayout

Enforces consistent formatting for multi-line assignments. Improves readability. Docs

All of: cop, variant
Layout/MultilineBlockLayout
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/MultilineHashBraceLayout

Enforces consistent bracket placement for multi-line hashes. Improves formatting. Docs

All of: cop, variant
Layout/MultilineHashKeyLineBreaks

Enforces line breaks for multi-line hash keys. Improves code formatting. Docs

All of: cop, variant
Layout/MultilineMethodArgumentLineBreaks

Enforces line breaks in multi-line method arguments. Improves readability. Docs

All of: cop, variant
Layout/MultilineMethodCallBraceLayout

Enforces consistent bracket placement for method calls. Improves formatting. Docs

All of: cop, variant
Layout/MultilineMethodCallIndentation

Enforces consistent indentation for method calls. Improves alignment. Docs

All of: cop, variant
Layout/MultilineMethodDefinitionBraceLayout

Enforces bracket placement in method definitions. Improves formatting. Docs

All of: cop, variant
Layout/MultilineMethodParameterLineBreaks

Enforces line breaks in multi-line method parameters. Improves formatting. Docs

All of: cop, variant
Layout/MultilineOperationIndentation

Enforces consistent indentation for multi-line operations. Improves alignment. Docs

All of: cop, variant
Layout/ParameterAlignment

Enforces alignment of method parameters. Improves code formatting. Docs

All of: cop, variant
Layout/RedundantLineBreak

Detects unnecessary line breaks. Removes useless formatting. Docs

All of: cop, variant
Layout/RescueEnsureAlignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SingleLineBlockChain
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceAfterColon
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceAfterComma
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceAfterMethodName
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceAfterNot
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceAfterSemicolon
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceAroundBlockParameters

Enforces spacing around block parameters. Improves code formatting. Docs

All of: cop, variant
Layout/SpaceAroundEqualsInParameterDefault

Enforces spaces around = in default parameters. Improves readability. Docs

All of: cop, variant
Layout/SpaceAroundKeyword
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceAroundMethodCallOperator
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceAroundOperators

Enforces spaces around operators. Improves code formatting. Docs

All of: cop, variant
Layout/SpaceBeforeBlockBraces

Enforces space before opening brace in blocks. Improves formatting. Docs

All of: cop, variant
Layout/SpaceBeforeBrackets
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceBeforeComma
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceBeforeComment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceBeforeFirstArg

Enforces space before first argument. Improves code formatting. Docs

All of: cop, variant
Layout/SpaceBeforeSemicolon
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceInLambdaLiteral

Enforces proper spacing in lambda literals. Improves code formatting. Docs

All of: cop, variant
Layout/SpaceInsideArrayLiteralBrackets

Enforces spacing inside array literal brackets. Improves formatting. Docs

All of: cop, variant
Layout/SpaceInsideArrayPercentLiteral
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceInsideBlockBraces

Enforces spacing inside block braces. Improves code formatting. Docs

All of: cop, variant
Layout/SpaceInsideHashLiteralBraces

Enforces spacing inside hash braces. Improves code formatting. Docs

All of: cop, variant
Layout/SpaceInsideParens

Enforces no space inside parentheses. Improves code formatting. Docs

All of: cop, variant
Layout/SpaceInsidePercentLiteralDelimiters
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceInsideRangeLiteral
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Layout/SpaceInsideReferenceBrackets

Enforces spacing inside reference brackets. Improves code formatting. Docs

All of: cop, variant
Layout/SpaceInsideStringInterpolation

Enforces spacing in string interpolation. Improves code formatting. Docs

All of: cop, variant
Layout/TrailingEmptyLines

Enforces consistent trailing empty lines. Improves file formatting. Docs

All of: cop, variant
Layout/TrailingWhitespace

Detects and removes trailing whitespace. Improves code cleanliness. Docs

All of: cop, variant
Lint/AmbiguousAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/AmbiguousBlockAssociation

Detects ambiguous block associations in method calls. Suggests adding parentheses. Docs

All of: cop, variant
Lint/AmbiguousOperator
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/AmbiguousOperatorPrecedence
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/AmbiguousRange

Detects ambiguous range expressions. Suggests clarification with parentheses. Docs

All of: cop, variant
Lint/AmbiguousRegexpLiteral
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ArrayLiteralInRegexp
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/AssignmentInCondition

Detects assignment in conditions which might be unintended. Suggests using comparison. Docs

All of: cop, variant
Lint/BigDecimalNew
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/BinaryOperatorWithIdenticalOperands
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/BooleanSymbol
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/CircularArgumentReference
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ConstantDefinitionInBlock

Detects constant definitions inside blocks. Suggests defining at class/module level. Docs

All of: cop, variant
Lint/ConstantOverwrittenInRescue
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ConstantReassignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ConstantResolution

Detects issues with constant resolution. Suggests proper scope. Docs

All of: cop, variant
Lint/CopDirectiveSyntax
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DataDefineOverride
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/Debugger

Checks for leftover debugging code like binding.pry, byebug, or debugger statements. These should typically be removed before committing code. Docs

All of: cop, variant
Lint/DeprecatedClassMethods
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DeprecatedConstants

Detects use of deprecated deprecated constants. Suggests using modern alternatives. Docs

All of: cop, variant
Lint/DeprecatedOpenSSLConstant
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DisjunctiveAssignmentInConstructor
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DuplicateBranch

Detects duplicate duplicate branch in code. Helps keep code DRY. Docs

All of: cop, variant
Lint/DuplicateCaseCondition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DuplicateElsifCondition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DuplicateHashKey
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DuplicateMagicComment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DuplicateMatchPattern
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DuplicateMethods
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DuplicateRegexpCharacterClassElement
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DuplicateRequire
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DuplicateRescueException
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/DuplicateSetElement
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/EachWithObjectArgument
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ElseLayout
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/EmptyBlock

Detects empty empty block. Suggests removing or implementing properly. Docs

All of: cop, variant
Lint/EmptyClass

Detects empty empty class. Suggests removing or implementing properly. Docs

All of: cop, variant
Lint/EmptyConditionalBody

Detects empty empty conditional body. Suggests removing or implementing properly. Docs

All of: cop, variant
Lint/EmptyEnsure
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/EmptyExpression
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/EmptyFile

Detects empty empty file. Suggests removing or implementing properly. Docs

All of: cop, variant
Lint/EmptyInPattern

Detects empty empty in pattern. Suggests removing or implementing properly. Docs

All of: cop, variant
Lint/EmptyInterpolation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/EmptyWhen

Detects empty empty when. Suggests removing or implementing properly. Docs

All of: cop, variant
Lint/EnsureReturn
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ErbNewArguments
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/FlipFlop
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/FloatComparison
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/FloatOutOfRange
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/FormatParameterMismatch
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/HashCompareByIdentity
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/HashNewWithKeywordArgumentsAsDefault
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/HeredocMethodCallPosition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/IdentityComparison
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ImplicitStringConcatenation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/IncompatibleIoSelectWithFiberScheduler
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/IneffectiveAccessModifier
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/InheritException

Enforces proper inherit exception handling. Improves code quality. Docs

All of: cop, variant
Lint/InterpolationCheck
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ItWithoutArgumentsInBlock
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/LambdaWithoutLiteralBlock
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/LiteralAsCondition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/LiteralAssignmentInCondition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/LiteralInInterpolation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/Loop
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/MissingCopEnableDirective

Detects cop disable without corresponding enable. Prevents permanently disabled cops. Docs

All of: cop, variant
Lint/MissingSuper

Detects missing missing super. Ensures required elements are present. Docs

All of: cop, variant
Lint/MixedCaseRange
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/MixedRegexpCaptureTypes
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/MultipleComparison
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/NestedMethodDefinition

Enforces proper nested method definition handling. Improves code quality. Docs

All of: cop, variant
Lint/NestedPercentLiteral
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/NextWithoutAccumulator
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/NoReturnInBeginEndBlocks
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/NonAtomicFileOperation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/NonDeterministicRequireOrder
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/NonLocalExitFromIterator
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/NumberConversion

Detects implicit string-to-number conversions. Prevents unexpected behavior. Docs

All of: cop, variant
Lint/NumberedParameterAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/NumericOperationWithConstantResult
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/OrAssignmentToConstant
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/OrderedMagicComments
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/OutOfRangeRegexpRef
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ParenthesesAsGroupedExpression
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/PercentStringArray
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/PercentSymbolArray
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RaiseException

Enforces proper raise exception handling. Improves code quality. Docs

All of: cop, variant
Lint/RandOne
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RedundantCopDisableDirective
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RedundantCopEnableDirective
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RedundantDirGlobSort
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RedundantRegexpQuantifiers
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RedundantRequireStatement
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RedundantSafeNavigation

Detects redundant redundant safe navigation. Removes duplicate code. Docs

All of: cop, variant
Lint/RedundantSplatExpansion

Detects redundant redundant splat expansion. Removes duplicate code. Docs

All of: cop, variant
Lint/RedundantStringCoercion
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RedundantTypeConversion
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RedundantWithIndex
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RedundantWithObject
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RefinementImportMethods
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RegexpAsCondition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RequireParentheses
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RequireRangeParentheses
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RequireRelativeSelfPath
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RescueException
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/RescueType
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ReturnInVoidContext
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/SafeNavigationChain

Detects chains of safe navigation that can be simplified. Improves clarity. Docs

All of: cop, variant
Lint/SafeNavigationConsistency

Enforces proper safe navigation consistency handling. Improves code quality. Docs

All of: cop, variant
Lint/SafeNavigationWithEmpty
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ScriptPermission
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/SelfAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/SendWithMixinArgument
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ShadowedArgument

Detects shadowing of method arguments in blocks. Prevents confusion. Docs

All of: cop, variant
Lint/ShadowedException
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ShadowingOuterLocalVariable
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/SharedMutableDefault
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/StructNewOverride
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/SuppressedException

Detects rescue clauses that suppress exceptions silently. Improves error visibility. Docs

All of: cop, variant
Lint/SuppressedExceptionInNumberConversion
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/SymbolConversion

Detects unnecessary symbol conversions. Simplifies code. Docs

All of: cop, variant
Lint/Syntax
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ToEnumArguments
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/ToJSON
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/TopLevelReturnWithArgument
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/TrailingCommaInAttributeDeclaration
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/TripleQuotes
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UnderscorePrefixedVariableName

Detects underscore-prefixed unused variables. Suggests removing or using. Docs

All of: cop, variant
Lint/UnescapedBracketInRegexp
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UnexpectedBlockArity

Enforces proper unexpected block arity handling. Improves code quality. Docs

All of: cop, variant
Lint/UnifiedInteger
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UnmodifiedReduceAccumulator
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UnreachableCode
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UnreachableLoop

Detects loops that never execute. Removes dead code. Docs

All of: cop, variant
Lint/UnreachablePatternBranch
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UnusedBlockArgument

Detects unused block parameters. Suggests using _ prefix. Docs

All of: cop, variant
Lint/UnusedMethodArgument

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

All of: cop, variant
Lint/UriEscapeUnescape
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UriRegexp
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessAccessModifier

Detects access modifiers with no effect. Removes unnecessary code. Docs

All of: cop, variant
Lint/UselessAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessConstantScoping
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessDefaultValueArgument

Detects useless useless default value argument. Removes unnecessary code. Docs

All of: cop, variant
Lint/UselessDefined
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessElseWithoutRescue
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessMethodDefinition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessNumericOperation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessOr
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessRescue
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessRuby2Keywords
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessSetterCall
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/UselessTimes
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Lint/Void

Enforces proper void handling. Improves code quality. Docs

All of: cop, variant
Metrics/AbcSize

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

All of: cop, variant
Metrics/BlockLength

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

All of: cop, variant
Metrics/BlockNesting

Enforces maximum nesting depth in blocks. Prevents deeply nested code. Docs

All of: cop, variant
Metrics/ClassLength

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

All of: cop, variant
Metrics/CollectionLiteralLength

Enforces maximum collection literal length. Prevents overly long literals. Docs

All of: cop, variant
Metrics/CyclomaticComplexity

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

All of: cop, variant
Metrics/MethodLength

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

All of: cop, variant
Metrics/ModuleLength

Enforces maximum module length. Encourages splitting into multiple modules. Docs

All of: cop, variant
Metrics/ParameterLists

Enforces maximum number of parameters. Suggests using options hash or struct. Docs

All of: cop, variant
Metrics/PerceivedComplexity

Enforces limit on perceived complexity. Prevents confusing logic. Docs

All of: cop, variant
Migration/DepartmentName
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Naming/AccessorMethodName
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Naming/AsciiIdentifiers

Enforces ASCII-only identifiers. Improves code compatibility. Docs

All of: cop, variant
Naming/BinaryOperatorParameterName
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Naming/BlockForwarding

Enforces consistent block forwarding syntax. Improves code clarity. Docs

All of: cop, variant
Naming/BlockParameterName

Enforces proper naming for block parameters. Improves code consistency. Docs

All of: cop, variant
Naming/ClassAndModuleCamelCase

Enforces CamelCase for classes and modules. Follows Ruby conventions. Docs

All of: cop, variant
Naming/ConstantName
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Naming/FileName

Enforces filename matches class/module name. Improves project organization. Docs

All of: cop, variant
Naming/HeredocDelimiterCase

Enforces consistent heredoc delimiter casing. Improves code consistency. Docs

All of: cop, variant
Naming/HeredocDelimiterNaming

Enforces proper naming for heredoc delimiters. Improves clarity. Docs

All of: cop, variant
Naming/InclusiveLanguage

Encourages inclusive terminology in code. Promotes inclusive practices. Docs

All of: cop, variant
Naming/MemoizedInstanceVariableName

Enforces proper naming for memoized variables. Improves clarity. Docs

All of: cop, variant
Naming/MethodName

Enforces snake_case for method names. Follows Ruby conventions. Docs

All of: cop, variant
Naming/MethodParameterName

Enforces proper naming for method parameters. Improves code consistency. Docs

All of: cop, variant
Naming/PredicateMethod

Enforces proper predicate method handling. Improves code quality. Docs

All of: cop, variant
Naming/PredicatePrefix

Enforces proper predicate prefix handling. Improves code quality. Docs

All of: cop, variant
Naming/RescuedExceptionsVariableName

Enforces proper naming for rescue variables. Improves clarity. Docs

All of: cop, variant
Naming/VariableName

Enforces snake_case for variables. Follows Ruby conventions. Docs

All of: cop, variant
Naming/VariableNumber

Enforces proper numbering for variables. Improves consistency. Docs

All of: cop, variant
Security/CompoundHash
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Security/Eval
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Security/IoMethods
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Security/JSONLoad
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Security/MarshalLoad
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Security/YAMLLoad
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/AccessModifierDeclarations

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

All of: cop, variant
Style/AccessorGrouping

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

All of: cop, variant
Style/Alias

Enforces consistent use of alias vs alias_method. The alias keyword is faster but has different scoping rules than alias_method. Docs

All of: cop, variant
Style/AmbiguousEndlessMethodDefinition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/AndOr

Checks for uses of and/or and suggests using &&/|| instead. The keywords have different precedence which can lead to subtle bugs. Docs

All of: cop, variant
Style/ArgumentsForwarding

Enforces use of Ruby 2.7+ argument forwarding syntax (...) when all arguments are forwarded to another method. Improves readability and performance. Docs

All of: cop, variant
Style/ArrayCoercion
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ArrayFirstLast
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ArrayIntersect
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ArrayIntersectWithSingleElement
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ArrayJoin
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/AsciiComments

Checks for non-ASCII characters in comments. Useful for projects that require ASCII-only source code for compatibility reasons. Docs

All of: cop, variant
Style/Attr
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/AutoResourceCleanup
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/BarePercentLiterals

Enforces consistent style for bare percent literals. Choose between %q (explicit) or % (bare) for string literals. Docs

All of: cop, variant
Style/BeginBlock
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/BisectedAttrAccessor
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/BitwisePredicate
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/BlockComments
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/BlockDelimiters

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

All of: cop, variant
Style/CaseEquality

Checks for explicit use of the case equality operator (===). Usually you should use case/when statements instead for better readability. Docs

All of: cop, variant
Style/CaseLikeIf

Checks for if/elsif chains that compare the same variable and suggests using a case/when statement instead. More readable and maintainable. Docs

All of: cop, variant
Style/CharacterLiteral
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ClassAndModuleChildren

Enforces consistent style for nested class/module definitions. Choose between compact (class Foo::Bar) or nested (class Foo; class Bar) style. Docs

All of: cop, variant
Style/ClassCheck

Enforces consistent use of is_a? vs kind_of? for class type checking. Both methods are functionally identical. Docs

All of: cop, variant
Style/ClassEqualityComparison

Checks for class equality comparisons using == and suggests using is_a?, kind_of?, or instance_of? instead. More idiomatic and handles inheritance better. Docs

All of: cop, variant
Style/ClassMethods
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ClassMethodsDefinitions

Enforces consistent style for defining class methods. Choose between def self.method or class << self style. Docs

All of: cop, variant
Style/ClassVars
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/CollectionCompact

Enforces use of compact instead of reject(&:nil?) or select { |e| !e.nil? } for removing nil values from collections. More concise and idiomatic. Docs

All of: cop, variant
Style/CollectionMethods

Enforces use of preferred collection method names. For example, prefer map over collect, or find over detect. Improves consistency. Docs

All of: cop, variant
Style/CollectionQuerying
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ColonMethodCall
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ColonMethodDefinition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/CombinableDefined
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/CombinableLoops
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/CommandLiteral

Enforces consistent style for command literals (shell commands). Choose between backticks or %x() syntax. Backticks are more common. Docs

All of: cop, variant
Style/CommentAnnotation

Enforces consistent formatting for comment annotations like TODO, FIXME, OPTIMIZE, etc. Ensures they follow a standard format with colons. Docs

All of: cop, variant
Style/CommentedKeyword
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ComparableBetween
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ComparableClamp
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ConcatArrayLiterals
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ConditionalAssignment

Enforces consistent style for conditional variable assignment. Choose between assigning to the condition result or assigning inside each branch. Docs

All of: cop, variant
Style/ConstantVisibility

Enforces explicit visibility declarations (private_constant, public_constant) for constants. Helps document and enforce which constants are part of the public API. Docs

All of: cop, variant
Style/Copyright

Checks that source files include a copyright notice matching a specified pattern. Useful for ensuring license compliance. Docs

All of: cop, variant
Style/DataInheritance
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/DateTime

Checks for uses of DateTime class and suggests using Time or Date instead. DateTime is rarely needed and has worse performance than Time. Docs

All of: cop, variant
Style/DefWithParentheses
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/DigChain
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/Dir
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/DirEmpty
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/DisableCopsWithinSourceCodeDirective

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

All of: cop, variant
Style/DocumentDynamicEvalDefinition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/Documentation

Checks for missing top-level documentation on classes and modules. Enforces that public classes/modules have explanatory comments. Improves maintainability. Docs

All of: cop, variant
Style/DocumentationMethod

Checks for missing method documentation. Can require comments on all public methods or even private methods. Useful for library code and APIs. Docs

All of: cop, variant
Style/DoubleCopDisableDirective
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/DoubleNegation

Checks for double negation (!!) and suggests using explicit conversion methods or truthiness. Can allow double negation in return statements for boolean conversion. Docs

All of: cop, variant
Style/EachForSimpleLoop
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EachWithObject
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EmptyBlockParameter
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EmptyCaseCondition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EmptyClassDefinition

Enforces consistent style for empty class definitions. Choose between standard class definition or using Class.new. Docs

All of: cop, variant
Style/EmptyElse

Checks for empty else branches in conditionals. Can warn about or remove empty else blocks, or require explicit nil. Improves code clarity. Docs

All of: cop, variant
Style/EmptyHeredoc
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EmptyLambdaParameter
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EmptyLiteral
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EmptyMethod

Enforces consistent style for empty methods. Choose between compact (single line) or expanded (multi-line) format. Docs

All of: cop, variant
Style/EmptyStringInsideInterpolation

Checks for empty strings inside string interpolation (#{""}) and suggests removing them. Unnecessary interpolation should be cleaned up. Docs

All of: cop, variant
Style/Encoding
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EndBlock
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EndlessMethod

Enforces or forbids use of Ruby 3.0+ endless method definitions (def foo = bar). Can require, allow, or disallow this syntax. Docs

All of: cop, variant
Style/EnvHome
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EvalWithLocation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/EvenOdd
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ExactRegexpMatch
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ExpandPathArguments
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ExplicitBlockArgument
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ExponentialNotation

Enforces consistent style for exponential notation in numbers. Choose between scientific, engineering, or integral format. Docs

All of: cop, variant
Style/FetchEnvVar

Enforces use of ENV.fetch instead of ENV[] for accessing environment variables. fetch makes missing variables explicit and allows default values. Docs

All of: cop, variant
Style/FileEmpty
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/FileNull
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/FileOpen
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/FileRead
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/FileTouch
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/FileWrite
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/FloatDivision

Enforces consistent style for float division to avoid integer division bugs. Can enforce converting one operand to float or using fdiv. Docs

All of: cop, variant
Style/For

Checks for for loops and suggests using each instead. The for keyword is rarely used in Ruby and each is more idiomatic. Docs

All of: cop, variant
Style/FormatString

Enforces consistent use of string formatting methods. Choose between format/sprintf or string interpolation with % operator. Docs

All of: cop, variant
Style/FormatStringToken

Enforces consistent style for format string tokens. Can require named placeholders (%{name}), templates (%<name>s), or allow unannotated (%s). Docs

All of: cop, variant
Style/FrozenStringLiteralComment

Enforces presence of # frozen_string_literal: true magic comment at the top of files. Helps improve performance by freezing string literals. Docs

All of: cop, variant
Style/GlobalStdStream
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/GlobalVars

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

All of: cop, variant
Style/GuardClause

Enforces use of guard clauses (early returns) instead of wrapping method body in conditionals. Reduces nesting and improves readability. Docs

All of: cop, variant
Style/HashAsLastArrayItem

Enforces consistent style for hashes as the last element in arrays. Can require or forbid braces around hash literals. Docs

All of: cop, variant
Style/HashConversion

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

All of: cop, variant
Style/HashEachMethods

Enforces use of each_key and each_value instead of each when only using keys or values. More explicit and efficient. Docs

All of: cop, variant
Style/HashExcept
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/HashFetchChain
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/HashLikeCase

Checks for case statements that behave like hash lookups and suggests using an actual hash. More efficient for many branches. Docs

All of: cop, variant
Style/HashLookupMethod

Enforces consistent hash lookup style. Can prefer [] brackets or fetch for accessing hash values. fetch makes missing keys explicit. Docs

All of: cop, variant
Style/HashSlice
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/HashSyntax

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

All of: cop, variant
Style/HashTransformKeys
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/HashTransformValues
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/IdenticalConditionalBranches
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/IfInsideElse

Checks for if statements nested inside else blocks and suggests using elsif instead. Reduces nesting and improves readability. Docs

All of: cop, variant
Style/IfUnlessModifier
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/IfUnlessModifierOfIfUnless
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/IfWithBooleanLiteralBranches

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

All of: cop, variant
Style/IfWithSemicolon
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ImplicitRuntimeError
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/InPatternThen
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/InfiniteLoop
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/InlineComment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/InverseMethods

Checks for code that could be simplified using inverse methods. For example, !x.include?(y) should be x.exclude?(y). More readable. Docs

All of: cop, variant
Style/InvertibleUnlessCondition

Checks for unless conditions that could be inverted to use if instead. Helps maintain consistent conditional style throughout codebase. Docs

All of: cop, variant
Style/IpAddresses

Checks for hardcoded IP addresses in code and suggests extracting to constants or environment variables. Improves maintainability and security. Docs

All of: cop, variant
Style/ItAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ItBlockParameter

Enforces or forbids use of the numbered parameter it in single-parameter blocks (Ruby 2.7+). Can require explicit parameters for clarity. Docs

All of: cop, variant
Style/KeywordArgumentsMerging
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/KeywordParametersOrder
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/Lambda

Enforces consistent style for lambda definitions. Can require lambda keyword, literal syntax ->, or decide based on line count. Docs

All of: cop, variant
Style/LambdaCall

Enforces consistent style for calling lambdas. Can require call method or allow the [] syntax. The call method is more explicit. Docs

All of: cop, variant
Style/LineEndConcatenation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MagicCommentFormat

Enforces consistent formatting for magic comments like # frozen_string_literal: true. Can enforce snake_case or kebab-case and capitalization. Docs

All of: cop, variant
Style/MapCompactWithConditionalBlock
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MapIntoArray
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MapJoin
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MapToHash
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MapToSet
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MethodCallWithArgsParentheses

Enforces consistent use of parentheses in method calls with arguments. Can require them always or omit them when possible. Docs

All of: cop, variant
Style/MethodCallWithoutArgsParentheses

Enforces omitting parentheses for method calls without arguments. For example, prefer foo over foo(). More idiomatic. Docs

All of: cop, variant
Style/MethodCalledOnDoEndBlock
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MethodDefParentheses

Enforces consistent use of parentheses in method definitions. Can require them always, never, or only in multi-line methods. Docs

All of: cop, variant
Style/MinMax
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MinMaxComparison
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MissingElse

Checks for if/case statements without corresponding else branches and optionally requires them. Helps ensure all branches are handled. Docs

All of: cop, variant
Style/MissingRespondToMissing
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MixinGrouping

Enforces consistent style for multiple include/extend statements. Can require grouping multiple mixins or separating them. Docs

All of: cop, variant
Style/MixinUsage
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ModuleFunction

Enforces consistent style for defining module methods. Can prefer module_function, extend_self, or forbid all usage. Docs

All of: cop, variant
Style/ModuleMemberExistenceCheck

Checks for module member existence checks using respond_to? or const_defined? and suggests using predicate methods instead. Docs

All of: cop, variant
Style/MultilineBlockChain
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MultilineIfModifier
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MultilineIfThen
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MultilineInPatternThen
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MultilineMemoization

Enforces consistent style for memoization pattern in multi-line conditions. Can use the ||= operator or conditional braces. Docs

All of: cop, variant
Style/MultilineMethodSignature
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MultilineTernaryOperator
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MultilineWhenThen
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/MultipleComparison

Checks for repeated comparisons to the same variable and suggests using Array#include? or Range#cover? instead. More readable and efficient. Docs

All of: cop, variant
Style/MutableConstant

Checks for mutable objects assigned to constants (arrays, hashes, strings) which can be inadvertently modified. Suggests freezing them. Docs

All of: cop, variant
Style/NegatedIf

Enforces consistent style for negated conditionals. Can require negation at beginning (unless), end (modifier unless), or both. Docs

All of: cop, variant
Style/NegatedIfElseCondition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/NegatedUnless

Enforces consistent style for double negatives in unless statements. Can require negation at beginning, end, or both. Docs

All of: cop, variant
Style/NegatedWhile
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/NegativeArrayIndex
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/NestedFileDirname
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/NestedModifier
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/NestedParenthesizedCalls

Checks for unnecessary parentheses in nested method calls and suggests removing them when possible. Improves readability. Docs

All of: cop, variant
Style/NestedTernaryOperator
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/Next

Enforces use of next in loops instead of wrapping body in conditionals. Reduces nesting and improves readability. Docs

All of: cop, variant
Style/NilComparison

Enforces checking for nil using predicate methods (nil?) instead of direct comparisons. Improves code readability and follows Ruby conventions. Docs

All of: cop, variant
Style/NilLambda
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/NonNilCheck

Enforces checking for non-nil values using positive conditions rather than double negation. Improves code readability and logic clarity. Docs

All of: cop, variant
Style/Not
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/NumberedParameters

Enforces consistent use of numbered parameters in blocks (e.g., _1, _2). Improves clarity over implicit positional arguments. Docs

All of: cop, variant
Style/NumberedParametersLimit

Enforces a maximum number of numbered parameters allowed in a block. Improves readability by limiting complex numbered parameter usage. Docs

All of: cop, variant
Style/NumericLiteralPrefix

Enforces consistent prefixes for numeric literals (e.g., 0o for octal instead of 0). Improves code clarity and prevents confusion. Docs

All of: cop, variant
Style/NumericLiterals

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

All of: cop, variant
Style/NumericPredicate

Enforces using predicate methods (e.g., zero?, positive?) instead of numeric comparisons. Improves code readability and idiomaticity. Docs

All of: cop, variant
Style/ObjectThen

Enforces consistent use of then method for chaining or yield_self alternative. Improves code consistency in functional-style chaining. Docs

All of: cop, variant
Style/OneClassPerFile

Checks that each source file defines at most one top-level class or module. Encourages clearer file organization. Docs

All of: cop, variant
Style/OneLineConditional

Enforces multi-line formatting for complex ternary expressions to improve readability. Reduces cognitive load on single-line conditionals. Docs

All of: cop, variant
Style/OpenStructUse
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/OperatorMethodCall
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/OptionHash

Discourages using hash arguments as options when they should be keyword arguments instead. Improves method signature clarity. Docs

All of: cop, variant
Style/OptionalArguments
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/OptionalBooleanParameter

Discourages boolean parameters in method definitions as they often indicate methods doing too much. Use separate methods instead. Docs

All of: cop, variant
Style/OrAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ParallelAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ParenthesesAroundCondition

Enforces consistent use of parentheses around conditions in if/unless statements. Improves code consistency and readability. Docs

All of: cop, variant
Style/PartitionInsteadOfDoubleSelect
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/PercentLiteralDelimiters

Enforces consistent delimiters for percent literals (e.g., %w[a b c] vs %w(a b c)). Improves code consistency. Docs

All of: cop, variant
Style/PercentQLiterals

Enforces consistent case for %q and %Q percent literals. Improves code consistency and readability. Docs

All of: cop, variant
Style/PerlBackrefs
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/PredicateWithKind
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/PreferredHashMethods

Enforces consistent hash access methods (fetch vs [], dig vs []). Improves consistency and prevents nil-related bugs. Docs

All of: cop, variant
Style/Proc
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/QuotedSymbols

Enforces consistent quoting style for symbols matching string literal conventions. Improves code consistency and readability. Docs

All of: cop, variant
Style/RaiseArgs

Enforces consistent style for raising exceptions with or without explicit arguments. Improves code consistency. Docs

All of: cop, variant
Style/RandomWithOffset
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ReduceToHash
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantArgument

Detects arguments that are not needed since they duplicate default values. Removes unnecessary code. Docs

All of: cop, variant
Style/RedundantArrayConstructor
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantArrayFlatten
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantBegin
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantCapitalW
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantCondition

Detects conditions that are always true or false based on context. Removes redundant logic. Docs

All of: cop, variant
Style/RedundantConditional
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantConstantBase
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantCurrentDirectoryInPath
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantDoubleSplatHashBraces
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantEach
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantException
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantFetchBlock

Detects redundant fetch blocks that don't perform necessary computation. Removes unnecessary code. Docs

All of: cop, variant
Style/RedundantFileExtensionInRequire
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantFilterChain
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantFormat
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantFreeze
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantHeredocDelimiterQuotes
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantInitialize

Detects initialize methods that only call super without changes. Removes unnecessary methods. Docs

All of: cop, variant
Style/RedundantInterpolation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantInterpolationUnfreeze
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantLineContinuation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantMinMaxBy
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantParentheses
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantPercentQ
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantRegexpArgument
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantRegexpCharacterClass
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantRegexpConstructor
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantRegexpEscape
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantReturn

Detects unnecessary return statements in methods that implicitly return. Reduces code verbosity. Docs

All of: cop, variant
Style/RedundantSelf
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantSelfAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantSelfAssignmentBranch
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantSort
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantSortBy
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantStringEscape
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RedundantStructKeywordInit
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RegexpLiteral

Enforces consistent style for regexp literals using slashes or %r{}. Improves code consistency. Docs

All of: cop, variant
Style/RequireOrder
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RescueModifier
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/RescueStandardError

Enforces explicit StandardError rescue instead of bare rescue. Improves exception handling clarity. Docs

All of: cop, variant
Style/ReturnNil

Enforces consistent style for returning nil explicitly vs implicitly. Improves code consistency. Docs

All of: cop, variant
Style/ReturnNilInPredicateMethodDefinition

Enforces proper return nil in predicate method definition handling. Improves code quality. Docs

All of: cop, variant
Style/ReverseFind
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SafeNavigation

Enforces proper safe navigation handling. Improves code quality. Docs

All of: cop, variant
Style/SafeNavigationChainLength

Enforces proper safe navigation chain length handling. Improves code quality. Docs

All of: cop, variant
Style/Sample
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SelectByKind
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SelectByRange
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SelectByRegexp
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SelfAssignment
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/Semicolon

Enforces proper semicolon handling. Improves code quality. Docs

All of: cop, variant
Style/Send
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SendWithLiteralMethodName

Enforces proper send with literal method name handling. Improves code quality. Docs

All of: cop, variant
Style/SignalException

Enforces proper signal exception handling. Improves code quality. Docs

All of: cop, variant
Style/SingleArgumentDig
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SingleLineBlockParams

Enforces proper single line block params handling. Improves code quality. Docs

All of: cop, variant
Style/SingleLineDoEndBlock
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SingleLineMethods

Enforces proper single line methods handling. Improves code quality. Docs

All of: cop, variant
Style/SlicingWithRange
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SoleNestedConditional

Enforces proper sole nested conditional handling. Improves code quality. Docs

All of: cop, variant
Style/SpecialGlobalVars

Enforces proper special global vars handling. Improves code quality. Docs

All of: cop, variant
Style/StabbyLambdaParentheses

Enforces proper stabby lambda parentheses handling. Improves code quality. Docs

All of: cop, variant
Style/StaticClass
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/StderrPuts
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/StringChars
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/StringConcatenation

Enforces proper string concatenation handling. Improves code quality. Docs

All of: cop, variant
Style/StringHashKeys
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/StringLiterals

Enforces proper string literals handling. Improves code quality. Docs

All of: cop, variant
Style/StringLiteralsInInterpolation

Enforces proper string literals in interpolation handling. Improves code quality. Docs

All of: cop, variant
Style/StringMethods

Enforces proper string methods handling. Improves code quality. Docs

All of: cop, variant
Style/Strip
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/StructInheritance
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SuperArguments
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SuperWithArgsParentheses
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SwapValues
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SymbolArray

Enforces proper symbol array handling. Improves code quality. Docs

All of: cop, variant
Style/SymbolLiteral
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/SymbolProc

Enforces proper symbol proc handling. Improves code quality. Docs

All of: cop, variant
Style/TallyMethod
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/TernaryParentheses

Enforces proper ternary parentheses handling. Improves code quality. Docs

All of: cop, variant
Style/TopLevelMethodDefinition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/TrailingBodyOnClass
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/TrailingBodyOnMethodDefinition
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/TrailingBodyOnModule
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/TrailingCommaInArguments

Enforces trailing commas in multi-line arguments. Improves diffs. Docs

All of: cop, variant
Style/TrailingCommaInArrayLiteral

Enforces trailing commas in multi-line arrays. Improves diffs. Docs

All of: cop, variant
Style/TrailingCommaInBlockArgs
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/TrailingCommaInHashLiteral

Enforces trailing commas in multi-line hashes. Improves diffs. Docs

All of: cop, variant
Style/TrailingMethodEndStatement
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/TrailingUnderscoreVariable

Detects trailing underscore in variables. Suggests removing or using properly. Docs

All of: cop, variant
Style/TrivialAccessors

Detects trivial accessor methods that could be replaced. Suggests attr_reader/writer. Docs

All of: cop, variant
Style/UnlessElse
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/UnlessLogicalOperators

Detects logical operators in unless conditions. Suggests using if instead. Docs

All of: cop, variant
Style/UnpackFirst
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/VariableInterpolation
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/WhenThen
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/WhileUntilDo
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/WhileUntilModifier
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/WordArray

Enforces %w usage for word arrays. Improves code conciseness. Docs

All of: cop, variant
Style/YAMLFileRead
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/YodaCondition

Detects 'yoda conditions' with literal on left side. Suggests normal order. Docs

All of: cop, variant
Style/YodaExpression
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
Style/ZeroLengthPredicate
9 nested properties
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$

Definitions

cop
Enabled boolean

Enable or disable this cop. When set to false, the cop will not run. Docs

Include string[]

File patterns (globs) to include for this cop. Files matching these patterns will be checked even if they would otherwise be excluded.

uniqueItems=true
Exclude string[]

File patterns (globs) to exclude from this cop. Files matching these patterns will not be checked.

uniqueItems=true
Severity enum

Severity level for offenses detected by this cop. Cops with info severity will not cause RuboCop to return a non-zero exit code. Docs

Values: "info" "refactor" "convention" "warning" "error" "fatal"
Details string

Additional details about this cop that will be shown when RuboCop is run with the --extra-details flag or when ExtraDetails is set to true in your global configuration. Docs

AutoCorrect boolean | enum

Configure Rubocop’s autocorrection behavior. Docs

StyleGuide string

URL fragment (hash) pointing to the style guide entry for this cop. Combined with StyleGuideBaseURL to form the complete URL.

VersionAdded string

The RuboCop version in which this cop was added, in the format major.minor.

pattern=^\d+\.\d+$
VersionChanged string

The latest RuboCop version in which this cop was changed in a user-impacting way (new config, updated defaults, etc), in the format major.minor.

pattern=^\d+\.\d+$
department
Enabled boolean

Enable or disable all cops in this department. Individual cops can still override this setting.

StyleGuideBaseURL string

Base URL for the style guide. Combined with each cops StyleGuide value to form complete style guide URLs for this department. Docs

format=uri
DocumentationBaseURL string

Base URL for the documentation. Used to generate documentation links for cops in this department. Docs

format=uri
DocumentationExtension string | enum

File extension for documentation files (e.g., .md for Markdown, .html for HTML). Defaults to .html if not specified.

constant string
constants constant[]
hashAlignmentEnforcedColonStyleEnum enum
hashAlignmentEnforcedHashRocketStyleEnum enum