Represents a full set of quality metrics that should be enforced upon a codebase. More...
Inheritance diagram for QualitySuite:Public Member Functions | |
| def | __init__ |
| def | run |
| Runs the quality suite with the provided configuration on the provided quality report. More... | |
| def | add_suite |
| Adds a quality suite to the vigilance registry. More... | |
| def | available_suites |
| Returns a list of all available quality suite names. More... | |
| def | get_suite |
Returns the QualitySuite associated with key. More... | |
Public Attributes | |
| suiteType | |
| reportParser | |
| constraints | |
| configurationParser | |
Static Public Attributes | |
| dictionary | Suites = {} |
Represents a full set of quality metrics that should be enforced upon a codebase.
The QualitySuite consists of a combination of the lower-level vigilance concepts:
| def __init__ | ( | self, | |
| suiteType, | |||
| parser, | |||
| constraints, | |||
| configurations | |||
| ) |
| def add_suite | ( | cls, | |
| key, | |||
| parser, | |||
| constraints, | |||
| configurations | |||
| ) |
Adds a quality suite to the vigilance registry.
This suite will be available via the vigilance command line utility.
| cls | |
| key | The string identifier that should be used to access the quality suite. |
| parser | A vigilance.parser.Parser instance. |
| constraints | A dictionary mapping constraint labels to their corresponding class objects. |
| configurations | A dictionary mapping configuration keys to the corresponding class objects. |
| ValueError | if key is already in use. |
| def available_suites | ( | cls | ) |
Returns a list of all available quality suite names.
| def get_suite | ( | cls, | |
| key | |||
| ) |
Returns the QualitySuite associated with key.
| def run | ( | self, | |
| constraints, | |||
| report | |||
| ) |
Runs the quality suite with the provided configuration on the provided quality report.
| constraints | A dictionary containing the configured constraints for the suite. |
| report | The string contents of the quality report. |
| vigilance.error.QualityViolationsDetected |
| configurationParser |
| constraints |
| reportParser |
|
static |
| suiteType |