Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into martin/entropy-v2-opt…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
mjambon committed Sep 9, 2024
2 parents 71a723d + 9992e65 commit 186a9d4
Show file tree
Hide file tree
Showing 7 changed files with 300 additions and 71 deletions.
17 changes: 17 additions & 0 deletions semgrep_output_v1.atd
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,8 @@ type error_type
| FatalError (* missing file, OCaml errors, etc. *) <json name="Fatal error">
| Timeout <json name="Timeout">
| OutOfMemory <json name="Out of memory">
(* since semgrep 1.86.0 *)
| StackOverflow <json name="Stack overflow">
(* pro-engine specific *)
| TimeoutDuringInterfile <json name="Timeout during interfile analysis">
| OutOfMemoryDuringInterfile <json name="OOM during interfile analysis">
Expand Down Expand Up @@ -1102,6 +1104,15 @@ type found_dependency = {
<ts repr="map">;
?resolved_url: string option;
transitivity: transitivity;
(* Path to the lockfile that contains this dependency.
*
* Examples: package-lock.json, nested/folder/requirements.txt, go.mod
* Since 1.87.0
*)
?lockfile_path: fpath option;
(* The line number of the dependency in the lockfile. When combined with the
* lockfile_path, this can identify the location of the dependency in the lockfile.
*)
?line_number: int option;
(* store child dependency information for calculating path to transitivity*)
?children: dependency_child list option;
Expand Down Expand Up @@ -1801,6 +1812,11 @@ type function_call
| CallApplyFixes of apply_fixes_params
| CallSarifFormat of sarif_format_params
| CallFormatter of (output_format * cli_output)
(* NOTE: fpath is most likely a temporary file that contains all the rules in
JSON format. In the future, we could send the rules via a big string through
the RPC pipe.
*)
| CallValidate of fpath
]

type function_return
Expand All @@ -1810,4 +1826,5 @@ type function_return
| RetSarifFormat of sarif_format_return
| RetContributions of contributions
| RetFormatter of string
| RetValidate of bool
]
18 changes: 18 additions & 0 deletions semgrep_output_v1.jsonschema

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion semgrep_output_v1.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 66 additions & 3 deletions semgrep_output_v1.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions semgrep_output_v1.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 186a9d4

Please sign in to comment.