Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
salolivares committed Nov 19, 2024
1 parent 77802ad commit e5162cb
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 587 deletions.
19 changes: 4 additions & 15 deletions semgrep_output_v1.atd
Original file line number Diff line number Diff line change
Expand Up @@ -1703,32 +1703,21 @@ type dependency_resolution_stats = {
ecosystem: ecosystem;
}

type dependency_source_stats_type <ocaml attr="deriving show"> <python decorator="dataclass(frozen=True)"> = [
| LockfileOnly <json name="lockfile_only">
| ManifestOnly <json name="manifest_only">
| ManifestAndLockfile <json name="manifest_and_lockfile">
]

type dependency_source_stats_file_kind <ocaml attr="deriving show"> <python decorator="dataclass(frozen=True)"> = [
type dependency_source_file_kind <ocaml attr="deriving show"> <python decorator="dataclass(frozen=True)"> = [
| Lockfile of lockfile_kind
| Manifest of manifest_kind
]

type dependency_source_stats_file = {
kind: dependency_source_stats_file_kind;
type dependency_source_file = {
kind: dependency_source_file_kind;
path: fpath;
}

type dependency_source_stats = {
source_type: dependency_source_stats_type;
files: dependency_source_stats_file list;
}

type subproject_stats = {
(* Unique identifier for the subproject *)
subproject_id: string;
(* Files used to determine the subproject's dependencies (lockfiles, manifest files, etc) *)
dependency_sources: dependency_source_stats list;
dependency_sources: dependency_source_file list;
(* Results of dependency resolution, null if resolution failed *)
resolved_stats: dependency_resolution_stats option;
}
Expand Down
28 changes: 4 additions & 24 deletions semgrep_output_v1.jsonschema

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

11 changes: 3 additions & 8 deletions semgrep_output_v1.proto

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

152 changes: 18 additions & 134 deletions semgrep_output_v1.py

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

Loading

0 comments on commit e5162cb

Please sign in to comment.