Skip to content

Commit 77cb0e6

Browse files
committed
ignore non-zero return from lint
1 parent c97ed93 commit 77cb0e6

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

dist/index.js

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/grading/builders/GradleBuilder.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ export default class GradleBuilder extends Builder {
3434
360,
3535
true
3636
)
37-
if (returnCode !== 0 && returnCode !== 130) {
38-
throw new Error(
39-
`Unable to invoke Gradle checkstyle task. Here is the output that Gradle produced on the grading server: ${output}`
40-
)
41-
}
37+
this.logger.log(
38+
'hidden',
39+
`Gradle lint checkstyle return code: ${returnCode}, output: ${output}`
40+
)
4241
return parseLintingReports(
4342
`${this.gradingDir}/build/reports/checkstyle/*.xml`,
4443
this.logger

0 commit comments

Comments
 (0)