public class DefaultCheckstyleRule extends Object implements AggregatableRule<Integer>
Constructor and Description |
---|
DefaultCheckstyleRule(int pointsForAddingAWarning,
int pointsForRemovingAWarning) |
Modifier and Type | Method and Description |
---|---|
RuleResult<?> |
aggregate(Collection<RuleResult<Integer>> results)
Aggregates several rule results calculated by the same rule into one.
|
RuleResult<Integer> |
evaluate(hudson.model.AbstractBuild<?,?> build)
Evaluate the build and return the points for it
|
RuleResult<Integer> |
evaluate(hudson.model.AbstractBuild<?,?> previousBuild,
hudson.model.AbstractBuild<?,?> build)
Evaluates the rule for the current build compared to a previous build.
|
String |
getName()
Returns the name of the rule
|
public DefaultCheckstyleRule(int pointsForAddingAWarning, int pointsForRemovingAWarning)
public RuleResult<?> aggregate(Collection<RuleResult<Integer>> results)
AggregatableRule
aggregate
in interface AggregatableRule<Integer>
public RuleResult<Integer> evaluate(hudson.model.AbstractBuild<?,?> previousBuild, hudson.model.AbstractBuild<?,?> build)
AggregatableRule
evaluate
in interface AggregatableRule<Integer>
previousBuild
- the previous build with usable results (may be null!)build
- the current build (may be null!)public RuleResult<Integer> evaluate(hudson.model.AbstractBuild<?,?> build)
Rule
evaluate
in interface AggregatableRule<Integer>
evaluate
in interface Rule
build
- build to calculate points forCopyright © 2004-2015. All Rights Reserved.