2.8. html_report module

GNAThub plug-in for the generation of a standalone rich HTML report.

It exports the HTMLReport class which implements the GNAThub.Plugin interface. This allows GNAThub’s plug-in scanner to automatically find this module and load it as part of the GNAThub default execution.

class html_report.HTMLReport[source]

Bases: Plugin, Reporter

HTMLReport plugin for GNAThub.

copy_contents(src, dstfile)[source]
property name

Return the name of the tool.

Returns:

the tool name

Return type:

str

property output_dir

Return the path to the directory where to generate the HTML report.

Returns:

the full path to the output directory

Return type:

str

output_json(src, dst)[source]
output_xml(src, dst)[source]
report()[source]

Generate JSON-encoded representation of the data collected.

verbose_info(message)[source]
property webapp_dir

Return the path to the webapp directory.

This directory contains the generic parts of the web application.

Return type:

str