flawfinder: remove some trailing whitespace
This commit is contained in:
parent
dc04172c52
commit
8f62d4290b
|
@ -163,7 +163,7 @@ def print_warning(message):
|
||||||
# We're only supporting unified format directly; if you have an older diff
|
# 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
|
# format, use "patch" to apply it, and then use "diff -u" to create a
|
||||||
# unified format.
|
# unified format.
|
||||||
#
|
#
|
||||||
|
|
||||||
diff_index_filename = re.compile( r'^Index:\s+(?P<filename>.*)' )
|
diff_index_filename = re.compile( r'^Index:\s+(?P<filename>.*)' )
|
||||||
diff_git_filename = re.compile( r'^diff --git a/.* b/(?P<filename>.*)$' )
|
diff_git_filename = re.compile( r'^diff --git a/.* b/(?P<filename>.*)$' )
|
||||||
|
@ -312,7 +312,7 @@ def print_multi_line(text):
|
||||||
position = starting_position
|
position = starting_position
|
||||||
print w,
|
print w,
|
||||||
position = position + len(w) + 1
|
position = position + len(w) + 1
|
||||||
|
|
||||||
# This matches references to CWE identifiers, so we can HTMLize them.
|
# 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.
|
# 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]+))([,()])')
|
link_cwe_pattern = re.compile(r'(CWE-([1-9][0-9]+))([,()])')
|
||||||
|
@ -1347,7 +1347,7 @@ def process_c_file(f, patch_infos):
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
input = open(f, "r")
|
input = open(f, "r")
|
||||||
except:
|
except:
|
||||||
print "Error: failed to open", h(f)
|
print "Error: failed to open", h(f)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
@ -1620,7 +1620,7 @@ def process_file_args(files, patch_infos):
|
||||||
def usage():
|
def usage():
|
||||||
print """
|
print """
|
||||||
flawfinder [--help | -h] [--version] [--listrules]
|
flawfinder [--help | -h] [--version] [--listrules]
|
||||||
[--allowlink] [--followdotdir] [--nolink]
|
[--allowlink] [--followdotdir] [--nolink]
|
||||||
[--patch filename | -P filename]
|
[--patch filename | -P filename]
|
||||||
[--inputs | -I] [--minlevel X | -m X]
|
[--inputs | -I] [--minlevel X | -m X]
|
||||||
[--falsepositive | -F] [--neverignore | -n]
|
[--falsepositive | -F] [--neverignore | -n]
|
||||||
|
|
Loading…
Reference in New Issue