def quick_library_check(): """Runs the faster checks, not urls.""" ret = {} ret[_ERRORS] = [] ret[_WARNINGS] = [] d = check_library_unlock_dates() for e in d[_ERRORS]: ret[_ERRORS].append(str(e)) for w in d[_WARNINGS]: ret[_WARNINGS].append(str(w)) for e in action_dependency.check_unreachable_library_actions(): ret[_ERRORS].append(str(e)) for w in action_dependency.check_false_unlock_library_actions(): ret[_WARNINGS].append(str(w)) return ret
def full_library_check(): """Runs all the consistency checks on the library returning a dictionary with the Errors and Warnings.""" ret = {} ret[_ERRORS] = [] ret[_WARNINGS] = [] d = check_library_unlock_dates() for e in d[_ERRORS]: ret[_ERRORS].append(str(e)) for w in d[_WARNINGS]: ret[_WARNINGS].append(str(w)) for w in check_library_urls(): ret[_WARNINGS].append(str(w)) for e in action_dependency.check_unreachable_library_actions(): ret[_ERRORS].append(str(e)) for w in action_dependency.check_false_unlock_library_actions(): ret[_WARNINGS].append(str(w)) return ret