void
addInputPath(String inputPath)
Deprecated.
Use
addInputPath(Path)
void
addInputPath(Path inputPath)
Add an input path.
void
addRelativizeRoot(Path path)
Set the path used to shorten paths output in the report.
void
addRelativizeRoots(List<Path> paths)
Add several paths to shorten paths that are output in the report.
void
addRuleSet(String rulesetPath)
Add a new ruleset paths to load when starting the analysis.
Renderer
createRenderer()
Create a Renderer instance based upon the configured reporting options.
Renderer
createRenderer(boolean withReportWriter)
Create a Renderer instance based upon the configured reporting options.
List<String>
getAllInputPaths()
Deprecated.
Use
getInputPathList()
AnalysisCache
getAnalysisCache()
Retrieves the currently used analysis cache.
ClassLoader
getClassLoader()
Get the ClassLoader being used by PMD when processing Rules.
LanguageVersion
getForceLanguageVersion()
Get the LanguageVersion specified by the force-language parameter.
Path
getIgnoreFile()
String
getIgnoreFilePath()
Deprecated.
Use
getIgnoreFile()
Path
getInputFile()
String
getInputFilePath()
Deprecated.
Use
getInputFile()
List<Path>
getInputPathList()
Returns an unmodifiable list.
String
getInputPaths()
Deprecated.
Use
getAllInputPaths()
String
getInputUri()
Deprecated.
Use
getUri()
LanguageVersionDiscoverer
getLanguageVersionDiscoverer()
Get the LanguageVersionDiscoverer, used to determine the LanguageVersion of a source file.
LanguageVersion
getLanguageVersionOfFile(String fileName)
Get the LanguageVersion of the source file with given name.
RulePriority
getMinimumPriority()
Get the minimum priority threshold when loading Rules from RuleSets.
List<Path>
getRelativizeRoots()
Returns the paths used to shorten paths output in the report.
String
getReportFile()
Deprecated.
Use
getReportFilePath()
Path
getReportFilePath()
Get the file to which the report should render.
String
getReportFormat()
Get the report format.
Properties
getReportProperties()
Get the Report properties.
List<String>
getRuleSetPaths()
Returns the list of ruleset URIs.
String
getRuleSets()
Deprecated.
Use
getRuleSetPaths()
String
getSuppressMarker()
Get the suppress marker.
int
getThreads()
Get the number of threads to use when processing Rules.
URI
getUri()
Get the input URI to process for source code objects.
boolean
isBenchmark()
Deprecated.
This behavior is down to CLI, not part of the core analysis.
boolean
isFailOnViolation()
Whether PMD should exit with status 4 (the default behavior, true) if violations are found or just with 0 (to not break the build, e.g.).
boolean
isForceLanguageVersion()
Is the force-language parameter set to anything?
boolean
isIgnoreIncrementalAnalysis()
Returns whether incremental analysis was explicitly disabled by the user or not.
boolean
isReportShortNames()
Deprecated.
boolean
isRuleSetFactoryCompatibilityEnabled()
Checks if the rule set factory compatibility feature is enabled.
boolean
isShowSuppressedViolations()
Get whether the report should show suppressed violations.
boolean
isStressTest()
Deprecated.
For removal
void
prependAuxClasspath(String classpath)
Prepend the specified classpath like string to the current ClassLoader of the configuration.
void
prependClasspath(String classpath)
Deprecated.
Use
prependAuxClasspath(String)
, which doesn't throw a checked
IOException
void
setAnalysisCache(AnalysisCache cache)
Sets the analysis cache to be used.
void
setAnalysisCacheLocation(String cacheLocation)
Sets the location of the analysis cache to be used.
void
setBenchmark(boolean benchmark)
Deprecated.
This behavior is down to CLI, not part of the core analysis.
void
setClassLoader(ClassLoader classLoader)
Set the ClassLoader being used by PMD when processing Rules.
void
setDefaultLanguageVersion(LanguageVersion languageVersion)
Set the given LanguageVersion as the current default for it's Language.
void
setDefaultLanguageVersions(List<LanguageVersion> languageVersions)
Set the given LanguageVersions as the current default for their Languages.
void
setFailOnViolation(boolean failOnViolation)
Sets whether PMD should exit with status 4 (the default behavior, true) if violations are found or just with 0 (to not break the build, e.g.).
void
setForceLanguageVersion(LanguageVersion forceLanguageVersion)
Set the LanguageVersion specified by the force-language parameter.
void
setIgnoreFilePath(String ignoreFilePath)
Deprecated.
Use
setIgnoreFilePath(Path)
void
setIgnoreFilePath(Path ignoreFilePath)
The input file path points to a single file, which contains a comma-separated list of source file names to ignore.
void
setIgnoreIncrementalAnalysis(boolean noCache)
Sets whether the user has explicitly disabled incremental analysis or not.
void
setInputFilePath(String inputFilePath)
Deprecated.
Use
setInputFilePath(Path)
void
setInputFilePath(Path inputFilePath)
The input file path points to a single file, which contains a comma-separated list of source file names to process.
void
setInputPathList(List<Path> inputPaths)
Set the input paths to the given list of paths.
void
setInputPaths(String inputPaths)
Deprecated.
Use
setInputPaths(List)
or
addInputPath(String)
void
setInputPaths(List<String> inputPaths)
Deprecated.
Use
setInputPathList(List)
void
setInputUri(String inputUri)
Deprecated.
Use
setInputUri(URI)
void
setInputUri(URI inputUri)
Set the input URI to process for source code objects.
void
setMinimumPriority(RulePriority minimumPriority)
Set the minimum priority threshold when loading Rules from RuleSets.
void
setReportFile(String reportFile)
Deprecated.
Use
setReportFile(Path)
void
setReportFile(Path reportFile)
Set the file to which the report should render.
void
setReportFormat(String reportFormat)
Set the report format.
void
setReportProperties(Properties reportProperties)
Set the Report properties.
void
setReportShortNames(boolean reportShortNames)
Deprecated.
for removal.
void
setRuleSetFactoryCompatibilityEnabled(boolean ruleSetFactoryCompatibilityEnabled)
Sets the rule set factory compatibility feature enabled/disabled.
void
setRuleSets(String ruleSets)
Deprecated.
Use
setRuleSets(List)
or
addRuleSet(String)
.
void
setRuleSets(List<String> ruleSetPaths)
Sets the list of ruleset paths to load when starting the analysis.
void
setShowSuppressedViolations(boolean showSuppressedViolations)
Set whether the report should show suppressed violations.
void
setStressTest(boolean stressTest)
Deprecated.
For removal.
void
setSuppressMarker(String suppressMarker)
Set the suppress marker.
void
setThreads(int threads)
Set the number of threads to use when processing Rules.
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