Package org.apache.maven.plugins.pmd
Class PmdCollectingRenderer
java.lang.Object
net.sourceforge.pmd.properties.AbstractPropertySource
net.sourceforge.pmd.renderers.AbstractRenderer
org.apache.maven.plugins.pmd.PmdCollectingRenderer
- All Implemented Interfaces:
net.sourceforge.pmd.properties.PropertySource
,net.sourceforge.pmd.renderers.Renderer
@Deprecated
public class PmdCollectingRenderer
extends net.sourceforge.pmd.renderers.AbstractRenderer
Deprecated.
not used anymore
A PMD renderer, that collects all violations and processing errors
from a pmd execution.
- Author:
- Andreas Dangel
-
Field Summary
Fields inherited from class net.sourceforge.pmd.renderers.AbstractRenderer
description, inputPathPrefixes, name, showSuppressedViolations, writer
Fields inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
propertyDescriptors, propertyValuesByDescriptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.sourceforge.pmd.Report
asReport()
Deprecated.Create a new single report with all violations for further rendering into other formats than HTML.Deprecated.void
end()
Deprecated.List<net.sourceforge.pmd.Report.ProcessingError>
Deprecated.Gets all the processing errors.getErrorsAsString
(boolean withDetails) Deprecated.Gets the errors as a single string.List<net.sourceforge.pmd.RuleViolation>
Deprecated.Gets the list of all found violations.boolean
Deprecated.Checks whether any processing errors have been found.boolean
Deprecated.Checks whether any violations have been found.void
renderFileReport
(net.sourceforge.pmd.Report report) Deprecated.void
start()
Deprecated.void
startFileAnalysis
(net.sourceforge.pmd.util.datasource.DataSource dataSource) Deprecated.Methods inherited from class net.sourceforge.pmd.renderers.AbstractRenderer
determineFileName, flush, getDescription, getName, getPropertySourceType, getWriter, isShowSuppressedViolations, setDescription, setName, setReportFile, setShowSuppressedViolations, setUseShortNames, setWriter
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sourceforge.pmd.properties.PropertySource
definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValues
-
Constructor Details
-
PmdCollectingRenderer
public PmdCollectingRenderer()Deprecated.Collects all reports from all threads.
-
-
Method Details
-
renderFileReport
Deprecated.- Throws:
IOException
-
hasViolations
public boolean hasViolations()Deprecated.Checks whether any violations have been found.- Returns:
true
if at least one violations has been found
-
getViolations
Deprecated.Gets the list of all found violations.- Returns:
- the violations
-
hasErrors
public boolean hasErrors()Deprecated.Checks whether any processing errors have been found.- Returns:
true
if any errors have been found
-
getErrors
Deprecated.Gets all the processing errors.- Returns:
- the errors
-
getErrorsAsString
Deprecated.Gets the errors as a single string. Each error is in its own line.- Parameters:
withDetails
- iftrue
then add the error details additionally (contains e.g. the stacktrace)- Returns:
- the errors as string
-
asReport
public net.sourceforge.pmd.Report asReport()Deprecated.Create a new single report with all violations for further rendering into other formats than HTML.- Returns:
- the report
-
defaultFileExtension
Deprecated. -
start
Deprecated.- Throws:
IOException
-
startFileAnalysis
public void startFileAnalysis(net.sourceforge.pmd.util.datasource.DataSource dataSource) Deprecated. -
end
Deprecated.- Throws:
IOException
-