Represents the results of applying rules to one or more source files/directories
| Type Params | Return Type | Name and description |
|---|---|---|
|
Results |
findResultsForPath(java.lang.String path)Return the Results object with the specified path within this results object or its descendents. |
|
java.util.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 |
|
java.lang.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 |
|
java.util.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 |
|
void |
removeViolation(Violation v)Remove the specified violation |
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
Remove the specified violation
v - - the violation to remove