package crs
Module Crs_parserSource
Utils for parsing and searching for code review comments (CRs) in versioned source files.
Parsing
Source
val parse_file :
path:Volgo.Vcs.Path_in_repo.t ->
file_contents:Volgo.Vcs.File_contents.t ->
Cr_comment.t Base.listParse all code review comments (CRs) from a file. Comments that resemble CRs but are malformed or partially invalid are still returned, with error information in their metadata, so users can be alerted rather than having such comments silently ignored.
Searching
Source
val grep :
vcs:< Volgo.Vcs.Trait.ls_files.. > Volgo.Vcs.t ->
repo_root:Volgo.Vcs.Repo_root.t ->
below:Volgo.Vcs.Path_in_repo.t ->
Cr_comment.t Base.listSearch recursively for all code review comments (CRs) in files versioned under the supplied repo_root, starting at and below the given path in the repository. Only files tracked by the version control system are included; untracked or ignored files are skipped. Returns all found CRs.