INNER CODE UNIT · Python
main
timschneeb/awesome-shizuku · scripts/check_links.py:115
def main():
"""Main function to read README, check repos, and generate a report."""
def are_licenses_consistent(declared, actual):
# If None, GitHub likely failed to detect the license. Ignore this.
if actual is None:
return True
if declared is None:
return False
norm_declared = declared.replace(' ', '-')
if 'MODIFIED-' in norm_declared:
norm_declared = norm_declared.replace('MODIFIED-', '')
return actual.startswith(norm_declared)
github_token = get_github_token()