Package | Description |
---|---|
net.sourceforge.pmd |
This is the PMD programming mistake detector.
|
net.sourceforge.pmd.cache | |
net.sourceforge.pmd.lang.dfa.report | |
net.sourceforge.pmd.lang.rule | |
net.sourceforge.pmd.renderers |
Modifier and Type | Method and Description |
---|---|
RuleViolation |
Report.SuppressedViolation.getRuleViolation() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<RuleViolation> |
Report.iterator() |
java.util.Iterator<RuleViolation> |
Report.treeIterator()
Returns an iteration over the reported violations.
|
Modifier and Type | Method and Description |
---|---|
void |
Report.addRuleViolation(RuleViolation violation)
Adds a new rule violation to the report and notify the listeners.
|
int |
RuleViolationComparator.compare(RuleViolation r1,
RuleViolation r2) |
void |
ThreadSafeReportListener.ruleViolationAdded(RuleViolation ruleViolation)
A new violation has been found.
|
Constructor and Description |
---|
SuppressedViolation(RuleViolation rv,
boolean isNOPMD,
java.lang.String userMessage)
Creates a suppressed violation.
|
Modifier and Type | Class and Description |
---|---|
class |
CachedRuleViolation
A
RuleViolation implementation that is immutable, and therefore cache friendly |
Modifier and Type | Method and Description |
---|---|
java.util.List<RuleViolation> |
NoopAnalysisCache.getCachedViolations(java.io.File sourceFile) |
java.util.List<RuleViolation> |
AnalysisCache.getCachedViolations(java.io.File sourceFile)
Retrieves cached violations for the given file.
|
java.util.List<RuleViolation> |
AbstractAnalysisCache.getCachedViolations(java.io.File sourceFile) |
java.util.List<RuleViolation> |
AnalysisResult.getViolations() |
Modifier and Type | Method and Description |
---|---|
void |
AnalysisResult.addViolation(RuleViolation ruleViolation) |
void |
NoopAnalysisCache.ruleViolationAdded(RuleViolation ruleViolation) |
void |
AbstractAnalysisCache.ruleViolationAdded(RuleViolation ruleViolation) |
Modifier and Type | Method and Description |
---|---|
void |
AnalysisResult.addViolations(java.util.List<RuleViolation> violations) |
Constructor and Description |
---|
AnalysisResult(long fileChecksum,
java.util.List<RuleViolation> violations) |
Modifier and Type | Method and Description |
---|---|
RuleViolation |
ViolationNode.getRuleViolation() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<RuleViolation> |
ReportTree.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
ReportTree.addRuleViolation(RuleViolation violation)
Adds the RuleViolation to the tree.
|
Constructor and Description |
---|
ViolationNode(RuleViolation violation) |
Modifier and Type | Class and Description |
---|---|
class |
ParametricRuleViolation<T extends Node> |
Modifier and Type | Method and Description |
---|---|
protected abstract RuleViolation |
AbstractRuleViolationFactory.createRuleViolation(Rule rule,
RuleContext ruleContext,
Node node,
java.lang.String message) |
protected abstract RuleViolation |
AbstractRuleViolationFactory.createRuleViolation(Rule rule,
RuleContext ruleContext,
Node node,
java.lang.String message,
int beginLine,
int endLine) |
Modifier and Type | Method and Description |
---|---|
void |
XMLRenderer.renderFileViolations(java.util.Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
void |
VBHTMLRenderer.renderFileViolations(java.util.Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
void |
TextRenderer.renderFileViolations(java.util.Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
void |
TextPadRenderer.renderFileViolations(java.util.Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
void |
IDEAJRenderer.renderFileViolations(java.util.Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
void |
HTMLRenderer.renderFileViolations(java.util.Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
void |
EmacsRenderer.renderFileViolations(java.util.Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
void |
CodeClimateRenderer.renderFileViolations(java.util.Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
void |
CSVRenderer.renderFileViolations(java.util.Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
abstract void |
AbstractIncrementingRenderer.renderFileViolations(java.util.Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
Copyright © 2002–2017 PMD. All rights reserved.