2.9. sonar_config module

GNAThub plug-in for the generation of SonarQube Scanner configuration file.

It exports the SonarConfig 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 sonar_config.SonarConfig[source]

Bases: Plugin, Runner

SonarConfig plugin for GNAThub.

property name

Return the name of the tool.

Returns:

the tool name

Return type:

str

run()[source]

Generate SonarQube Scanner configuration file.

setup()[source]

Called prior to a call to Plugin.execute().

This is where environment setup should be done to ensure a correct execution of the tool.