We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bacb234 commit 2b77e35Copy full SHA for 2b77e35
rules/token-matching.xml
@@ -16,3 +16,19 @@
16
without special pattern requirements.</summary>
17
</message>
18
</rule>
19
+<rule version="1">
20
+ <pattern>\b[\w_]+ \. tokAt \( 0 \)</pattern>
21
+ <message>
22
+ <id>TokentokAt0</id>
23
+ <severity>error</severity>
24
+ <summary>tok->tokAt(0) is a slow way to say tok.</summary>
25
+ </message>
26
+</rule>
27
28
+ <pattern>\b[\w_]+ \. strAt \( 0 \)</pattern>
29
30
+ <id>TokenstrAt0</id>
31
32
+ <summary>tok->strAt(0) is a slow way to say tok->str()</summary>
33
34
0 commit comments