-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding annotation fails #2514
Milestone
Comments
This problem is caused as the targeted location of the suppression is a whitespace. Instead the suppression should be added to a parent location. |
paul-dingemans
added a commit
that referenced
this issue
Feb 11, 2024
Prevent KtlintSuppressionOutOfBoundsException Suppression if offset equals the end the line. Closes #2514 Insert suppression at parent in case the target location of the suppression is a whitespace.
paul-dingemans
added a commit
that referenced
this issue
Feb 11, 2024
Prevent KtlintSuppressionOutOfBoundsException Suppression if offset equals the end the line. Closes #2514 Insert suppression at parent in case the target location of the suppression is a whitespace.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given code below:
then
ktlint-intellij-plugin
(0.20.1) reports errors below:When suppressing any of the ktlint violation on line 3, exception below is thrown:
The text was updated successfully, but these errors were encountered: