Skip to content

Commit

Permalink
docs(cli): clarified info and changes applied
Browse files Browse the repository at this point in the history
  • Loading branch information
PagoNxt-Trade committed Jan 23, 2023
1 parent 9f35840 commit 1b682b7
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const scoringThresholdNotEnough = (results: IRuleResult[], scoringConfig: Scorin
getScoringLevel(
getCountsBySeverity(groupedUniqueResults),
scoringConfig.scoringSubtract,
scoringConfig.warningsSubtract,
scoringConfig.onlySubtractHigherSeverityLevel,
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"E": 0
},
"threshold": 50,
"warningsSubtract": true,
"onlySubtractHigherSeverityLevel": true,
"uniqueErrors": false
}
2 changes: 1 addition & 1 deletion packages/cli/src/services/__tests__/output.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const scoringConfig = {
E: 0,
} as unknown as ScoringLevel[],
threshold: 50,
warningsSubtract: true,
onlySubtractHigherSeverityLevel: true,
uniqueErrors: false,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ info:
"E": 0
},
"threshold": 50,
"warningsSubtract": true,
"onlySubtractHigherSeverityLevel": true,
"uniqueErrors": false
}
====command====
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ info:
"E": 0
},
"threshold": 50,
"warningsSubtract": true,
"onlySubtractHigherSeverityLevel": true,
"uniqueErrors": false
}
====command====
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ paths: {}
"E": 0
},
"threshold": 50,
"warningsSubtract": true,
"onlySubtractHigherSeverityLevel": true,
"uniqueErrors": false
}
====command====
Expand Down
2 changes: 1 addition & 1 deletion test-harness/scenarios/overrides/aliases-scoring.scenario
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module.exports = {
"E": 0
},
"threshold": 50,
"warningsSubtract": true,
"onlySubtractHigherSeverityLevel": true,
"uniqueErrors": false
}
====asset:v2/document.json====
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Will only fail if there is an error, and there is not. Can still see all warning
"E": 0
},
"threshold": 50,
"warningsSubtract": true,
"onlySubtractHigherSeverityLevel": true,
"uniqueErrors": false
}
====command====
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Will fail and return 1 as exit code because errors exist with scoring data
"E": 0
},
"threshold": 50,
"warningsSubtract": true,
"onlySubtractHigherSeverityLevel": true,
"uniqueErrors": false
}
====command-nix====
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = oas;
"E": 0
},
"threshold": 50,
"warningsSubtract": true,
"onlySubtractHigherSeverityLevel": true,
"uniqueErrors": false
}
====command====
Expand Down

0 comments on commit 1b682b7

Please sign in to comment.