BlockIdUsage
Warns against the use of block IDs in conditional statements and case statements.
The following examples contain code snippets that either fail or pass this check.
In the following example, block.id
is being used in an if
statement:
This applies to if
, elsif
, and unless
statements.
In the following example, block.id
is being used in a case
statement:
The following example contains the default configuration for this check:
Parameter | Description |
---|---|
enabled |
Whether this check is enabled. |
severity |
The severity of the check. |
Disabling this check
Anchor link to section titled "Disabling this check"Disabling this check isn't recommended.