|
17 | 17 | from codeaudit.api_interfaces import filescan |
18 | 18 | from codeaudit.dashboard_reports import SAST_REPORT_CSS |
19 | 19 |
|
20 | | -PYTHON_CODE_AUDIT_TEXT = '<a href="https://github.com/nocomplexity/codeaudit" target="_blank"><b>Python Code Audit</b></a>' |
21 | | -DISCLAIMER_TEXT = ( |
22 | | - '<div class="sast-report"><p><b>Disclaimer:</b> <i>This SAST tool ' |
23 | | - + PYTHON_CODE_AUDIT_TEXT |
24 | | - + " provides a powerful, automatic security analysis for Python source code. However, it's not a substitute for human review in combination with business knowledge. Undetected vulnerabilities may still exist.</i></p></div>" |
25 | | -) |
| 20 | +# PYTHON_CODE_AUDIT_TEXT = '<a href="https://github.com/nocomplexity/codeaudit" target="_blank"><b>Python Code Audit</b></a>' |
| 21 | +# DISCLAIMER_TEXT = ( |
| 22 | +# '<div class="sast-report"><p><b>Disclaimer:</b> <i>This SAST tool ' |
| 23 | +# + PYTHON_CODE_AUDIT_TEXT |
| 24 | +# + " provides a powerful, automatic security analysis for Python source code. However, it's not a substitute for human review in combination with business knowledge. Undetected vulnerabilities may still exist.</i></p></div>" |
| 25 | +# ) |
26 | 26 |
|
27 | 27 | NOSEC_WARNING = '<div class="sast-report"><p><b>INFO</b>: The --nosec flag is active. Security findings with in-line suppressions will be excluded from the report.</p></div>' |
28 | 28 |
|
29 | | -HTML_FOOTER = ( |
30 | | - '<div class="sast-report"><p><hr>' |
31 | | - + 'Check the <a href="https://nocomplexity.com/documents/codeaudit/intro.html" ' |
32 | | - + 'target="_blank">documentation</a> for help on found issues.<br>' |
33 | | - + "</p></div>" |
34 | | -) |
| 29 | +# HTML_FOOTER = ( |
| 30 | +# '<div class="sast-report"><p><hr>' |
| 31 | +# + 'Check the <a href="https://nocomplexity.com/documents/codeaudit/intro.html" ' |
| 32 | +# + 'target="_blank">documentation</a> for help on found issues.<br>' |
| 33 | +# + "</p></div>" |
| 34 | +# ) |
35 | 35 |
|
36 | 36 |
|
37 | 37 | def ci_scan(input_path, output="text", nosec=True): |
@@ -279,7 +279,7 @@ def safe_line(x): |
279 | 279 | html += "</tbody></table>" |
280 | 280 | html += "</details><br>" |
281 | 281 | html += "</div>" |
282 | | - html += DISCLAIMER_TEXT |
283 | | - html += HTML_FOOTER |
| 282 | + # html += DISCLAIMER_TEXT |
| 283 | + # html += HTML_FOOTER |
284 | 284 |
|
285 | 285 | return html, 1 |
0 commit comments