@SuppressWarnings('UnusedMethodParameter') class FileResults
Represents the results of applying a set of rules against a single sourcefile
| Constructor and description |
|---|
FileResults
(String path, List violations) |
| Type | Name and description |
|---|---|
Results |
findResultsForPath(String path)Return the Results object with the specified path. |
List |
getChildren()Return an empty List |
int |
getNumberOfFilesWithViolations(int maxPriority, boolean recursive = true)Return 1 if these results include at least one violation |
int |
getNumberOfViolationsWithPriority(int priority, boolean recursive = true)@param recursive - ignored |
String |
getPath()@return the path to the file or directory associated with these results |
int |
getTotalNumberOfFiles(boolean recursive = true)Return the total number of (Groovy) files analyzed |
List |
getViolations()@return the List of all violations |
boolean |
isFile()@return true (this object represents the results for a single file) |
String |
toString() |
Return the Results object with the specified path.
path - - the path to search forReturn an empty List
Return 1 if these results include at least one violation
maxPriority - - the maximum priority level; ignore violations with priority greater than thisrecursive - - ignored
recursive - - ignored
Return the total number of (Groovy) files analyzed
recursive - - ignored