void
addInputPath(@NonNull 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.
protected void
checkLanguageIsAcceptable(Language lang)
Check that it is correct to use the given language with this configuration.
boolean
collectFilesRecursively()
void
collectFilesRecursively(boolean collectRecursive)
List<Path>
getExcludes()
LanguageVersion
getForceLanguageVersion()
Get the LanguageVersion specified by the force-language parameter.
@Nullable Path
getIgnoreFile()
Returns the path to the file list exclude file.
@Nullable Path
getInputFile()
Returns the path to the file list include file.
@NonNull List<Path>
getInputPathList()
Returns the list of input paths to explore.
@NonNull LanguagePropertyBundle
getLanguageProperties(Language language)
Returns a mutable bundle of language properties that are associated to the given language (always the same for a given language).
LanguageRegistry
getLanguageRegistry()
LanguageVersionDiscoverer
getLanguageVersionDiscoverer()
Get the LanguageVersionDiscoverer, used to determine the LanguageVersion of a source file.
@Nullable LanguageVersion
getLanguageVersionOfFile(String fileName)
Get the LanguageVersion of the source file with given name.
List<Path>
getRelativizeRoots()
Returns the paths used to shorten paths output in the report.
@NonNull PmdReporter
getReporter()
Returns the message reporter that is to be used while running the analysis.
@Nullable Path
getReportFilePath()
Get the file to which the report should render.
Charset
getSourceEncoding()
Get the character encoding of source files.
URI
getUri()
Get the input URI to process for source code objects.
boolean
isFailOnError()
Whether PMD should exit with status 5 (the default behavior, true) if recoverable errors occurred or just with 0 (to not break the build, e.g.).
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?
void
setDefaultLanguageVersion(LanguageVersion languageVersion)
Set the given LanguageVersion as the current default for its Language.
void
setDefaultLanguageVersions(List<LanguageVersion> languageVersions)
Set the given LanguageVersions as the current default for their Languages.
void
setExcludes(List<Path> excludes)
void
setFailOnError(boolean failOnError)
Sets whether PMD should exit with status 5 (the default behavior, true) if recoverable errors occurred or just with 0 (to not break the build, e.g.).
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(@Nullable LanguageVersion forceLanguageVersion)
Set the LanguageVersion specified by the force-language parameter.
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
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
setInputUri(URI inputUri)
Set the input URI to process for source code objects.
void
setOnlyRecognizeLanguage(Language lang)
Make it so that the only extensions that are considered are those of the given language.
void
setReporter(@NonNull PmdReporter reporter)
Sets the message reporter that is to be used while running the analysis.
void
setReportFile(@Nullable Path reportFile)
Set the file to which the report should render.
void
setSourceEncoding(Charset sourceEncoding)
Set the character encoding of source files.
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