|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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)
|
String
|
getPath()
|
int
|
getTotalNumberOfFiles(boolean recursive = true)
Return the total number of (Groovy) files analyzed |
List
|
getViolationsWithPriority(int priority)
|
boolean
|
isFile()
|
String
|
toString()
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public FileResults(String path, List violations)
Method Detail |
---|
Results findResultsForPath(String path)
List getChildren()
int getNumberOfFilesWithViolations(boolean recursive = true)
int getNumberOfViolationsWithPriority(int priority, boolean recursive = true)
String getPath()
int getTotalNumberOfFiles(boolean recursive = true)
List getViolationsWithPriority(int priority)
boolean isFile()
String toString()
Groovy Documentation