From ba558d34e41764e3f66948f3d83a491f536d7f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Sun, 5 Jan 2020 13:08:57 +0100 Subject: [PATCH] typo --- bin/finder.py | 4 ++-- git_vuln_finder/finder.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/finder.py b/bin/finder.py index 7ac005e..d710c56 100644 --- a/bin/finder.py +++ b/bin/finder.py @@ -83,7 +83,7 @@ def main(): defaultpattern for commit in commits: if isinstance(defaultpattern, typing.Pattern): - ret = find_vuln(commit, pattern=defaultpattern, versbose=args.v) + ret = find_vuln(commit, pattern=defaultpattern, verbose=args.v) if ret: rcommit = ret['commit'] _, potential_vulnerabilities = summary(rcommit, @@ -97,7 +97,7 @@ def main(): found += 1 elif isinstance(defaultpattern, list): for p in defaultpattern: - ret = find_vuln(commit, pattern=p, versbose=args.v) + ret = find_vuln(commit, pattern=p, verbose=args.v) if ret: rcommit = ret['commit'] _, potential_vulnerabilities = summary(rcommit, diff --git a/git_vuln_finder/finder.py b/git_vuln_finder/finder.py index 16ecfb4..3c9be83 100644 --- a/git_vuln_finder/finder.py +++ b/git_vuln_finder/finder.py @@ -78,10 +78,10 @@ def get_patterns(patterns_path=PATTERNS_PATH): return patterns -def find_vuln(commit, pattern, versbose=False): +def find_vuln(commit, pattern, verbose=False): m = pattern.search(commit.message) if m: - if versbose: + if verbose: print("Match found: {}".format(m.group(0)), file=sys.stderr) print(commit.message, file=sys.stderr) print("---", file=sys.stderr)