We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb9e74 commit 6424e10Copy full SHA for 6424e10
README.md
@@ -119,4 +119,17 @@ fun noMoreThanOneGsonInstance() = detector(
119
file { callExpression(moreThan(1)) { suchThat { it.isGsonConstructor } } }
120
)
121
122
+```
123
+
124
+The list of available quantifiers is:
125
126
+```kotlin
127
+val any // The default quantifier, if a rule matches any number of times then it's reported
128
+val all // It should appear in every single appearance of the node
129
+fun times(times: Int) // Match the rule an exact number of "times"
130
+fun atMost(times: Int) // matches <= "times"
131
+fun atLeast(times: Int) // matches >= "times"
132
+fun lessThan(times: Int) // matches < "times"
133
+fun moreThan(times: Int) // matches > "times"
134
+val none // No matches
135
```
0 commit comments