Uses of Interface
net.sourceforge.pmd.RuleViolation
-
Packages that use RuleViolation Package Description net.sourceforge.pmd This is the PMD programming mistake detector.net.sourceforge.pmd.cache The violation caching system.net.sourceforge.pmd.lang.rule net.sourceforge.pmd.renderers net.sourceforge.pmd.renderers.internal.sarif net.sourceforge.pmd.reporting Logic about reporting: violations, suppression etc. -
-
Uses of RuleViolation in net.sourceforge.pmd
Fields in net.sourceforge.pmd with type parameters of type RuleViolation Modifier and Type Field Description static Comparator<RuleViolation>
RuleViolation. DEFAULT_COMPARATOR
A comparator for rule violations.Methods in net.sourceforge.pmd that return RuleViolation Modifier and Type Method Description RuleViolation
Report.SuppressedViolation. getRuleViolation()
Methods in net.sourceforge.pmd that return types with arguments of type RuleViolation Modifier and Type Method Description List<RuleViolation>
Report. getViolations()
Returns an unmodifiable list of violations that have been recorded until now.Methods in net.sourceforge.pmd with parameters of type RuleViolation Modifier and Type Method Description void
Report. addRuleViolation(RuleViolation violation)
Deprecated.PMD's way of creating a report is internal and may be changed in pmd 7.void
RuleContext. addViolationNoSuppress(RuleViolation rv)
Force the recording of a violation, ignoring the violation suppression mechanism (ViolationSuppressor
).void
Report.ReportBuilderListener. onRuleViolation(RuleViolation violation)
static @Nullable Report.SuppressedViolation
ViolationSuppressor. suppressOrNull(List<ViolationSuppressor> suppressorList, RuleViolation rv, Node node)
Apply a list of suppressors on the violation.@Nullable Report.SuppressedViolation
ViolationSuppressor. suppressOrNull(RuleViolation rv, @NonNull Node node)
Returns aReport.SuppressedViolation
if the given violation is suppressed by this object.Method parameters in net.sourceforge.pmd with type arguments of type RuleViolation Modifier and Type Method Description Report
Report. filterViolations(Predicate<RuleViolation> filter)
Creates a new report taking all the information from this report, but filtering the violations.Constructors in net.sourceforge.pmd with parameters of type RuleViolation Constructor Description SuppressedViolation(RuleViolation rv, ViolationSuppressor suppressor, String userMessage)
Creates a suppressed violation. -
Uses of RuleViolation in net.sourceforge.pmd.cache
Classes in net.sourceforge.pmd.cache that implement RuleViolation Modifier and Type Class Description class
CachedRuleViolation
Deprecated.This is internal API, will be hidden with 7.0.0Methods in net.sourceforge.pmd.cache that return types with arguments of type RuleViolation Modifier and Type Method Description List<RuleViolation>
AbstractAnalysisCache. getCachedViolations(TextDocument sourceFile)
Deprecated.List<RuleViolation>
AnalysisCache. getCachedViolations(TextDocument sourceFile)
Deprecated.Retrieves cached violations for the given file.List<RuleViolation>
NoopAnalysisCache. getCachedViolations(TextDocument sourceFile)
Deprecated.List<RuleViolation>
AnalysisResult. getViolations()
Deprecated.Methods in net.sourceforge.pmd.cache with parameters of type RuleViolation Modifier and Type Method Description void
AnalysisResult. addViolation(RuleViolation ruleViolation)
Deprecated.Method parameters in net.sourceforge.pmd.cache with type arguments of type RuleViolation Modifier and Type Method Description void
AnalysisResult. addViolations(List<RuleViolation> violations)
Deprecated.Constructor parameters in net.sourceforge.pmd.cache with type arguments of type RuleViolation Constructor Description AnalysisResult(long fileChecksum, List<RuleViolation> violations)
Deprecated. -
Uses of RuleViolation in net.sourceforge.pmd.lang.rule
Classes in net.sourceforge.pmd.lang.rule that implement RuleViolation Modifier and Type Class Description class
ParametricRuleViolation
Deprecated.This is internal. -
Uses of RuleViolation in net.sourceforge.pmd.renderers
Method parameters in net.sourceforge.pmd.renderers with type arguments of type RuleViolation Modifier and Type Method Description abstract void
AbstractIncrementingRenderer. renderFileViolations(Iterator<RuleViolation> violations)
Render a series ofRuleViolation
s.void
CodeClimateRenderer. renderFileViolations(Iterator<RuleViolation> violations)
void
CSVRenderer. renderFileViolations(Iterator<RuleViolation> violations)
void
EmacsRenderer. renderFileViolations(Iterator<RuleViolation> violations)
void
HTMLRenderer. renderFileViolations(Iterator<RuleViolation> violations)
void
IDEAJRenderer. renderFileViolations(Iterator<RuleViolation> violations)
void
JsonRenderer. renderFileViolations(Iterator<RuleViolation> violations)
void
SarifRenderer. renderFileViolations(Iterator<RuleViolation> violations)
void
TextPadRenderer. renderFileViolations(Iterator<RuleViolation> violations)
void
TextRenderer. renderFileViolations(Iterator<RuleViolation> violations)
void
VBHTMLRenderer. renderFileViolations(Iterator<RuleViolation> violations)
void
XMLRenderer. renderFileViolations(Iterator<RuleViolation> violations)
-
Uses of RuleViolation in net.sourceforge.pmd.renderers.internal.sarif
Methods in net.sourceforge.pmd.renderers.internal.sarif with parameters of type RuleViolation Modifier and Type Method Description SarifLogBuilder
SarifLogBuilder. add(RuleViolation violation)
-
Uses of RuleViolation in net.sourceforge.pmd.reporting
Methods in net.sourceforge.pmd.reporting with parameters of type RuleViolation Modifier and Type Method Description void
FileAnalysisListener. onRuleViolation(RuleViolation violation)
Handle a new violation (not suppressed).
-