Closed Omico closed 6 months ago
PropertyName
is from IntelliJ, you can use ktlint:standard:property-naming
for Ktlint instead.
PropertyName
is from IntelliJ, you can usektlint:standard:property-naming
for Ktlint instead.
Thanks!!! I never know it can do this before.
To clarify above. When @Suppress("PropertyName")
is used, this is respected by Ktlint and treated the same as @Suppress("ktlint:standard:property-naming")
. But when you use @Suppress("PropertyName")
where it is not supposed to be used, then Intellij IDEA complains about it. In such a case you should use the ktlint suppression.
Ktlint can not change the behavior of Intellij IDEA inspection that reports the redundant suppression.
Must add
PropertyName
otherwise will throwktlint version 1.2.1