Package com.absint.astree
Class FailonSwitch
java.lang.Object
com.absint.astree.FailonSwitch
Helper class for the com.absint.astree.AstreeBuilder.
Stores the project-level settings of the fail-on-switch
that allows the analyzer to fail a Jenkins projects on
- errors
- errors and alarms classified as true code defects by the user
- errors and alarms uncommented by the user
- errors and alarms
- errors, alarms, and flow anomalies
- Author:
- AbsInt Angewandte Informatik GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether the configuration is set to fail a build in case a potential runtime error ("alarm") is reported.boolean
Determines whether the configuration is set to fail a build in case a definite runtime error is reported.boolean
Determines whether the configuration is set to fail a build in case a flow anomaly ("Type D alarm") is reported.Returns the short name for the currently configured/set situations in which the plugin may fail a build.void
-
Constructor Details
-
FailonSwitch
-
-
Method Details
-
setFailon
-
getFailon
Returns the short name for the currently configured/set situations in which the plugin may fail a build.
Valid short names are:- errors
- true-alarms
- uncommented-alarms
- alarms
- flow-anomalies
- Returns:
- java.lang.String
-
failOnErrors
public boolean failOnErrors()Determines whether the configuration is set to fail a build in case a definite runtime error is reported.- Returns:
- boolean
-
failOnAlarms
public boolean failOnAlarms()Determines whether the configuration is set to fail a build in case a potential runtime error ("alarm") is reported.- Returns:
- boolean
-
failOnFlowAnomalies
public boolean failOnFlowAnomalies()Determines whether the configuration is set to fail a build in case a flow anomaly ("Type D alarm") is reported.- Returns:
- boolean
-