
org.sonar.l10n.javascript.rules.javascript.CommentRegularExpression.html Maven / Gradle / Ivy
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 ".*TODO.*" to match all comment containing "TODO".
Note that, in order to match TODO regardless of the case, the "(?i)" modifier can be prepended to the expression, as in "(?i).*TODO.*".
© 2015 - 2025 Weber Informatics LLC | Privacy Policy