2.6. gnatmetric module
GNAThub plug-in for the GNATmetric and LALmetric command-line tool.
It exports the GNATmetric 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 gnatmetric.GNATmetric[source]
Bases:
Plugin
,Runner
,Reporter
GNATmetric & LALmetric plugin for GNAThub.
- RANKING = 2
- VALID_EXIT_CODES = (0, 1)
- property name
Return the name of the tool.
- Returns:
the tool name
- Return type:
str
- parse_config(tree)[source]
Parse the config block to retrieve the names to be displayed for each rule.