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

Function validate_and_reindex

src/licensedcode/required_phrases.py:732–741  ·  view source on GitHub ↗
(validate=True, reindex=True, verbose=False)

Source from the content-addressed store, hash-verified

730
731
732def validate_and_reindex(validate=True, reindex=True, verbose=False):
733 if validate:
734 if verbose:
735 click.echo('Validate all rules and licenses for all languages...')
736 build_index(index_all_languages=True)
737
738 if reindex:
739 if verbose:
740 click.echo('Rebuilding and caching the license index...')
741 get_index(force=True)
742
743####################################################################################################
744#

Callers 2

add_required_phrasesFunction · 0.85

Calls 2

build_indexFunction · 0.90
get_indexFunction · 0.90

Tested by

no test coverage detected