save-cli
save-cli copied to clipboard
Save gives warnings for warnings from the expected file.
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
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+): (\\[.*\\].*)$"
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 ?
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