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
In case a file only contains lint violations which are suppressed using the baseline, then ktlint 1.3.0 keeps reporting that format was not able to resolve all violations which (theoretically) can be autocorrected.
Run command rm baseline.xml && ktlint **/Foo.kt --baseline=baseline.xml to delete the existing baseline.xml and recreate a new baseline.xml file. The created baseline.xml file looks like:
11:00:10.368 [pool-1-thread-1] WARN com.pinterest.ktlint.rule.engine.internal.CodeFormatter -- Format was not able to resolve all violations which (theoretically) can be autocorrected in file /###/src/main/kotlin/Foo.kt in 3 consecutive runs of format.
The text was updated successfully, but these errors were encountered:
The warning "Format was not able to resolve all violations" should not be logged in case the code only contains lint violations which may not be autocorrected according to the AutoCorrectHandler.
Closes#2726
The warning "Format was not able to resolve all violations" should not be logged in case the code only contains lint violations which may not be autocorrected according to the AutoCorrectHandler.
Closes#2726
…(theoretically) can be autocorrected` (#2727)
The warning "Format was not able to resolve all violations" should not be logged in case the code only contains lint violations which may not be autocorrected according to the AutoCorrectHandler.
Closes#2726
The warning "Format was not able to resolve all violations" should not be logged in case the code only contains lint violations which may not be autocorrected according to the AutoCorrectHandler.
Closes#2726
In case a file only contains lint violations which are suppressed using the baseline, then ktlint
1.3.0
keeps reporting that format was not able to resolve all violations which (theoretically) can be autocorrected.Assume that the file
Foo.kt
contains code below:and
.editorconfig
:Run command
rm baseline.xml && ktlint **/Foo.kt --baseline=baseline.xml
to delete the existingbaseline.xml
and recreate a newbaseline.xml
file. The createdbaseline.xml
file looks like:Running
ktlint-dev **/Foo.kt --baseline=baseline.xml -F --relative
results in:The text was updated successfully, but these errors were encountered: