Commit 37dc88a3 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[MdR] fix deterministic sarif output to pass validation

parent beb92eac
...@@ -26,7 +26,7 @@ let frama_c_sarif () = ...@@ -26,7 +26,7 @@ let frama_c_sarif () =
let name = "frama-c" in let name = "frama-c" in
let version, semanticVersion = let version, semanticVersion =
if Mdr_params.SarifDeterministic.get () then if Mdr_params.SarifDeterministic.get () then
"omitted-for-deterministic-output", "" "0+omitted-for-deterministic-output", ""
else else
Fc_config.version_and_codename, Fc_config.version Fc_config.version_and_codename, Fc_config.version
in in
...@@ -234,7 +234,7 @@ let gen_run remarks = ...@@ -234,7 +234,7 @@ let gen_run remarks =
List.fold_left (fun acc (name, dir) -> List.fold_left (fun acc (name, dir) ->
let baseUri = let baseUri =
if Mdr_params.SarifDeterministic.get () then if Mdr_params.SarifDeterministic.get () then
"omitted-for-deterministic-output/" "file:///omitted-for-deterministic-output/"
else "file://" ^ dir ^ "/" else "file://" ^ dir ^ "/"
in in
(name, `Assoc [("uri", `String baseUri)]) :: acc (name, `Assoc [("uri", `String baseUri)]) :: acc
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"tool": { "tool": {
"driver": { "driver": {
"name": "frama-c", "name": "frama-c",
"fullName": "frama-c-omitted-for-deterministic-output", "fullName": "frama-c-0+omitted-for-deterministic-output",
"version": "omitted-for-deterministic-output", "version": "0+omitted-for-deterministic-output",
"downloadUri": "https://frama-c.com/download.html", "downloadUri": "https://frama-c.com/download.html",
"informationUri": "https://frama-c.com" "informationUri": "https://frama-c.com"
} }
...@@ -29,10 +29,14 @@ ...@@ -29,10 +29,14 @@
} }
], ],
"originalUriBaseIds": { "originalUriBaseIds": {
"FRAMAC_SHARE": { "uri": "omitted-for-deterministic-output/" }, "FRAMAC_SHARE": {
"FRAMAC_LIB": { "uri": "omitted-for-deterministic-output/" }, "uri": "file:///omitted-for-deterministic-output/"
"FRAMAC_PLUGIN": { "uri": "omitted-for-deterministic-output/" }, },
"PWD": { "uri": "omitted-for-deterministic-output/" } "FRAMAC_LIB": { "uri": "file:///omitted-for-deterministic-output/" },
"FRAMAC_PLUGIN": {
"uri": "file:///omitted-for-deterministic-output/"
},
"PWD": { "uri": "file:///omitted-for-deterministic-output/" }
}, },
"artifacts": [ "artifacts": [
{ {
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"tool": { "tool": {
"driver": { "driver": {
"name": "frama-c", "name": "frama-c",
"fullName": "frama-c-omitted-for-deterministic-output", "fullName": "frama-c-0+omitted-for-deterministic-output",
"version": "omitted-for-deterministic-output", "version": "0+omitted-for-deterministic-output",
"downloadUri": "https://frama-c.com/download.html", "downloadUri": "https://frama-c.com/download.html",
"informationUri": "https://frama-c.com" "informationUri": "https://frama-c.com"
} }
...@@ -29,10 +29,14 @@ ...@@ -29,10 +29,14 @@
} }
], ],
"originalUriBaseIds": { "originalUriBaseIds": {
"FRAMAC_SHARE": { "uri": "omitted-for-deterministic-output/" }, "FRAMAC_SHARE": {
"FRAMAC_LIB": { "uri": "omitted-for-deterministic-output/" }, "uri": "file:///omitted-for-deterministic-output/"
"FRAMAC_PLUGIN": { "uri": "omitted-for-deterministic-output/" }, },
"PWD": { "uri": "omitted-for-deterministic-output/" } "FRAMAC_LIB": { "uri": "file:///omitted-for-deterministic-output/" },
"FRAMAC_PLUGIN": {
"uri": "file:///omitted-for-deterministic-output/"
},
"PWD": { "uri": "file:///omitted-for-deterministic-output/" }
}, },
"artifacts": [ "artifacts": [
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment