Class ProcedureCyclomaticComplexityExceededCondition
- java.lang.Object
-
- org.jenkinsci.plugins.codesonar.conditions.Condition
-
- org.jenkinsci.plugins.codesonar.conditions.ProcedureCyclomaticComplexityExceededCondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcedureCyclomaticComplexityExceededCondition.DescriptorImpl
-
Field Summary
-
Fields inherited from class org.jenkinsci.plugins.codesonar.conditions.Condition
CURRENT_BUILD_DATA_NOT_AVAILABLE, DATA_LOADER_EMPTY_RESPONSE, PREVIOUS_BUILD_DATA_NOT_AVAILABLE
-
-
Constructor Summary
Constructors Constructor Description ProcedureCyclomaticComplexityExceededCondition(int maxCyclomaticComplexity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxCyclomaticComplexity()
String
getWarrantedResult()
void
setMaxCyclomaticComplexity(int maxCyclomaticComplexity)
void
setWarrantedResult(String warrantedResult)
hudson.model.Result
validate(CodeSonarHubAnalysisDataLoader current, CodeSonarHubAnalysisDataLoader previous, hudson.Launcher launcher, hudson.model.TaskListener listener, CodeSonarLogger csLogger)
-
Methods inherited from class org.jenkinsci.plugins.codesonar.conditions.Condition
describeResult, getAll, getDescriptor, registerResult
-
-
-
-
Method Detail
-
getMaxCyclomaticComplexity
public int getMaxCyclomaticComplexity()
-
setMaxCyclomaticComplexity
@DataBoundSetter public void setMaxCyclomaticComplexity(int maxCyclomaticComplexity)
-
getWarrantedResult
public String getWarrantedResult()
-
setWarrantedResult
@DataBoundSetter public void setWarrantedResult(String warrantedResult)
-
validate
public hudson.model.Result validate(CodeSonarHubAnalysisDataLoader current, CodeSonarHubAnalysisDataLoader previous, hudson.Launcher launcher, hudson.model.TaskListener listener, CodeSonarLogger csLogger) throws CodeSonarPluginException
- Specified by:
validate
in classCondition
- Throws:
CodeSonarPluginException
-
-