class FilesSourceAnalyzer extends AbstractSourceAnalyzer
SourceAnalyzer implementation that processes a list of source files
Fields inherited from class | Fields |
---|---|
class AbstractSourceAnalyzer |
ruleProcessingTimes |
Type | Name and description |
---|---|
java.lang.String |
baseDirectory The base (root) directory. |
boolean |
failOnError Whether to throw an exception if errors occur parsing source files (true), or just log the errors (false) |
java.lang.String[] |
sourceFiles List of groovy files that will be analyzed. |
Constructor and description |
---|
FilesSourceAnalyzer
() |
Type Params | Return Type | Name and description |
---|---|---|
|
Results |
analyze(RuleSet ruleSet) Analyze the source with the input list of files using the specified RuleSet and return the report results. |
|
java.util.List |
getSourceDirectories() |
Methods inherited from class | Name |
---|---|
class AbstractSourceAnalyzer |
collectViolations, measureRuleProcessingTime, printRuleProcessingTimes |
The base (root) directory. If not set, the current directory ('.') will be used
Whether to throw an exception if errors occur parsing source files (true), or just log the errors (false)
List of groovy files that will be analyzed. Paths can be absolute, or relative to base directory
Analyze the source with the input list of files using the specified RuleSet and return the report results.
ruleset
- - the RuleSet to apply to each of the (applicable) files in the source directoriesGroovy Documentation