Small fix for log formatting 59/41059/1
authorlhinds <lhinds@redhat.com>
Tue, 5 Sep 2017 10:16:33 +0000 (11:16 +0100)
committerlhinds <lhinds@redhat.com>
Tue, 5 Sep 2017 10:16:33 +0000 (11:16 +0100)
A new line was missing on the content logs that was spoiling
output to .reports/

Change-Id: I2748c2848debc1fa850fc5ce27d71cbaa5e4f78f
Signed-off-by: lhinds <lhinds@redhat.com>
anteater/src/patch_scan.py

index ba0acdf..083639f 100644 (file)
@@ -139,9 +139,9 @@ def scan_patch(project, patch_file, binary_list, file_audit_list,
                                               format(patch_file))
                             gate_report.write('Flagged Content: {0}'.
                                               format(line))
-                            gate_report.write('Matched Regular Exp: {0}'.
+                            gate_report.write('Matched Regular Exp: {0}\n'.
                                               format(regex))
-                            gate_report.write('Rationale: {0}'.
+                            gate_report.write('Rationale: {0}\n'.
                                               format(desc.rstrip()))
             # Run license check
             licence_check(project, licence_ext, licence_ignore, patch_file)