swh.scanner.scanner module

async swh.scanner.scanner.run(config: Dict[str, Any], policy, source_tree: swh.model.from_disk.Directory, nodes_data: swh.scanner.data.MerkleNodeInfo, extra_info: set) None[source]

Scan a given source code according to the policy given in input.

swh.scanner.scanner.get_policy_obj(source_tree: swh.model.from_disk.Directory, nodes_data: swh.scanner.data.MerkleNodeInfo, policy: str)[source]
swh.scanner.scanner.scan(config: Dict[str, Any], root_path: str, exclude_patterns: Iterable[str], out_fmt: str, interactive: bool, policy: str, extra_info: set)[source]

Scan a source code project to discover files and directories already present in the archive