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

Function find_rule_base_loc

etc/scripts/licenses/buildrules.py:156–164  ·  view source on GitHub ↗

Return a new, unique and non-existing base name location suitable to create a new rule using the a license_expression as a prefix.

(license_expression)

Source from the content-addressed store, hash-verified

154
155
156def find_rule_base_loc(license_expression):
157 """
158 Return a new, unique and non-existing base name location suitable to create
159 a new rule using the a license_expression as a prefix.
160 """
161 return models.find_rule_base_location(
162 name_prefix=license_expression,
163 rules_directory=models.rules_data_dir,
164 )
165
166
167def validate_and_dump_rules(rules, licenses_by_key, licenses_file_path):

Callers 1

cliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected