mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 18:36:30 +03:00
top_evil_rs: check for all-caps version of ok_to_continue pattern
This commit is contained in:
@@ -14,7 +14,7 @@ if __name__ == "__main__":
|
||||
s = re.sub(r"(?m)///.*$", "", s) # remove comments
|
||||
unsafe = s.count("unsafe")
|
||||
free = s.count("free(")
|
||||
gotoblocks = s.count("ok_to_continue")
|
||||
gotoblocks = s.count("ok_to_continue") + s.count('OK_TO_CONTINUE')
|
||||
filestats.append((fn, unsafe, free, gotoblocks))
|
||||
|
||||
sum_unsafe, sum_free, sum_gotoblocks = 0, 0, 0
|
||||
|
||||
Reference in New Issue
Block a user