-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Supressing a error is not working #158
Comments
Ktlint version |
Happens only when project has |
(Hopefully) Fixed in 0.16.0. |
Adding |
@Zayankovsky any chance you can provide an example? I'm unable to reproduce. |
This is my
This class triggers
This class does not trigger
Ktlint version |
Thank you, @Zayankovsky! Fixed. |
You can also use https://pinterest.github.io/ktlint/0.49.1/faq/#how-do-i-suppress-errors-for-a-lineblockfile |
For some reason, I had to use @Suppress("ktlint:max-line-length") so it wouldn't get flagged via command line ktlint. |
Please read docs and suppress "ktlint:standard:max-line-length" |
I am trying to suppress
max-line-length
error, but it is not working.What I've tried so far:
// ktlint-disable max-line-length
in the end of failing line// ktlint-disable
in the end of failing line/* ktlint-disable */
before failing line and/* ktlint-enable */
after failing lineKtlint version
1.15.0
The text was updated successfully, but these errors were encountered: