rspec/rules/S124/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

10 lines
431 B
Plaintext

== Why is this an issue?
This rule template can be used to create rules which will be triggered when a comment matches a given regular expression.
For example, one can create a rule with the regular expression ``++.*REVIEW.*++`` to match all comment containing "REVIEW".
Note that, in order to match REVIEW regardless of the case, the ``++(?i)++`` modifier should be prepended to the expression, as in ``++(?i).*REVIEW.*++``.