Package | Description |
---|---|
net.sourceforge.pmd |
This is the PMD programming mistake detector.
|
net.sourceforge.pmd.benchmark | |
net.sourceforge.pmd.cache | |
net.sourceforge.pmd.lang.dfa | |
net.sourceforge.pmd.lang.rule | |
net.sourceforge.pmd.lang.rule.properties | |
net.sourceforge.pmd.lang.rule.stat | |
net.sourceforge.pmd.renderers |
Modifier and Type | Method and Description |
---|---|
Rule |
RuleViolation.getRule()
Get the Rule which identified this violation.
|
Rule |
RuleSets.getRuleByName(String ruleName)
Returns the first Rule found with the given name.
|
Rule |
RuleSet.getRuleByName(String ruleName)
Returns the first Rule found with the given name (case-sensitive).
|
Rule |
Report.RuleConfigurationError.rule()
Gets the wrongly configured rule
|
Modifier and Type | Method and Description |
---|---|
Set<Rule> |
RuleSets.getAllRules()
Return all rules from all rulesets.
|
Collection<Rule> |
RuleSet.getRules()
Returns the actual Collection of rules in this ruleset
|
Modifier and Type | Method and Description |
---|---|
static boolean |
RuleSet.applies(Rule rule,
LanguageVersion languageVersion)
Does the given Rule apply to the given LanguageVersion? If so, the
Language must be the same and be between the minimum and maximums
versions on the Rule.
|
RuleSet |
RuleSetFactory.createSingleRuleRuleSet(Rule rule)
Creates a new RuleSet for a single rule
|
String |
PropertyDescriptor.propertyErrorFor(Rule rule)
A convenience method that returns an error string if the rule holds onto
a property value that has a problem.
|
Modifier and Type | Method and Description |
---|---|
void |
RuleSets.removeDysfunctionalRules(Collection<Rule> collector)
Remove and collect any rules that report problems.
|
void |
RuleSet.removeDysfunctionalRules(Collection<Rule> collector)
Remove and collect any misconfigured rules.
|
Constructor and Description |
---|
Report.RuleConfigurationError(Rule theRule,
String theIssue)
Creates a new configuration error.
|
Modifier and Type | Field and Description |
---|---|
Rule |
RuleDuration.rule |
Constructor and Description |
---|
RuleDuration(long elapsed,
Rule rule) |
Modifier and Type | Method and Description |
---|---|
Rule |
CachedRuleViolation.getRule() |
Rule |
CachedRuleMapper.getRuleForClass(String className)
Finds a rule instance for the given rule class name
|
Modifier and Type | Interface and Description |
---|---|
interface |
DFAGraphRule |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDelegateRule
Base class for Rule implementations which delegate to another Rule instance.
|
class |
AbstractRule
Basic abstract implementation of all parser-independent methods of the Rule
interface.
|
class |
MockRule
This is a Rule implementation which can be used in scenarios where an actual
functional Rule is not needed.
|
class |
RuleReference
This class represents a Rule which is a reference to Rule defined in another
RuleSet.
|
class |
XPathRule
Rule that tries to match an XPath expression against a DOM view of an AST.
|
Modifier and Type | Field and Description |
---|---|
protected Rule |
ParametricRuleViolation.rule |
Modifier and Type | Field and Description |
---|---|
protected Map<RuleSet,List<Rule>> |
AbstractRuleChainVisitor.ruleSetRules
These are all the rules participating in the RuleChain, grouped by
RuleSet.
|
Modifier and Type | Method and Description |
---|---|
Rule |
ParametricRuleViolation.getRule() |
Rule |
AbstractDelegateRule.getRule() |
Modifier and Type | Method and Description |
---|---|
void |
RuleChainVisitor.add(RuleSet ruleSet,
Rule rule)
Add the given rule to the visitor.
|
void |
AbstractRuleChainVisitor.add(RuleSet ruleSet,
Rule rule) |
void |
RuleViolationFactory.addViolation(RuleContext ruleContext,
Rule rule,
Node node,
String message,
int beginLine,
int endLine,
Object[] args) |
void |
AbstractRuleViolationFactory.addViolation(RuleContext ruleContext,
Rule rule,
Node node,
String message,
int beginLine,
int endLine,
Object[] args) |
void |
RuleViolationFactory.addViolation(RuleContext ruleContext,
Rule rule,
Node node,
String message,
Object[] args)
Adds a violation to the report.
|
void |
AbstractRuleViolationFactory.addViolation(RuleContext ruleContext,
Rule rule,
Node node,
String message,
Object[] args) |
protected abstract RuleViolation |
AbstractRuleViolationFactory.createRuleViolation(Rule rule,
RuleContext ruleContext,
Node node,
String message) |
protected abstract RuleViolation |
AbstractRuleViolationFactory.createRuleViolation(Rule rule,
RuleContext ruleContext,
Node node,
String message,
int beginLine,
int endLine) |
void |
AbstractDelegateRule.setRule(Rule rule) |
protected abstract void |
AbstractRuleChainVisitor.visit(Rule rule,
Node node,
RuleContext ctx)
Visit the given rule to the given node.
|
Constructor and Description |
---|
ParametricRuleViolation(Rule theRule,
RuleContext ctx,
T node,
String message) |
RuleReference(Rule theRule,
RuleSetReference theRuleSetReference) |
Modifier and Type | Method and Description |
---|---|
String |
PropertyDescriptorWrapper.propertyErrorFor(Rule rule) |
String |
AbstractProperty.propertyErrorFor(Rule rule)
A convenience method that returns an error string if the rule holds onto
a property value that has a problem.
|
Modifier and Type | Interface and Description |
---|---|
interface |
StatisticalRule
This interface tags a Rule as being a Statistical rule, producing various
metrics from data points.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CodeClimateRule
This interface tags a Rule specifying properties required for the Code
Climate output format.
|
Copyright © 2002–2017 PMD. All rights reserved.