-
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
Insert of suppression of condition-wrapping
fails
#2462
Milestone
Comments
paul-dingemans
added a commit
that referenced
this issue
Dec 23, 2023
… parameter, or type projection in case it is a binary expression Make creation of the annotation more safe by not using a fake top element in the code which is used to generate the AST. The 'Suppress' annotation has a parameter, which by default is not allowed to be placed inline (it should start on a new line). Just putting it above the binary expression results in it being applied to the first subexpression only instead of on the entire binary expression. Closes #2462
8 tasks
paul-dingemans
added a commit
that referenced
this issue
Dec 26, 2023
… parameter, or type projection in case it is a binary expression (#2463) Make creation of the annotation more safe by not using a fake top element in the code which is used to generate the AST. The 'Suppress' annotation has a parameter, which by default is not allowed to be placed inline (it should start on a new line). Just putting it above the binary expression results in it being applied to the first subexpression only instead of on the entire binary expression. Closes #2462
paul-dingemans
added a commit
to Goooler/ktlint
that referenced
this issue
Jan 2, 2024
… parameter, or type projection in case it is a binary expression (pinterest#2463) Make creation of the annotation more safe by not using a fake top element in the code which is used to generate the AST. The 'Suppress' annotation has a parameter, which by default is not allowed to be placed inline (it should start on a new line). Just putting it above the binary expression results in it being applied to the first subexpression only instead of on the entire binary expression. Closes pinterest#2462
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Given code below:
This code contains violations below:
When suppressing error above with
ktlint-intelli-plugin
this results in exception below:Expected behavior:
The text was updated successfully, but these errors were encountered: