Skip to content

Commit 88691c9

Browse files
authored
Add an optional field to the internal API to list target files (#430)
This is used by https://github.com/semgrep/semgrep-proprietary/pull/5274 - [x] I ran `make setup && make` to update the generated code after editing a `.atd` file (TODO: have a CI check) - [x] I made sure we're still backward compatible with old versions of the CLI. For example, the Semgrep backend need to still be able to *consume* data generated by Semgrep 1.50.0. See https://atd.readthedocs.io/en/latest/atdgen-tutorial.html#smooth-protocol-upgrades Note that the types related to the semgrep-core JSON output or the semgrep-core RPC do not need to be backward compatible! - [x] Any accompanying changes in `semgrep-proprietary` are approved and ready to merge once this PR is merged
1 parent 2af6bbf commit 88691c9

9 files changed

+86
-27
lines changed

semgrep_output_v1.atd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2723,6 +2723,7 @@ type targeting_conf
27232723
max_target_bytes : int;
27242724
respect_gitignore : bool;
27252725
respect_semgrepignore_files : bool;
2726+
~extra_gitignore_patterns_to_exclude_git_untracked_files : string list;
27262727
?semgrepignore_filename : string option;
27272728
always_select_explicit_targets : bool;
27282729
explicit_targets

semgrep_output_v1.jsonschema

Lines changed: 4 additions & 0 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: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.py

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

semgrep_output_v1.ts

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

0 commit comments

Comments
 (0)