rspec/rules/S124/java/rule.adoc

21 lines
778 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-01-27 13:42:22 +01:00
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).
2020-06-30 10:16:44 +02:00
2021-02-02 15:02:10 +01:00
2021-01-27 13:42:22 +01:00
For example, one can create a rule with the regular expression ``++.*REVIEW.*++`` to match all comment containing "REVIEW".
2020-06-30 10:16:44 +02:00
2021-02-02 15:02:10 +01:00
2021-01-27 13:42:22 +01:00
Note that, in order to match REVIEW regardless of the case, the ``++(?i)++`` modifier should be prepended to the expression, as in ``++(?i).*REVIEW.*++``.
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../parameters.adoc[]
endif::env-github,rspecator-view[]