Pass linters in generated code

This commit is contained in:
Juan Martín Sotuyo Dodero 2024-11-15 11:27:07 -03:00
parent ef3a4cc15e
commit 9d15c900db
5 changed files with 8 additions and 5 deletions

View File

@ -18,6 +18,7 @@ import org.antlr.v4.runtime.tree.TerminalNode;
* @deprecated Since 7.8.0. This class was never intended to be generated. It will be removed with no replacement.
*/
@SuppressWarnings("PMD.UncommentedEmptyMethodBody")
@Deprecated
@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")
public class GherkinBaseListener implements GherkinListener {
@ -334,4 +335,4 @@ import org.antlr.v4.runtime.tree.TerminalNode;
* <p>The default implementation does nothing.</p>
*/
@Override public void visitErrorNode(ErrorNode node) { }
}
}

View File

@ -189,4 +189,4 @@ import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
* {@link #visitChildren} on {@code ctx}.</p>
*/
@Override public T visitText(GherkinParser.TextContext ctx) { return visitChildren(ctx); }
}
}

View File

@ -257,4 +257,4 @@ import org.antlr.v4.runtime.tree.ParseTreeListener;
* @param ctx the parse tree
*/
void exitText(GherkinParser.TextContext ctx);
}
}

View File

@ -6,6 +6,8 @@
// Generated from net/sourceforge/pmd/lang/gherkin/ast/Gherkin.g4 by ANTLR 4.9.3
package net.sourceforge.pmd.lang.gherkin.ast;
// CPD-OFF
import java.util.List;
import org.antlr.v4.runtime.NoViableAltException;
@ -2097,4 +2099,4 @@ import org.antlr.v4.runtime.tree.TerminalNode;
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
}
}
}
}

View File

@ -164,4 +164,4 @@ import org.antlr.v4.runtime.tree.ParseTreeVisitor;
* @return the visitor result
*/
T visitText(GherkinParser.TextContext ctx);
}
}