MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_rule_dirs

Function get_rule_dirs

src/licensedcode/models.py:921–927  ·  view source on GitHub ↗

Return a list of all subdirectories containing rule files within the input list of additional directories. These directories do not have to be absolute paths.

(additional_dirs)

Source from the content-addressed store, hash-verified

919
920
921def get_rule_dirs(additional_dirs):
922 """
923 Return a list of all subdirectories containing rule files within the
924 input list of additional directories. These directories do not have to be absolute paths.
925 """
926 additional_dirs = additional_dirs or []
927 return [f"{str(Path(path).absolute())}/rules" for path in additional_dirs]
928
929
930def get_paths_to_installed_licenses_and_rules():

Callers 1

build_indexFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected