Is there a ktlint equivalent of the Android `@IntR...
# ktlint
m
Is there a ktlint equivalent of the Android
@IntRange
,
@FloatRange
and
@Size
annotation to validate input parameters ? (https://developer.android.com/studio/write/annotations#value-constraint)
t
not I am aware of. Imho this validation is more in the field of code quality, rather then code style
s
yes, there’s no out of the box support, but you could do it via a custom rule. it seems tricky to implement in a static analyzer, though
👍 1
m
Is the intent to keep ktlint mostly about codestyle or progressively add code quality as well ?
t
personally I would prefer it to be only codestyle. Imho there is no sense to compete with detekt
👍 1