|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.org.codenarc.results.FileResults
class FileResults
Represents the results of applying a set of rules against a single sourcefile
Constructor Summary | |
FileResults(String path, List violations)
|
Method Summary | |
---|---|
Results
|
findResultsForPath(String path)
Return the Results object with the specified path. |
List
|
getChildren()
Return an empty List |
int
|
getNumberOfFilesWithViolations(boolean recursive = true)
Return 1 if these results include at least one violation |
int
|
getNumberOfViolationsWithPriority(int priority, boolean recursive = true)
@param recursive - true if the returned count should include subdirectories as well; defaults to true |
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()
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
FileResults(String path, List violations)
Method Detail |
---|
Results findResultsForPath(String path)
path
- - the path to search for
List getChildren()
int getNumberOfFilesWithViolations(boolean recursive = true)
recursive
- - ignored; defaults to true
int getNumberOfViolationsWithPriority(int priority, boolean recursive = true)
recursive
- - true if the returned count should include subdirectories as well; defaults to true
String getPath()
int getTotalNumberOfFiles(boolean recursive = true)
recursive
- - true if the returned count should include subdirectories as well
List getViolations()
boolean isFile()
String toString()
Groovy Documentation