Skip to content

Commit

Permalink
Fix severity condition (#52)
Browse files Browse the repository at this point in the history
* Fix severityThreshold condition

* Save dist folder changes

---------

Co-authored-by: Yurii Zakharov <[email protected]>
  • Loading branch information
Yurii-Zakharov and Yurii Zakharov authored May 19, 2023
1 parent c9ee900 commit 47008f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function getScannerViolationType(
violation: ScannerViolation,
engine: string
): ScannerViolationType {
if (inputs.severityThreshold <= violation.severity) {
if (inputs.severityThreshold >= violation.severity) {
return "Error";
}
if (!inputs.strictlyEnforcedRules) {
Expand Down

0 comments on commit 47008f9

Please sign in to comment.