Package net.sourceforge.pmd.renderers
Class TextColorRenderer
java.lang.Object
net.sourceforge.pmd.properties.AbstractPropertySource
net.sourceforge.pmd.renderers.AbstractRenderer
net.sourceforge.pmd.renderers.AbstractAccumulatingRenderer
net.sourceforge.pmd.renderers.TextColorRenderer
- All Implemented Interfaces:
PropertySource,Renderer
A console renderer with color support for terminal supporting ansi color codes.
* file: ./src/gilot/Test.java
src: Test.java:12
rule: AtLeastOneConstructor
msg: Each class should declare at least one constructor
code: public class Test
* file: ./src/gilot/log/format/LogInterpreter.java
src: LogInterpreter.java:317
rule: AvoidDuplicateLiterals
msg: The same String literal appears 4 times in this file; the first occurrence is on line 317
code: logger.error( "missing attribute 'app_arg' in rule '" + ((Element)element.getParent()).getAttributeValue( "name" ) + "'" );
src: LogInterpreter.java:317
rule: AvoidDuplicateLiterals
msg: The same String literal appears 5 times in this file; the first occurrence is on line 317
code: logger.error( "missing attribute 'app_arg' in rule '" + ((Element)element.getParent()).getAttributeValue( "name" ) + "'" );
* warnings: 3
-
Field Summary
FieldsFields inherited from class net.sourceforge.pmd.renderers.AbstractRenderer
description, name, showSuppressedViolations, writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the default filename extension to use.protected ReadervoidoutputReport(Report report) Output the report, called once at the end of the analysis.Methods inherited from class net.sourceforge.pmd.renderers.AbstractAccumulatingRenderer
end, newListener, renderFileReport, start, startFileAnalysisMethods inherited from class net.sourceforge.pmd.renderers.AbstractRenderer
determineFileName, flush, getDescription, getName, getPropertySourceType, getWriter, isShowSuppressedViolations, setDescription, setFileNameRenderer, setName, setReportFile, setShowSuppressedViolations, setWriterMethods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
definePropertyDescriptor, equals, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, hashCode, isPropertyOverridden, setPropertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.properties.PropertySource
definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, isPropertyOverridden, setProperty
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
TextColorRenderer
public TextColorRenderer()
-
-
Method Details
-
defaultFileExtension
Description copied from interface:RendererReturn the default filename extension to use.- Returns:
- String
-
outputReport
Description copied from class:AbstractAccumulatingRendererOutput the report, called once at the end of the analysis.- Specified by:
outputReportin classAbstractAccumulatingRenderer- Throws:
IOException
-
getReader
- Throws:
FileNotFoundException
-