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)
| 154 | |
| 155 | |
| 156 | def 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 | |
| 167 | def validate_and_dump_rules(rules, licenses_by_key, licenses_file_path): |