v0.0.2 - Completeness
With this release we changed the rules
module and it's now called detectors
to better match the official linting names. Besides that:
- We now have a complete DSL covering all the different elements we can read from the
org.jetbrains.uast.visitor.UastVisitor
interface. The DSL is not completely correct so if you make a mistake like writing the following rule:file { file { file { /* ... */ } } }
it won't match anything. We will work on correctness for the next release, making sure you can only build syntactically correct rule trees. - Quantifiers are here! You can now define how many times you want to find a rule to report your issue. The most common use case is when you don't want something to happen
moreThan(1)
times but there are many more:any
(default one),all
,none
,lessThan(n)
,moreThan(n)
,atLeast(n)
andatMost(n)
. - New detectors:
noMoreThanOneGsonInstance
noMoreThanOneDateInstance
noSetOnClickListenerCalls