[go] Deprecate GoLanguageModule

This commit is contained in:
Andreas Dangel
2023-02-03 14:11:24 +01:00
parent c3b1317a77
commit 016afb96e3
3 changed files with 7 additions and 27 deletions

View File

@@ -18,6 +18,11 @@ This is a {{ site.pmd.release_type }} release.
### API Changes
* The LanguageModule of Go, that only supports CPD execution, has been deprecated. This language
is not fully supported by PMD, so having a language module does not make sense. The functionality of CPD is
not affected by this change. The following class has been deprecated and will be removed with PMD 7.0.0:
* {% jdoc go::lang.go.GoLanguageModule %}
### External Contributions
{% endtocmaker %}

View File

@@ -8,7 +8,9 @@ import net.sourceforge.pmd.lang.BaseLanguageModule;
/**
* Language Module for Go.
* @deprecated There is no full PMD support for go.
*/
@Deprecated
public class GoLanguageModule extends BaseLanguageModule {
/** The name. */

View File

@@ -1,27 +0,0 @@
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd;
import java.util.Arrays;
import java.util.Collection;
import org.junit.runners.Parameterized.Parameters;
import net.sourceforge.pmd.lang.LanguageRegistry;
import net.sourceforge.pmd.lang.LanguageVersion;
import net.sourceforge.pmd.lang.go.GoLanguageModule;
public class LanguageVersionTest extends AbstractLanguageVersionTest {
public LanguageVersionTest(String name, String terseName, String version, LanguageVersion expected) {
super(name, terseName, version, expected);
}
@Parameters
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][] { { GoLanguageModule.NAME, GoLanguageModule.TERSE_NAME, "1",
LanguageRegistry.getLanguage(GoLanguageModule.NAME).getDefaultVersion(), }, });
}
}