aboutsummaryrefslogtreecommitdiffstats
path: root/anteater/src/project_scan.py
diff options
context:
space:
mode:
authorlhinds <lhinds@redhat.com>2017-08-21 13:41:59 +0100
committerlhinds <lhinds@redhat.com>2017-08-21 13:41:59 +0100
commitc092eb8c93f0d9fb5f343ee9f909f536355e3aaa (patch)
tree6091ade521ac0ce915282bc58b4d39197382c43d /anteater/src/project_scan.py
parent0d0bdddb062d4e93cfa0ed025dfed1a6ff65df9d (diff)
Incorrect indent
gate report function incorrectly indented Change-Id: Id1b840847c7ae4d731cc3e80c93a1497ac963a88 Signed-off-by: lhinds <lhinds@redhat.com>
Diffstat (limited to 'anteater/src/project_scan.py')
-rw-r--r--anteater/src/project_scan.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/anteater/src/project_scan.py b/anteater/src/project_scan.py
index 3c37621..411e47f 100644
--- a/anteater/src/project_scan.py
+++ b/anteater/src/project_scan.py
@@ -104,21 +104,21 @@ def scan_file(project_dir, project, binary_list, file_audit_list,
logger.error('Flagged Content: %s', line.rstrip())
logger.error('Matched Regular Exp: %s', regex)
logger.error('Rationale: %s', desc.rstrip())
- with open(reports_dir + "contents-" + project + ".log",
- "a") \
- as gate_report:
- gate_report. \
- write('File contains violation: {0}\n'.
- format(full_path))
- gate_report. \
- write('Flagged Content: {0}'.
- format(line))
- gate_report. \
- write('Matched Regular Exp: {0}'.
- format(regex))
- gate_report. \
- write('Rationale: {0}\n'.
- format(desc.rstrip()))
+ with open(reports_dir + "contents-" + project + ".log",
+ "a") \
+ as gate_report:
+ gate_report. \
+ write('File contains violation: {0}\n'.
+ format(full_path))
+ gate_report. \
+ write('Flagged Content: {0}'.
+ format(line))
+ gate_report. \
+ write('Matched Regular Exp: {0}'.
+ format(regex))
+ gate_report. \
+ write('Rationale: {0}\n'.
+ format(desc.rstrip()))
else:
# Check if Binary is whitelisted
hashlist = get_lists.GetLists()