2021-05-10 09:08:04 +01:00
|
|
|
package sarif
|
|
|
|
|
2021-05-31 09:44:12 +01:00
|
|
|
// Level SARIF level
|
2021-05-10 09:08:04 +01:00
|
|
|
// From https://docs.oasis-open.org/sarif/sarif/v2.0/csprd02/sarif-v2.0-csprd02.html#_Toc10127839
|
|
|
|
type Level string
|
|
|
|
|
|
|
|
const (
|
2021-05-31 09:44:12 +01:00
|
|
|
// None : The concept of “severity” does not apply to this result because the kind
|
2021-05-10 09:08:04 +01:00
|
|
|
// property (§3.27.9) has a value other than "fail".
|
|
|
|
None = Level("none")
|
2021-05-31 09:44:12 +01:00
|
|
|
// Note : The rule specified by ruleId was evaluated and a minor problem or an opportunity
|
2021-05-10 09:08:04 +01:00
|
|
|
// to improve the code was found.
|
|
|
|
Note = Level("note")
|
2021-05-31 09:44:12 +01:00
|
|
|
// Warning : The rule specified by ruleId was evaluated and a problem was found.
|
2021-05-10 09:08:04 +01:00
|
|
|
Warning = Level("warning")
|
2021-05-31 09:44:12 +01:00
|
|
|
// Error : The rule specified by ruleId was evaluated and a serious problem was found.
|
2021-05-10 09:08:04 +01:00
|
|
|
Error = Level("error")
|
2021-05-31 09:44:12 +01:00
|
|
|
// Version : SARIF Schema version
|
2024-08-12 11:52:41 +01:00
|
|
|
Version = "2.2.0"
|
2021-05-31 09:44:12 +01:00
|
|
|
// Schema : SARIF Schema URL
|
2024-08-12 11:52:41 +01:00
|
|
|
Schema = "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.2.json"
|
2021-05-10 09:08:04 +01:00
|
|
|
)
|