Closed elliVM closed 6 days ago
Describe the bug github actions gives build error because if incorrect syntax
Expected behavior there should be no spotless errors
How to reproduce see failed github actions run in repo
Screenshots
Error: Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.30.0:check (default) on project pth_10: The following files had format violations: Error: src/main/java/com/teragrep/pth10/ast/commands/evalstatement/EvalStatement.java Error: @@ -49,7 +49,6 @@ Error: import·com.teragrep.pth10.ast.TextString; Error: import·com.teragrep.pth10.ast.UnquotedText; Error: import·com.teragrep.pth10.ast.bo.*; Error: -import·com.teragrep.pth10.ast.bo.Token.Type; Error: import·com.teragrep.pth10.ast.commands.evalstatement.UDFs.*; Error: import·com.teragrep.pth10.steps.eval.EvalStep; Error: import·com.teragrep.pth_03.antlr.DPLLexer; Error: @@ -191,11 +190,11 @@ Error: ········} Error: ········else·if·(ctx.EVAL_LANGUAGE_MODE_AND()·!=·null)·{ Error: ············col·=·leftSide.getColumn().and(rightSide.getColumn()); Error: -········}·else·{ Error: +········} Error: +········else·{ Error: ············throw·new·IllegalArgumentException("Unexpected·operation·in·logic·statement:·"·+·ctx.getText()); Error: ········} Error: Error: - Error: ········final·ColumnNode·rv·=·new·ColumnNode(col); Error: ········LOGGER.debug("·EvalLogicStatement(Catalyst)·generated=<{}>·class=<{}>",·rv,·rv.getClass().getName()); Error: ········return·rv; Error: src/main/java/com/teragrep/pth10/ast/commands/transformstatement/WhereTransformation.java Error: @@ -106,7 +106,6 @@ Error: ············} Error: ········} Error: Error: - Error: ········Node·n·=·evalStatement.visit(ctx.evalStatement()); Error: ········String·sql·=·null; Error: ········if·(n·instanceof·ColumnNode)·{ Error: Run 'mvn spotless:apply' to fix these violations.
Software version github actions since commit 4a46374ac86b58b95c75f70cf1087abf33cd711d
4a46374ac86b58b95c75f70cf1087abf33cd711d
Additional context error suggests running mvn spotless:apply should fix issue
mvn spotless:apply
Describe the bug github actions gives build error because if incorrect syntax
Expected behavior there should be no spotless errors
How to reproduce see failed github actions run in repo
Screenshots
Software version github actions since commit
4a46374ac86b58b95c75f70cf1087abf33cd711d
Additional context error suggests running
mvn spotless:apply
should fix issue