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, writerFields inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
propertyDescriptors, propertyValuesByDescriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.sourceforge.pmd.ReportasReport()Deprecated.Create a new single report with all violations for further rendering into other formats than HTML.Deprecated.voidend()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.booleanDeprecated.Checks whether any processing errors have been found.booleanDeprecated.Checks whether any violations have been found.voidrenderFileReport(net.sourceforge.pmd.Report report) Deprecated.voidstart()Deprecated.voidstartFileAnalysis(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, setWriterMethods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, isPropertyOverridden, setProperty, setProperty, useDefaultValueFor, usesDefaultValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
trueif 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:
trueif 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- iftruethen 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
-