forked from phoedos/pmd
Implement PR feedback
This commit is contained in:
parent
bedb6057de
commit
5897eb70bc
@ -7,8 +7,8 @@
|
||||
<parent>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>pmd</artifactId>
|
||||
<version>6.46.0</version>
|
||||
<relativePath>../</relativePath>
|
||||
<version>6.48.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<build>
|
||||
|
@ -5,7 +5,7 @@
|
||||
package net.sourceforge.pmd.cpd;
|
||||
|
||||
/**
|
||||
* Language implementation for Gherkin
|
||||
* Language implementation for Gherkin.
|
||||
*/
|
||||
public class GherkinLanguage extends AbstractLanguage {
|
||||
|
||||
|
@ -8,10 +8,10 @@ import org.antlr.v4.runtime.CharStream;
|
||||
|
||||
import net.sourceforge.pmd.cpd.token.AntlrTokenFilter;
|
||||
import net.sourceforge.pmd.lang.antlr.AntlrTokenManager;
|
||||
import net.sourceforge.pmd.lang.gherkin.antlr4.GherkinLexer;
|
||||
import net.sourceforge.pmd.lang.gherkin.ast.GherkinLexer;
|
||||
|
||||
/**
|
||||
* The Gherkin Tokenizer
|
||||
* The Gherkin Tokenizer.
|
||||
*/
|
||||
public class GherkinTokenizer extends AntlrTokenizer {
|
||||
|
||||
|
@ -0,0 +1,8 @@
|
||||
/*
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* Contains Gherkin tokenizer and language classes.
|
||||
*/
|
||||
package net.sourceforge.pmd.cpd;
|
@ -1,11 +0,0 @@
|
||||
/*
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* The class {@link net.sourceforge.pmd.lang.gherkin.antlr4.GherkinLexer} will be moved to
|
||||
* package {@code net.sourceforge.pmd.lang.gherkin.ast} with PMD 7.
|
||||
*
|
||||
* <p>All other classes will be removed.
|
||||
*/
|
||||
package net.sourceforge.pmd.lang.gherkin.antlr4;
|
@ -0,0 +1,8 @@
|
||||
/*
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
/**
|
||||
* Contains the Antlr grammar for Gherkin.
|
||||
*/
|
||||
package net.sourceforge.pmd.lang.gherkin.ast;
|
@ -7,15 +7,10 @@ package net.sourceforge.pmd.cpd;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.ExpectedException;
|
||||
|
||||
import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest;
|
||||
|
||||
public class GherkinTokenizerTest extends CpdTextComparisonTest {
|
||||
|
||||
@org.junit.Rule
|
||||
public ExpectedException ex = ExpectedException.none();
|
||||
|
||||
public GherkinTokenizerTest() {
|
||||
super(".feature");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user