Skip to content

Commit 1b682b7

Browse files
committed
docs(cli): clarified info and changes applied
1 parent 9f35840 commit 1b682b7

10 files changed

+10
-10
lines changed

packages/cli/src/commands/lint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ const scoringThresholdNotEnough = (results: IRuleResult[], scoringConfig: Scorin
308308
getScoringLevel(
309309
getCountsBySeverity(groupedUniqueResults),
310310
scoringConfig.scoringSubtract,
311-
scoringConfig.warningsSubtract,
311+
scoringConfig.onlySubtractHigherSeverityLevel,
312312
)
313313
);
314314
}

packages/cli/src/services/__tests__/__fixtures__/scoring-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
"E": 0
2828
},
2929
"threshold": 50,
30-
"warningsSubtract": true,
30+
"onlySubtractHigherSeverityLevel": true,
3131
"uniqueErrors": false
3232
}

packages/cli/src/services/__tests__/output.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const scoringConfig = {
2828
E: 0,
2929
} as unknown as ScoringLevel[],
3030
threshold: 50,
31-
warningsSubtract: true,
31+
onlySubtractHigherSeverityLevel: true,
3232
uniqueErrors: false,
3333
};
3434

test-harness/scenarios/formats/results-default-format-scoring-json.scenario

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ info:
7979
"E": 0
8080
},
8181
"threshold": 50,
82-
"warningsSubtract": true,
82+
"onlySubtractHigherSeverityLevel": true,
8383
"uniqueErrors": false
8484
}
8585
====command====

test-harness/scenarios/formats/results-default-scoring.scenario

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ info:
7979
"E": 0
8080
},
8181
"threshold": 50,
82-
"warningsSubtract": true,
82+
"onlySubtractHigherSeverityLevel": true,
8383
"uniqueErrors": false
8484
}
8585
====command====

test-harness/scenarios/formats/results-format-stylish-scoring.scenario

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ paths: {}
8080
"E": 0
8181
},
8282
"threshold": 50,
83-
"warningsSubtract": true,
83+
"onlySubtractHigherSeverityLevel": true,
8484
"uniqueErrors": false
8585
}
8686
====command====

test-harness/scenarios/overrides/aliases-scoring.scenario

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module.exports = {
9393
"E": 0
9494
},
9595
"threshold": 50,
96-
"warningsSubtract": true,
96+
"onlySubtractHigherSeverityLevel": true,
9797
"uniqueErrors": false
9898
}
9999
====asset:v2/document.json====

test-harness/scenarios/severity/fail-on-error-no-error-scoring.scenario

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Will only fail if there is an error, and there is not. Can still see all warning
4747
"E": 0
4848
},
4949
"threshold": 50,
50-
"warningsSubtract": true,
50+
"onlySubtractHigherSeverityLevel": true,
5151
"uniqueErrors": false
5252
}
5353
====command====

test-harness/scenarios/severity/fail-on-error-scoring.scenario

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Will fail and return 1 as exit code because errors exist with scoring data
5858
"E": 0
5959
},
6060
"threshold": 50,
61-
"warningsSubtract": true,
61+
"onlySubtractHigherSeverityLevel": true,
6262
"uniqueErrors": false
6363
}
6464
====command-nix====

test-harness/scenarios/valid-no-errors.oas2-scoring.scenario

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = oas;
4747
"E": 0
4848
},
4949
"threshold": 50,
50-
"warningsSubtract": true,
50+
"onlySubtractHigherSeverityLevel": true,
5151
"uniqueErrors": false
5252
}
5353
====command====

0 commit comments

Comments
 (0)