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
Copy file name to clipboardExpand all lines: docs/guides/2-cli.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ Heres an example of this scoringFile config file:
112
112
"E":0
113
113
},
114
114
"threshold":50,
115
-
"warningsSubtract": true,
115
+
"onlySubtractHigherSeverityLevel": true,
116
116
"uniqueErrors": false
117
117
}
118
118
```
@@ -121,8 +121,21 @@ Where:
121
121
122
122
- scoringSubtract : An object with key/value pair objects for every result level we want to subtract percentage, with the percentage to subtract from number of results on every result type
123
123
- scoringLetter : An object with key/value pairs with scoring letter and scoring percentage, that the result must be greater, for this letter
124
-
- threshold : A number with minimum percentage value to provide valid the file we are checking
125
-
- warningsSubtract : A boolean to accumulate the result types to less than the scoring percentage or to stop counting on most critical result types
124
+
- threshold : A number with minimum percentage value to provide valid the file we are checking. Any scoring below this thresold will mark the API as a failure in the scoring.
125
+
- onlySubtractHigherSeverityLevel : A boolean to decide if only the higher severity level who appears in the results for the API to analize, are subtracted from scoring or every severity level are subtracted from scoring.
126
+
127
+
See sample:
128
+
129
+
true
130
+
131
+
API with Errors and Warnings, only Errors substract from scoring
132
+
API with Warnings, Warnings substract from scoring
133
+
134
+
false
135
+
136
+
API with Errors and Warnings, Errors and Warnings substracts from scoring
137
+
API with Warnings, Warnings substract from scoring
138
+
126
139
- uniqueErrors : A boolean to count unique errors or all errors. An error is considered unique if its code and message have not been seen yet
0 commit comments