public class TextPadRenderer extends AbstractIncrementingRenderer
A Renderer for running PMD via a TextPad 'tool'. TextPad is a text editor by Helios Software Solutions.
Output lines are in the form:
pathtojavafile(line#, NameOfRule): Specific rule violation message
For example:
D:\java\pmd\src\src\net\sourceforge\pmd\renderers\TextPadRenderer.java(24, AtLeastOneConstructor): Each class should declare at least one constructor
D:\java\pmd\src\src\net\sourceforge\pmd\renderers\TextPadRenderer.java(26, VariableNamingConventionsRule): Variables should start with a lowercase character
D:\java\pmd\src\src\net\sourceforge\pmd\renderers\TextPadRenderer.java(31, ShortVariable): Avoid variables with short names
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
errors, suppressed
description, name, propertyDefinitions, showSuppressedViolations, writer
propertyDescriptors, propertyValuesByDescriptor
Constructor and Description |
---|
TextPadRenderer() |
Modifier and Type | Method and Description |
---|---|
String |
defaultFileExtension()
Return the default filename extension to use.
|
void |
renderFileViolations(Iterator<RuleViolation> violations)
Render a series of
RuleViolation s. |
end, renderFileReport, start, startFileAnalysis
defineProperty, flush, getDescription, getName, getPropertyDefinitions, getWriter, isShowSuppressedViolations, setDescription, setName, setShowSuppressedViolations, setWriter
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, useDefaultValueFor, usesDefaultValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, useDefaultValueFor, usesDefaultValues
public static final String NAME
public String defaultFileExtension()
Renderer
public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException
RuleViolation
s.renderFileViolations
in class AbstractIncrementingRenderer
violations
- The iterator of violations to render.IOException
Copyright © 2002-2017 PMD. All Rights Reserved.