[scala] Remove deprecated module pmd-scala, consolidate packages
This commit is contained in:
parent
3a7460de29
commit
9c5cef2566
@ -338,6 +338,9 @@ in the migration guide for details.
|
||||
* {%jdoc lang-test::lang.test.cpd.CpdTextComparisonTest %} (moved from `net.sourceforge.pmd.cpd.test.CpdTextComparisonTest`)
|
||||
* {%jdoc lang-test::lang.test.ast.BaseTreeDumpTest %} (moved from `net.sourceforge.pmd.lang.ast.test.BaseTreeDumpTest`)
|
||||
* Any many other types have been moved from `net.sourceforge.pmd.lang.ast.test` to `net.sourceforge.pmd.lang.test`.
|
||||
* pmd-scala
|
||||
* {%jdoc scala::lang.scala.cpd.ScalaCpdLexer %} (moved from `net.sourceforge.pmd.lang.scala.cpd.ScalaCpdLexer`)
|
||||
* {%jdoc scala::lang.scala.cpd.ScalaTokenAdapter %} (moved from `net.sourceforge.pmd.lang.scala.cpd.ScalaTokenAdapter`)
|
||||
|
||||
**Internalized classes and interfaces and methods**
|
||||
|
||||
@ -668,6 +671,7 @@ The annotation `@DeprecatedUntil700` has been removed.
|
||||
* {%jdoc !!plsql::lang.plsql.ast.PLSQLNode %} - method `jjtAccept()` has been removed.
|
||||
Use {%jdoc core::lang.ast.Node#acceptVisitor(core::lang.ast.AstVisitor,P) %} instead.
|
||||
* pmd-scala
|
||||
* The maven module `pmd-scala` has been removed. Use `pmd-scala_2.13` or `pmd-scala_2.12` instead.
|
||||
* {%jdoc !!scala::lang.scala.ast.ScalaNode %}
|
||||
* Method `accept()` has been removed. Use {%jdoc core::lang.ast.Node#acceptVisitor(core::lang.ast.AstVisitor,P) %} instead.
|
||||
* Method `getNode()` has been removed. The underlying node is only available in AST nodes, but not in rule implementations.
|
||||
|
@ -5,7 +5,7 @@
|
||||
package net.sourceforge.pmd.lang.scala;
|
||||
|
||||
import net.sourceforge.pmd.cpd.CpdLexer;
|
||||
import net.sourceforge.pmd.cpd.ScalaCpdLexer;
|
||||
import net.sourceforge.pmd.lang.scala.cpd.ScalaCpdLexer;
|
||||
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
|
||||
import net.sourceforge.pmd.lang.LanguageRegistry;
|
||||
import net.sourceforge.pmd.lang.impl.SimpleLanguageModuleBase;
|
||||
|
@ -2,10 +2,12 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.cpd;
|
||||
package net.sourceforge.pmd.lang.scala.cpd;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import net.sourceforge.pmd.cpd.CpdLexer;
|
||||
import net.sourceforge.pmd.cpd.TokenFactory;
|
||||
import net.sourceforge.pmd.cpd.impl.BaseTokenFilter;
|
||||
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
|
||||
import net.sourceforge.pmd.lang.LanguageVersion;
|
@ -2,7 +2,7 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.cpd;
|
||||
package net.sourceforge.pmd.lang.scala.cpd;
|
||||
|
||||
import net.sourceforge.pmd.lang.ast.GenericToken;
|
||||
import net.sourceforge.pmd.lang.document.Chars;
|
@ -2,15 +2,15 @@
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.cpd;
|
||||
package net.sourceforge.pmd.lang.scala.cpd;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import net.sourceforge.pmd.lang.test.cpd.CpdTextComparisonTest;
|
||||
import net.sourceforge.pmd.lang.ast.LexException;
|
||||
import net.sourceforge.pmd.lang.scala.ScalaLanguageModule;
|
||||
import net.sourceforge.pmd.lang.test.cpd.CpdTextComparisonTest;
|
||||
|
||||
class ScalaCpdLexerTest extends CpdTextComparisonTest {
|
||||
|
||||
@ -18,11 +18,6 @@ class ScalaCpdLexerTest extends CpdTextComparisonTest {
|
||||
super(ScalaLanguageModule.getInstance(), ".scala");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getResourcePrefix() {
|
||||
return "../lang/scala/cpd/testdata";
|
||||
}
|
||||
|
||||
@Test
|
||||
void testSample() {
|
||||
doTest("sample-LiftActor");
|
@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>pmd-scala</artifactId>
|
||||
<name>PMD Scala - Transitional package (deprecated)</name>
|
||||
<description>This is deprecated, use pmd-scala_2.13 directly</description>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>net.sourceforge.pmd</groupId>
|
||||
<artifactId>pmd</artifactId>
|
||||
<version>7.0.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>pmd-scala_2.13</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
1
pom.xml
1
pom.xml
@ -1275,7 +1275,6 @@
|
||||
<module>pmd-plsql</module>
|
||||
<module>pmd-python</module>
|
||||
<module>pmd-ruby</module>
|
||||
<module>pmd-scala</module> <!-- deprecated -->
|
||||
<module>pmd-scala-modules/pmd-scala-common</module>
|
||||
<module>pmd-scala-modules/pmd-scala_2.13</module>
|
||||
<module>pmd-scala-modules/pmd-scala_2.12</module>
|
||||
|
Loading…
x
Reference in New Issue
Block a user