flawfinder: Modify --listrules to also report default warning

This commit is contained in:
David A. Wheeler 2014-07-19 12:58:02 -04:00
parent df397eaf46
commit 742cb6db13
1 changed files with 1 additions and 1 deletions

View File

@ -1447,7 +1447,7 @@ def display_ruleset(ruleset):
sortedkeys.sort()
# Now, print them out:
for key in sortedkeys:
print key, ruleset[key][1] # function name and default level.
print key + "\t" + str(ruleset[key][1]) + "\t" + ruleset[key][2] # function name, default level, default warning
def initialize_ruleset():
expand_ruleset(c_ruleset)