UniqueStaticBlockId
Makes sure that all static blocks have a distinct ID defined.
The following examples contain code snippets that either fail or pass this check.
In the following example, there are two static blocks using the same ID:
In the following example, the two static blocks have distinct IDs:
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.