MCPcopy Create free account
hub / github.com/ddnet/ddnet / main

Function main

scripts/fix_style.py:85–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84
85def main():
86 p = argparse.ArgumentParser(description="Check and fix style of changed files")
87 p.add_argument("-n", "--dry-run", action="store_true", help="Don't fix, only warn")
88 args = p.parse_args()
89 filenames = filter_ignored(filter_cpp(recursive_file_list("src")))
90 if not args.dry_run:
91 reformat(filenames)
92 else:
93 sys.exit(warn(filenames))
94
95
96if __name__ == "__main__":

Callers 1

fix_style.pyFile · 0.70

Calls 6

filter_ignoredFunction · 0.85
filter_cppFunction · 0.85
recursive_file_listFunction · 0.85
reformatFunction · 0.85
warnFunction · 0.85
exitMethod · 0.45

Tested by

no test coverage detected