Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Critical level to the Severity enum #149

Closed
ostridm opened this issue Feb 8, 2023 · 0 comments · Fixed by #150
Closed

Add Critical level to the Severity enum #149

ostridm opened this issue Feb 8, 2023 · 0 comments · Fixed by #150
Assignees
Labels
Type: enhancement New feature or request.

Comments

@ostridm
Copy link
Contributor

ostridm commented Feb 8, 2023

Description

Add a Critical level to the Severity enum and adjust threshold-related calculations accordingly with Critical as the highest level.

Example

scan.Threshold(Severity.Critical);

Expected Outcome

The scan should continue even if issues with a severity lower than Critical are found and should only stop for issues with Critical severity.

@ostridm ostridm added the Type: enhancement New feature or request. label Feb 8, 2023
@ostridm ostridm self-assigned this Feb 8, 2023
@derevnjuk derevnjuk changed the title Able to define Critical severity threshold Add Critical level to the Severity enum Feb 8, 2023
derevnjuk pushed a commit that referenced this issue Feb 8, 2023
Introduce the ability to set the severity threshold to the `Critical`
level using the `Threshold` method:

```csharp
scan.Threshold(Severity.Critical);
```

With this implementation, the scan will continue despite the presence of
issues with a severity lower than `Critical`, and will only stop for
issues of `Critical` severity.

closes #149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement New feature or request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant