In the rule "Function naming" there's an exception...
# ktlint
d
In the rule "Function naming" there's an exception for the names of the test methods. The trigger for the exception is the presence of specific imports, e.g.
org.junit
. Unfortunately, this doesn't work when you create a meta-annotation e.g.
@MyParameterizedTest
and you import only this annotation, i.e. no junit. Would it be feasible to scan for the imports transitively?
p
Transitively scanning imports is not possible in ktlint. All linting and formatting decissions are based on the file +
.editorconfig
.
d
I see, makes sense.