Skip to content

Commit b1f7b29

Browse files
authored
feat(sca): add types for new potential lockfile/manifest types (#315)
This PR adds types for the Python UV & Conan C++ manifests and lockfiles. - [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.17.0. See https://atd.readthedocs.io/en/latest/atdgen-tutorial.html#smooth-protocol-upgrades
1 parent b35746b commit b1f7b29

File tree

7 files changed

+147
-13
lines changed

7 files changed

+147
-13
lines changed

semgrep_output_v1.atd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,7 @@ type lockfile_kind
19141914
| PipRequirementsTxt
19151915
| PoetryLock
19161916
| PipfileLock
1917+
| UvLock
19171918
| NpmPackageLockJson
19181919
| YarnLock
19191920
| PnpmLock
@@ -1927,6 +1928,7 @@ type lockfile_kind
19271928
| PubspecLock
19281929
| SwiftPackageResolved (* not a real lockfile *)
19291930
| MixLock
1931+
| ConanLock
19301932
] <ocaml repr="classic">
19311933

19321934
type manifest_kind
@@ -1959,6 +1961,8 @@ type manifest_kind
19591961
| Pipfile (* Pipfile - https://pipenv.pypa.io/en/latest/pipfile.html *)
19601962
| PyprojectToml
19611963
(* pyproject.toml - https://packaging.python.org/en/latest/guides/writing-pyproject-toml/ *)
1964+
| ConanFileTxt (* conanfile.txt - https://docs.conan.io/2.9/reference/conanfile_txt.html#conanfile-txt *)
1965+
| ConanFilePy (* conanfile.py - https://docs.conan.io/2.9/reference/conanfile.html *)
19621966
]
19631967

19641968
type manifest

semgrep_output_v1.jsonschema

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

semgrep_output_v1_j.ml

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

semgrep_output_v1_j.mli

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

0 commit comments

Comments
 (0)