Skip to content

Commit

Permalink
Improve insert of suppression
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
paul-dingemans committed Feb 11, 2024
1 parent ead8a2c commit 79064c9
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ class KtlintRuleEngineSuppressionKtTest {
assertThat(actual).isEqualTo(formattedCode)
}

//
@Nested
inner class `Consecutive line suppression can not be placed at line` {
@Test
Expand Down

0 comments on commit 79064c9

Please sign in to comment.