save-cli icon indicating copy to clipboard operation
save-cli copied to clipboard

Save gives warnings for warnings from the expected file.

Open Cheshiriks opened this issue 3 years ago • 2 comments

The save gives warnings for warnings from the expected file in FixAndWarn plugin in diktat smoke test It is possible that the warn plugin is being run on an expected file with warnings Снимок32423424

save.toml

[general]
execCmd="java -jar ktlint -R diktat.jar"
tags = ["smokeTest"]
description = "SmokeTest"
suiteName = "SmokeTest"
language = "Kotlin"
expectedWarningsPattern = "// ;warn:?(.*):(\\d*): (.+)"

["fix and warn"]
    ["fix and warn".fix]
        execFlags="--disabled_rules=standard -F"
    ["fix and warn".warn]
        actualWarningsPattern = "(\\w+\\..+):(\\d+):(\\d+): (\\[.*\\].*)$"

Cheshiriks avatar Jul 07 '22 14:07 Cheshiriks

Actually, that's the whole point of the algorithm of FixAndWarnPlugin. it should run warn plugin on the expected files Why did you call this as a bug @Cheshiriks ?

kgevorkyan avatar Jan 17 '23 14:01 kgevorkyan

About warnings on warnings, I didn't quite remember do fix this or not May be we have some option flag for this in warn plugin

kgevorkyan avatar Jan 17 '23 14:01 kgevorkyan