We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f56f92 commit 0bb196aCopy full SHA for 0bb196a
src/chalkbox/java/checkstyle/Checkstyle.java
@@ -199,10 +199,10 @@ public Collection run(Collection collection) {
199
// Subtract 2 for header/footer lines.
200
int numViolations = Math.max(0, checkstyleOutput.split("\n").length - 2);
201
202
- int grade = Math.max(0, 10 - numViolations);
+ int grade = Math.max(0, options.weighting - numViolations);
203
204
result.set("score", grade);
205
- result.set("max_score", 10);
+ result.set("max_score", options.weighting);
206
207
String formattedOutput = Arrays.stream(checkstyleOutput.split("\n"))
208
.filter(n -> !n.contains("Starting audit") && !n.contains("Audit done"))
0 commit comments