forked from phoedos/pmd
Merge branch 'master' into issue-4349-cleanup-deprecations
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
|
||||
package net.sourceforge.pmd.lang.html.rule;
|
||||
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.lang.ast.Node;
|
||||
import net.sourceforge.pmd.lang.html.ast.HtmlVisitor;
|
||||
import net.sourceforge.pmd.lang.rule.AbstractRule;
|
||||
import net.sourceforge.pmd.reporting.RuleContext;
|
||||
|
||||
public abstract class AbstractHtmlRule extends AbstractRule implements HtmlVisitor {
|
||||
|
||||
|
@@ -4,9 +4,9 @@
|
||||
|
||||
package net.sourceforge.pmd.lang.html.rule.bestpractices;
|
||||
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.lang.html.ast.ASTHtmlElement;
|
||||
import net.sourceforge.pmd.lang.html.rule.AbstractHtmlRule;
|
||||
import net.sourceforge.pmd.reporting.RuleContext;
|
||||
|
||||
public class UnnecessaryTypeAttributeRule extends AbstractHtmlRule {
|
||||
|
||||
|
@@ -8,10 +8,10 @@ import java.util.Arrays;
|
||||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.lang.html.ast.ASTHtmlElement;
|
||||
import net.sourceforge.pmd.lang.html.rule.AbstractHtmlRule;
|
||||
import net.sourceforge.pmd.lang.rule.RuleTargetSelector;
|
||||
import net.sourceforge.pmd.reporting.RuleContext;
|
||||
|
||||
public class UseAltAttributeForImagesRule extends AbstractHtmlRule {
|
||||
|
||||
|
@@ -13,7 +13,7 @@ Rules which enforce generally accepted best practices.
|
||||
language="html"
|
||||
since="6.45.0"
|
||||
message="Avoid inline styles"
|
||||
class="net.sourceforge.pmd.lang.rule.XPathRule"
|
||||
class="net.sourceforge.pmd.lang.rule.xpath.XPathRule"
|
||||
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_html_bestpractices.html#avoidinlinestyles">
|
||||
<description>
|
||||
Don't mix content and style. Use separate CSS-files for the style and introduce classes.
|
||||
|
@@ -10,14 +10,14 @@ import java.util.List;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.lang.html.ast.ASTHtmlElement;
|
||||
import net.sourceforge.pmd.lang.html.ast.HtmlParsingHelper;
|
||||
import net.sourceforge.pmd.lang.html.rule.AbstractHtmlRule;
|
||||
import net.sourceforge.pmd.lang.rule.Rule;
|
||||
import net.sourceforge.pmd.lang.rule.xpath.Attribute;
|
||||
import net.sourceforge.pmd.reporting.Report;
|
||||
import net.sourceforge.pmd.reporting.RuleContext;
|
||||
import net.sourceforge.pmd.reporting.RuleViolation;
|
||||
|
||||
class HtmlJavaRuleTest {
|
||||
// from https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.js_props_getter
|
||||
|
@@ -10,14 +10,14 @@ import java.util.List;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import net.sourceforge.pmd.Report;
|
||||
import net.sourceforge.pmd.RuleViolation;
|
||||
import net.sourceforge.pmd.lang.html.ast.ASTHtmlComment;
|
||||
import net.sourceforge.pmd.lang.html.ast.ASTHtmlDocument;
|
||||
import net.sourceforge.pmd.lang.html.ast.ASTHtmlTextNode;
|
||||
import net.sourceforge.pmd.lang.html.ast.HtmlParsingHelper;
|
||||
import net.sourceforge.pmd.lang.rule.XPathRule;
|
||||
import net.sourceforge.pmd.lang.rule.xpath.XPathRule;
|
||||
import net.sourceforge.pmd.lang.rule.xpath.XPathVersion;
|
||||
import net.sourceforge.pmd.reporting.Report;
|
||||
import net.sourceforge.pmd.reporting.RuleViolation;
|
||||
|
||||
class HtmlXPathRuleTest {
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
package net.sourceforge.pmd.lang.html;
|
||||
|
||||
import net.sourceforge.pmd.AbstractRuleSetFactoryTest;
|
||||
import net.sourceforge.pmd.lang.rule.AbstractRuleSetFactoryTest;
|
||||
|
||||
class RuleSetFactoryTest extends AbstractRuleSetFactoryTest {
|
||||
// no additional tests yet
|
||||
|
Reference in New Issue
Block a user