public class RuleSetFactoryCompatibility extends java.lang.ObjectProvides a simple filter mechanism to avoid failing to parse an old ruleset, which references rules, that have either been removed from PMD already or renamed or moved to another ruleset.
- See Also:
- issue 1360
Constructors Constructor Description
RuleSetFactoryCompatibility()Creates a new instance of the compatibility filter with the built-in filters for the modified PMD rules.
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
filterRuleSetFile(java.io.InputStream stream)Applies all configured filters against the given input stream.
public java.io.Reader filterRuleSetFile(java.io.InputStream stream) throws java.io.IOExceptionApplies all configured filters against the given input stream. The resulting reader will contain the original ruleset modified by the filters.
stream- the original ruleset file input stream
- a reader, from which the filtered ruleset can be read
java.io.IOException- if the stream couldn't be read