public SourceCodeProcessor(PMDConfiguration configuration)
Deprecated.
public void processSourceCode(InputStream sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException
Deprecated.
Processes the input stream against a rule set using the given input encoding.
sourceCode
- The InputStream to analyze.
ruleSets
- The collection of rules to process against the file.
ctx
- The context in which PMD is operating.
PMDException
- if the input encoding is unsupported, the input stream could not be parsed, or other error is encountered.
processSourceCode(Reader, RuleSets, RuleContext)
public void processSourceCode(Reader sourceCode, RuleSets ruleSets, RuleContext ctx) throws PMDException
Deprecated.
Processes the input stream against a rule set using the given input encoding. If the LanguageVersion is null
on the RuleContext, it will be automatically determined. Any code which wishes to process files for different Languages, will need to be sure to either properly set the Language on the RuleContext, or set it to null
first.
sourceCode
- The Reader to analyze.
ruleSets
- The collection of rules to process against the file.
ctx
- The context in which PMD is operating.
PMDException
- if the input encoding is unsupported, the input stream could not be parsed, or other error is encountered.
RuleContext.setLanguageVersion(net.sourceforge.pmd.lang.LanguageVersion)
, PMDConfiguration.getLanguageVersionOfFile(String)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4