diff --git a/rules/token-matching.xml b/rules/token-matching.xml new file mode 100644 index 000000000..6abcc7cde --- /dev/null +++ b/rules/token-matching.xml @@ -0,0 +1,18 @@ + + + Token :: (?:findm|(?:simple|)M)atch \([^,]+,\s+"\s+ + + TokenMatchSpacing + style + Useless extra spacing for Token::*Match. + + + + Token :: Match \([^,]+,\s+"[^%|!\[\]]+" + + UseTokensimpleMatch + error + Token::simpleMatch should be used to match tokens +without special pattern requirements. + +