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
Ktlint CLI expects the baseline file to contain errors stored per relative file. Instead the errors are store for absolute filenames. As a result Ktlint CLI does not suppress the errors for a baseline that it has created.
Reproduce:
Create a file Foo.kt containing code below:
fun Foo() = "foo"
Remove baseline.xml
Create new baseline.xml with ktlint --baseline=baseline.xml. Baseline contains an error for a file with an absolute path:
Ktlint CLI expects the baseline file to contain errors stored per relative file. Instead the errors are store for absolute filenames. As a result Ktlint CLI does not suppress the errors for a baseline that it has created.
Reproduce:
Foo.kt
containing code below:baseline.xml
baseline.xml
withktlint --baseline=baseline.xml
. Baseline contains an error for a file with an absolute path:ktlint --baseline=baseline.xml
and note that the error is reported while it should have been suppressed.The text was updated successfully, but these errors were encountered: