def check_all(tree, reporter, check_ignored): """Do all checks for the GROMACS tree.""" includesorter = IncludeSorter() for fileobj in tree.get_files(): if isinstance(fileobj, gmxtree.GeneratorSourceFile): continue check_file(fileobj, tree, reporter) for includedfile in fileobj.get_includes(): check_include(fileobj, includedfile, reporter) if fileobj.should_includes_be_sorted(): is_sorted, details = includesorter.check_sorted(fileobj) if not is_sorted: details.append( "You can use includesorter.py to do the sorting automatically; see docs/dev-manual/gmxtree.rst" ) reporter.code_issue( fileobj, "include style/order is not consistent; see docs/dev-manual/includestyle.rst", details) for classobj in tree.get_classes(): check_class(classobj, reporter) for memberobj in tree.get_members(): check_member(memberobj, reporter, check_ignored) check_cycles(ModuleDependencyGraph(tree), reporter) tree.report_unused_cycle_suppressions(reporter)
def check_all(tree, reporter, check_ignored): """Do all checks for the GROMACS tree.""" includesorter = IncludeSorter() for fileobj in tree.get_files(): if isinstance(fileobj, gmxtree.GeneratorSourceFile): continue check_file(fileobj, reporter) for includedfile in fileobj.get_includes(): check_include(fileobj, includedfile, reporter) if fileobj.should_includes_be_sorted() \ and not includesorter.check_sorted(fileobj): reporter.code_issue(fileobj, "include order is not consistent") for classobj in tree.get_classes(): check_class(classobj, reporter) for memberobj in tree.get_members(): check_member(memberobj, reporter, check_ignored) check_cycles(ModuleDependencyGraph(tree), reporter)
def check_all(tree, reporter, check_ignored): """Do all checks for the GROMACS tree.""" includesorter = IncludeSorter() for fileobj in tree.get_files(): if isinstance(fileobj, gmxtree.GeneratorSourceFile): continue check_file(fileobj, tree, reporter) for includedfile in fileobj.get_includes(): check_include(fileobj, includedfile, reporter) if fileobj.should_includes_be_sorted(): is_sorted, details = includesorter.check_sorted(fileobj) if not is_sorted: details.append("You can use includesorter.py to do the sorting automatically; see docs/dev-manual/gmxtree.rst") reporter.code_issue(fileobj, "include style/order is not consistent; see docs/dev-manual/includestyle.rst", details) for classobj in tree.get_classes(): check_class(classobj, reporter) for memberobj in tree.get_members(): check_member(memberobj, reporter, check_ignored) check_cycles(ModuleDependencyGraph(tree), reporter) tree.report_unused_cycle_suppressions(reporter)