From 810cd2a3aad87c53c8b90889576f5833a3e9557c Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 28 Sep 2020 20:30:19 -0400 Subject: lint: guard against todos --- Biz/lint.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Biz/lint.py') diff --git a/Biz/lint.py b/Biz/lint.py index 4d760d2..fccda57 100755 --- a/Biz/lint.py +++ b/Biz/lint.py @@ -68,6 +68,14 @@ def group_files(files, extensions): return ret +def guard_todos(files): + for fname in files: + with open(fname) as text: + if "TODO" in text.read(): + ERRORS += 1 + print("found todo:", fname) + + if __name__ == "__main__": ERRORS = 0 if "-h" in sys.argv: -- cgit v1.2.3