We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fef118 commit 074ca0bCopy full SHA for 074ca0b
src/framework/analyses.ml
@@ -269,8 +269,9 @@ struct
269
Yojson.Safe.pretty_to_channel ~std:true out (Sarif.to_yojson (List.rev !Messages.Table.messages_list));
270
| "json-messages" ->
271
let files = Hashtbl.to_list Preprocessor.dependencies in
272
+ let filter_system = List.filter_map (fun (f,system) -> if system then None else Some f) in
273
let json = `Assoc [
- ("files", `Assoc (List.map (Tuple2.map2 [%to_yojson: (string*bool) list]) files));
274
+ ("files", `Assoc (List.map (Tuple2.map2 (fun deps -> [%to_yojson:string list] @@ filter_system deps)) files));
275
("messages", Messages.Table.to_yojson ());
276
]
277
in
0 commit comments