You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the code mentioned in Behavior, and run ktlint -F
Your Environment
Version of ktlint used: 0.47
No .editorconfig
Version of Gradle used (if applicable): No
Operating System and version: MacOS 12.5
Possible reasons
ktlint's rules use startOffset for determining whether to disable, but PsiWhiteSpace's startOffset is on the previous line when it contains \n, which seems to lead to this error
The text was updated successfully, but these errors were encountered:
I am not in favor of changing this behavior as I am considering to remove the ktlint-disable/ktlint-enable directives as the @Suppress("ktlint:all") is more native.
Behavior
Like the code below, I want to disable the format of on the first
.append
method, but that doesn't seem to workSteps to Reproduce
Using the code mentioned in Behavior, and run
ktlint -F
Your Environment
Possible reasons
ktlint's rules use
startOffset
for determining whether to disable, butPsiWhiteSpace
'sstartOffset
is on the previous line when it contains\n
, which seems to lead to this errorThe text was updated successfully, but these errors were encountered: