warn_only_test_

This commit is contained in:
tgrall
2023-06-14 08:55:38 +02:00
parent 9b290a185a
commit 7ed3405bdc
3 changed files with 3 additions and 3 deletions
Generated Vendored
+1 -1
View File
@@ -505,7 +505,7 @@ function run() {
const failOnSeverityParams = config.fail_on_severity;
const warnOnly = config.warn_only;
let minSeverity = 'low';
if (failOnSeverityParams) {
if (failOnSeverityParams && !warnOnly) {
minSeverity = failOnSeverityParams;
}
// debug
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -40,7 +40,7 @@ async function run(): Promise<void> {
const failOnSeverityParams = config.fail_on_severity
const warnOnly = config.warn_only
let minSeverity: Severity = 'low'
if (failOnSeverityParams) {
if (failOnSeverityParams && !warnOnly) {
minSeverity = failOnSeverityParams
}