|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgroovy.org.codenarc.results.FileResults
@SuppressWarnings('UnusedMethodParameter')
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(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()
|
| 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(int maxPriority, boolean recursive = true)
maxPriority - - the maximum priority level; ignore violations with priority greater than thisrecursive - - ignored
int getNumberOfViolationsWithPriority(int priority, boolean recursive = true)
recursive - - ignored
String getPath()
int getTotalNumberOfFiles(boolean recursive = true)
recursive - - ignored
List getViolations()
boolean isFile()
String toString()
Groovy Documentation