net.sourceforge.pmd.renderers
Class TextPadRenderer
java.lang.Object
extended by net.sourceforge.pmd.renderers.AbstractRenderer
extended by net.sourceforge.pmd.renderers.OnTheFlyRenderer
extended by net.sourceforge.pmd.renderers.TextPadRenderer
- All Implemented Interfaces:
- Renderer
public class TextPadRenderer
- extends OnTheFlyRenderer
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
- Author:
- Jeff Epstein, based upon EmacsRenderer, Tuesday, September 23, 2003
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextPadRenderer
public TextPadRenderer()
start
public void start()
throws java.io.IOException
- Specified by:
start
in interface Renderer
- Specified by:
start
in class OnTheFlyRenderer
- Throws:
java.io.IOException
renderFileViolations
public void renderFileViolations(java.util.Iterator<IRuleViolation> violations)
throws java.io.IOException
- Specified by:
renderFileViolations
in class OnTheFlyRenderer
- Throws:
java.io.IOException
end
public void end()
throws java.io.IOException
- Specified by:
end
in interface Renderer
- Specified by:
end
in class OnTheFlyRenderer
- Throws:
java.io.IOException
Copyright © 2002-2011 InfoEther. All Rights Reserved.