From 8f62d4290b24227e72044b12aea44ddedbb6a1ff Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Sun, 7 Sep 2014 14:14:55 -0400 Subject: [PATCH] flawfinder: remove some trailing whitespace --- flawfinder | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flawfinder b/flawfinder index c8decca..cf05b7b 100755 --- a/flawfinder +++ b/flawfinder @@ -163,7 +163,7 @@ def print_warning(message): # We're only supporting unified format directly; if you have an older diff # format, use "patch" to apply it, and then use "diff -u" to create a # unified format. -# +# diff_index_filename = re.compile( r'^Index:\s+(?P.*)' ) diff_git_filename = re.compile( r'^diff --git a/.* b/(?P.*)$' ) @@ -312,7 +312,7 @@ def print_multi_line(text): position = starting_position print w, position = position + len(w) + 1 - + # This matches references to CWE identifiers, so we can HTMLize them. # We don't refer to CWEs with one digit, so we'll only match on 2+ digits. link_cwe_pattern = re.compile(r'(CWE-([1-9][0-9]+))([,()])') @@ -1347,7 +1347,7 @@ def process_c_file(f, patch_infos): return try: input = open(f, "r") - except: + except: print "Error: failed to open", h(f) sys.exit(1) @@ -1620,7 +1620,7 @@ def process_file_args(files, patch_infos): def usage(): print """ flawfinder [--help | -h] [--version] [--listrules] - [--allowlink] [--followdotdir] [--nolink] + [--allowlink] [--followdotdir] [--nolink] [--patch filename | -P filename] [--inputs | -I] [--minlevel X | -m X] [--falsepositive | -F] [--neverignore | -n]