Package net.sourceforge.pmd.renderers
Class CodeClimateRenderer
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.renderers.AbstractRenderer
-
- net.sourceforge.pmd.renderers.AbstractIncrementingRenderer
-
- net.sourceforge.pmd.renderers.CodeClimateRenderer
-
- All Implemented Interfaces:
PropertySource
,Renderer
public class CodeClimateRenderer extends AbstractIncrementingRenderer
Renderer for Code Climate JSON format
-
-
Field Summary
Fields Modifier and Type Field Description static String
BODY_PLACEHOLDER
static String[]
CODECLIMATE_DEFAULT_CATEGORIES
protected static List<String>
INTERNAL_DEV_PROPERTIES
static String
NAME
protected static String
NULL_CHARACTER
static int
REMEDIATION_POINTS_DEFAULT
-
Fields inherited from class net.sourceforge.pmd.renderers.AbstractIncrementingRenderer
configErrors, errors, suppressed
-
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
Constructors Constructor Description CodeClimateRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
defaultFileExtension()
Return the default filename extension to use.void
renderFileViolations(Iterator<RuleViolation> violations)
Render a series ofRuleViolation
s.-
Methods inherited from class net.sourceforge.pmd.renderers.AbstractIncrementingRenderer
end, renderFileReport, start, startFileAnalysis
-
Methods inherited from class net.sourceforge.pmd.renderers.AbstractRenderer
determineFileName, flush, getDescription, getName, getPropertySourceType, getWriter, isShowSuppressedViolations, setDescription, setName, 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
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
BODY_PLACEHOLDER
public static final String BODY_PLACEHOLDER
- See Also:
- Constant Field Values
-
REMEDIATION_POINTS_DEFAULT
public static final int REMEDIATION_POINTS_DEFAULT
- See Also:
- Constant Field Values
-
CODECLIMATE_DEFAULT_CATEGORIES
public static final String[] CODECLIMATE_DEFAULT_CATEGORIES
-
NULL_CHARACTER
protected static final String NULL_CHARACTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
renderFileViolations
public void renderFileViolations(Iterator<RuleViolation> violations) throws IOException
Description copied from class:AbstractIncrementingRenderer
Render a series ofRuleViolation
s.- Specified by:
renderFileViolations
in classAbstractIncrementingRenderer
- Parameters:
violations
- The iterator of violations to render.- Throws:
IOException
-
-