Why is this an issue?

This rule template can be used to create rules which will be triggered when the full content of a comment matches a given regular expression. Note that the regular expression should be expressed using the dotall format (where the . character matches any character).

For example, one can create a rule with the regular expression .*REQUIREMENT.* to match all comment containing "REQUIREMENT". Note that, in order to match REQUIREMENT regardless of the case, the (?i) modifier should be prepended to the expression, as in (?i).*REQUIREMENT.*.

How to fix it

Code examples

Noncompliant code example

With the custom (?i).*REQUIREMENT.* parameter value:

-- Requirement: This line will be flagged because it contains "Requirement"
entity e is
end;