forked from semgrep/semgrep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trivial: add a new alarm capability for timeout (semgrep/semgrep-prop…
…rietary#2130) test plan: make lite make test synced from Pro d006ea11a64df094f5f03d66c8e6aa630701a781
- Loading branch information
Showing
27 changed files
with
125 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
module OutJ = Semgrep_output_v1_j | ||
|
||
type caps = | ||
< Cap.stdout | ||
; Cap.network | ||
; Cap.exec | ||
; Cap.tmp | ||
; Cap.chdir | ||
; Cap.fork | ||
; Cap.alarm > | ||
|
||
(* | ||
Parse a semgrep-ci command, execute it and exit. | ||
Usage: main [| "semgrep-ci"; ... |] | ||
This function returns an exit code to be passed to the 'exit' function. | ||
*) | ||
val main : | ||
< Cap.network ; Cap.stdout ; Cap.exec ; Cap.tmp ; Cap.chdir ; Cap.fork > -> | ||
string array -> | ||
Exit_code.t | ||
val main : caps -> string array -> Exit_code.t | ||
|
||
(* internal *) | ||
val run_conf : | ||
< Cap.network ; Cap.stdout ; Cap.exec ; Cap.tmp ; Cap.chdir ; Cap.fork > -> | ||
Ci_CLI.conf -> | ||
Exit_code.t | ||
|
||
val run_conf : caps -> Ci_CLI.conf -> Exit_code.t | ||
val rule_is_blocking : JSON.t -> bool | ||
val finding_is_blocking : OutJ.cli_match -> bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
type caps = < Cap.random ; Cap.network ; Cap.tmp ; Cap.fork ; Cap.alarm > | ||
|
||
(* | ||
Parse a semgrep-lsp command, execute it and exit. | ||
Usage: main [| "semgrep-lsp"; ... |] | ||
This function returns an exit code to be passed to the 'exit' function. | ||
*) | ||
val main : | ||
< Cap.random ; Cap.network ; Cap.tmp ; Cap.fork > -> | ||
string array -> | ||
Exit_code.t | ||
val main : caps -> string array -> Exit_code.t | ||
|
||
(* internal *) | ||
val run_conf : | ||
< Cap.random ; Cap.network ; Cap.tmp ; Cap.fork > -> | ||
Lsp_CLI.conf -> | ||
Exit_code.t | ||
val run_conf : caps -> Lsp_CLI.conf -> Exit_code.t |
Oops, something went wrong.