Add comments and update release notes
This commit is contained in:
@ -18,6 +18,12 @@ This is a {{ site.pmd.release_type }} release.
|
|||||||
|
|
||||||
### API Changes
|
### API Changes
|
||||||
|
|
||||||
|
#### Deprecated APIs
|
||||||
|
|
||||||
|
* Implementations of {% jdoc core::lang.rule.RuleViolationFactory %} in each language module, eg {% jdoc java::lang.java.rule.JavaRuleViolationFactory %}.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### External Contributions
|
### External Contributions
|
||||||
|
|
||||||
{% endtocmaker %}
|
{% endtocmaker %}
|
||||||
|
@ -10,7 +10,11 @@ import net.sourceforge.pmd.RuleViolation;
|
|||||||
import net.sourceforge.pmd.annotation.InternalApi;
|
import net.sourceforge.pmd.annotation.InternalApi;
|
||||||
import net.sourceforge.pmd.lang.ast.Node;
|
import net.sourceforge.pmd.lang.ast.Node;
|
||||||
import net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory;
|
import net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory;
|
||||||
|
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated See {@link RuleViolationFactory}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class ApexRuleViolationFactory extends AbstractRuleViolationFactory {
|
public final class ApexRuleViolationFactory extends AbstractRuleViolationFactory {
|
||||||
|
@ -6,11 +6,16 @@ package net.sourceforge.pmd.lang.rule;
|
|||||||
|
|
||||||
import net.sourceforge.pmd.Rule;
|
import net.sourceforge.pmd.Rule;
|
||||||
import net.sourceforge.pmd.RuleContext;
|
import net.sourceforge.pmd.RuleContext;
|
||||||
|
import net.sourceforge.pmd.lang.LanguageVersionHandler;
|
||||||
import net.sourceforge.pmd.lang.ast.Node;
|
import net.sourceforge.pmd.lang.ast.Node;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class handles of producing a Language specific RuleViolation and adding
|
* This class handles of producing a Language specific RuleViolation and adding
|
||||||
* to a Report.
|
* to a Report.
|
||||||
|
*
|
||||||
|
* <p>Since PMD 6.21.0, implementations of this interface are considered internal
|
||||||
|
* API and hence deprecated. Clients should exclusively use this interface and obtain
|
||||||
|
* instances through {@link LanguageVersionHandler#getRuleViolationFactory()}.
|
||||||
*/
|
*/
|
||||||
public interface RuleViolationFactory {
|
public interface RuleViolationFactory {
|
||||||
/**
|
/**
|
||||||
|
@ -13,6 +13,9 @@ import net.sourceforge.pmd.lang.java.ast.JavaNode;
|
|||||||
import net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory;
|
import net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory;
|
||||||
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated See {@link RuleViolationFactory}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class JavaRuleViolationFactory extends AbstractRuleViolationFactory {
|
public final class JavaRuleViolationFactory extends AbstractRuleViolationFactory {
|
||||||
|
@ -12,7 +12,11 @@ import net.sourceforge.pmd.lang.ast.Node;
|
|||||||
import net.sourceforge.pmd.lang.ecmascript.ast.EcmascriptNode;
|
import net.sourceforge.pmd.lang.ecmascript.ast.EcmascriptNode;
|
||||||
import net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory;
|
import net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory;
|
||||||
import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
|
import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
|
||||||
|
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated See {@link RuleViolationFactory}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class EcmascriptRuleViolationFactory extends AbstractRuleViolationFactory {
|
public final class EcmascriptRuleViolationFactory extends AbstractRuleViolationFactory {
|
||||||
|
@ -14,6 +14,9 @@ import net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory;
|
|||||||
import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
|
import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
|
||||||
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated See {@link RuleViolationFactory}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class JspRuleViolationFactory extends AbstractRuleViolationFactory {
|
public final class JspRuleViolationFactory extends AbstractRuleViolationFactory {
|
||||||
|
@ -13,6 +13,9 @@ import net.sourceforge.pmd.lang.rule.AbstractRuleViolationFactory;
|
|||||||
import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
|
import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
|
||||||
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated See {@link RuleViolationFactory}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class PLSQLRuleViolationFactory extends AbstractRuleViolationFactory {
|
public final class PLSQLRuleViolationFactory extends AbstractRuleViolationFactory {
|
||||||
|
@ -14,7 +14,7 @@ import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
|
|||||||
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A RuleViolationFactory for Scala.
|
* @deprecated See {@link RuleViolationFactory}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InternalApi
|
@InternalApi
|
||||||
|
@ -14,6 +14,9 @@ import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
|
|||||||
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
||||||
import net.sourceforge.pmd.lang.vf.ast.VfNode;
|
import net.sourceforge.pmd.lang.vf.ast.VfNode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated See {@link RuleViolationFactory}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class VfRuleViolationFactory extends AbstractRuleViolationFactory {
|
public final class VfRuleViolationFactory extends AbstractRuleViolationFactory {
|
||||||
|
@ -14,6 +14,9 @@ import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
|
|||||||
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
||||||
import net.sourceforge.pmd.lang.vm.ast.AbstractVmNode;
|
import net.sourceforge.pmd.lang.vm.ast.AbstractVmNode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated See {@link RuleViolationFactory}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class VmRuleViolationFactory extends AbstractRuleViolationFactory {
|
public final class VmRuleViolationFactory extends AbstractRuleViolationFactory {
|
||||||
|
@ -14,6 +14,9 @@ import net.sourceforge.pmd.lang.rule.ParametricRuleViolation;
|
|||||||
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
import net.sourceforge.pmd.lang.rule.RuleViolationFactory;
|
||||||
import net.sourceforge.pmd.lang.xml.ast.XmlNode;
|
import net.sourceforge.pmd.lang.xml.ast.XmlNode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated See {@link RuleViolationFactory}
|
||||||
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@InternalApi
|
@InternalApi
|
||||||
public final class XmlRuleViolationFactory extends AbstractRuleViolationFactory {
|
public final class XmlRuleViolationFactory extends AbstractRuleViolationFactory {
|
||||||
|
Reference in New Issue
Block a user