Class CheckstyleGrader
java.lang.Object
com.spertus.jacquard.common.Grader
com.spertus.jacquard.checkstylegrader.CheckstyleGrader
A grader that runs checkstyle.
- See Also:
-
Constructor Summary
ConstructorDescriptionCheckstyleGrader
(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 aCallable
through which this grader can be called on multiple targets.getCallableSingleTarget
(Target target) Gets aCallable
through 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:Grader
Gets aCallable
through which this grader can be called on a single target.- Specified by:
getCallableSingleTarget
in classGrader
- Parameters:
target
- the target- Returns:
- a
Callable
through which this grader can be called
-
getCallableMultiTarget
Description copied from class:Grader
Gets aCallable
through 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:
getCallableMultiTarget
in classGrader
- Parameters:
targets
- the targets- Returns:
- a
Callable
through which this grader can be called
-