Represents the results of applying rules to one or more source files/directories
| Type | Name and description |
|---|---|
Results |
findResultsForPath(String path)Return the Results object with the specified path within this results object or its descendents. |
List |
getChildren()@return the List of child Results objects; may be empty |
int |
getNumberOfFilesWithViolations(int maxPriority, boolean recursive)Return the number of files with violations |
int |
getNumberOfViolationsWithPriority(int priority, boolean recursive)Return the number of violations with the specified priority |
String |
getPath()@return the path to the file or directory associated with these results |
int |
getTotalNumberOfFiles(boolean recursive)Return the total number of (Groovy) files analyzed |
List |
getViolations()@return the List of all violations; may be empty |
boolean |
isFile()@return true only if this object represents the results for a single file |
Return the Results object with the specified path within this results object or its descendents.
path - - the path to search for
Return the number of files with violations
maxPriority - - the maximum priority level; ignore violations with priority greater than thisrecursive - - true if the returned count should include subdirectories as wellReturn the number of violations with the specified priority
priority - - the priorityrecursive - - true if the returned count should include subdirectories as well
Return the total number of (Groovy) files analyzed
recursive - - true if the returned count should include subdirectories as well