Skip to content

Commit cf7677d

Browse files
committed
group symbol analysis by subproject
1 parent 80fa4d2 commit cf7677d

File tree

7 files changed

+728
-383
lines changed

7 files changed

+728
-383
lines changed

semgrep_output_v1.atd

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,8 +2061,8 @@ type core_output = {
20612061
do not necessarily want to share with the cli_output.
20622062
*)
20632063
type core_output_extra = {
2064-
(* since semgrep 1.108.0 *)
2065-
?symbol_analysis: symbol_analysis option;
2064+
(* since semgrep 1.128.0 *)
2065+
?ungrouped_symbol_analysis: ungrouped_symbol_analysis option;
20662066
}
20672067

20682068
(* TODO: now only core_match_extra differ, otherwise it's just like cli_match *)
@@ -2634,7 +2634,16 @@ type symbol_usage <ocaml attr="deriving show"> = {
26342634
locs: location list;
26352635
}
26362636

2637-
type symbol_analysis <ocaml attr="deriving show"> = symbol_usage list
2637+
type ungrouped_symbol_analysis <ocaml attr="deriving show"> = symbol_usage list
2638+
2639+
type subproject_symbol_analysis <ocaml attr="deriving show"> = {
2640+
subproject_root_dir: fpath;
2641+
symbol_analysis: symbol_usage list;
2642+
}
2643+
2644+
2645+
type symbol_analysis <ocaml attr="deriving show"> = subproject_symbol_analysis list
2646+
26382647

26392648
(* ----------------------------- *)
26402649
(* The call *)

semgrep_output_v1.jsonschema

Lines changed: 22 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.proto

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.py

Lines changed: 109 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)