Class CheckstyleGrader
java.lang.Object
com.spertus.jacquard.common.Grader
com.spertus.jacquard.checkstylegrader.CheckstyleGrader
A grader that runs checkstyle.
- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionCheckstyleGrader(String ruleFile, double penalty, double maxPoints) Creates a checkstyle grader.CheckstyleGrader(String name, String ruleFile, double penalty, double maxPoints) Creates a checkstyle grader. - 
Method Summary
Modifier and TypeMethodDescriptiongetCallableMultiTarget(Target... targets) Gets aCallablethrough which this grader can be called on multiple targets.getCallableSingleTarget(Target target) Gets aCallablethrough which this grader can be called on a single target.Methods inherited from class com.spertus.jacquard.common.Grader
grade, grade, gradeAll, makeExceptionResult, makeExceptionResultList, makeFailureResult, makeFailureResultList, makePartialCreditResult, makeSuccessResult, makeSuccessResultList 
- 
Constructor Details
- 
CheckstyleGrader
Creates a checkstyle grader.- Parameters:
 name- the name of the graderruleFile- the path to the rule filepenalty- the penalty per violationmaxPoints- the maximum number of points if no violations occur
 - 
CheckstyleGrader
Creates a checkstyle grader.- Parameters:
 ruleFile- the path to the rule filepenalty- the penalty per violationmaxPoints- the maximum number of points if no violations occur
 
 - 
 - 
Method Details
- 
getCallableSingleTarget
Description copied from class:GraderGets aCallablethrough which this grader can be called on a single target.- Specified by:
 getCallableSingleTargetin classGrader- Parameters:
 target- the target- Returns:
 - a 
Callablethrough which this grader can be called 
 - 
getCallableMultiTarget
Description copied from class:GraderGets aCallablethrough which this grader can be called on multiple targets. The default implementation just appends the results of successive calls toGrader.getCallableSingleTarget(Target), but subclasses may provide their own implementations to handle multiple targets specially.- Overrides:
 getCallableMultiTargetin classGrader- Parameters:
 targets- the targets- Returns:
 - a 
Callablethrough which this grader can be called 
 
 -