SourceAnalyzer implementation that recursively processes files in the configured source directories.
Type | Name and description |
---|---|
static def |
SEP |
String |
applyToFileNames Only analyze filenames matching this value. |
String |
applyToFilesMatching Only analyze pathnames matching this regular expression. |
String |
baseDirectory The base directory; the sourceDirectories are relative to this, if not null. |
String |
doNotApplyToFileNames Do NOT analyze filenames matching this value. |
String |
doNotApplyToFilesMatching Do NOT analyze pathnames matching this regular expression. |
List |
sourceDirectories The list of source directories, relative to the baseDirectory if it is not null. |
Methods inherited from class | Name |
---|---|
class AbstractSourceAnalyzer |
collectViolations |
Only analyze filenames matching this value. The value may optionally be a comma-separated list of names. The name(s) may optionally include wildcard characters ('*' or '?').
Only analyze pathnames matching this regular expression. If null, match all pathnames. This defaults to matching all pathnames that end with '.groovy'.
The base directory; the sourceDirectories are relative to this, if not null. If this value is null, then treat sourceDirectories as full paths.
Do NOT analyze filenames matching this value. The value may optionally be a comma-separated list of names. The name(s) may optionally include wildcard characters ('*' or '?').
Do NOT analyze pathnames matching this regular expression. If null, then do not exclude any pathnames.
The list of source directories, relative to the baseDirectory if it is not null. If sourceDirectories is null, then analyze files recursively from baseDirectory.
Analyze the source with the configured directory tree(s) using the specified RuleSet and return the report results.
ruleset
- - the RuleSet to apply to each of the (applicable) files in the source directories