Modifier and Type | Method | Description |
---|---|---|
protected List<Violation> |
AbstractSourceAnalyzer.collectViolations(SourceCode sourceCode,
RuleSet ruleSet) |
|
List<Violation> |
SuppressionAnalyzer.filterSuppressedViolations(Iterable<Violation> violations) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
SuppressionAnalyzer.isViolationSuppressed(Violation violation) |
Modifier and Type | Method | Description |
---|---|---|
List<Violation> |
SuppressionAnalyzer.filterSuppressedViolations(Iterable<Violation> violations) |
Modifier and Type | Method | Description |
---|---|---|
protected groovy.lang.Closure |
BaselineXmlReportWriter.buildMessageElement(Violation violation) |
|
protected groovy.lang.Closure |
XmlReportWriter.buildMessageElement(Violation violation) |
|
protected groovy.lang.Closure |
XmlReportWriter.buildSourceLineElement(Violation violation) |
|
protected groovy.lang.Closure |
BaselineXmlReportWriter.buildViolationElement(Violation violation) |
|
protected groovy.lang.Closure |
InlineXmlReportWriter.buildViolationElement(Violation violation) |
|
protected groovy.lang.Closure |
XmlReportWriter.buildViolationElement(Violation violation) |
|
protected String |
IdeTextReportWriter.getViolationLocationString(Violation violation,
String path) |
|
protected String |
TextReportWriter.getViolationLocationString(Violation violation,
String path) |
|
protected void |
TextReportWriter.writeViolation(Writer writer,
Violation violation,
String path) |
Modifier and Type | Method | Description |
---|---|---|
void |
DirectoryResults.removeViolation(Violation v) |
|
void |
FileResults.removeViolation(Violation v) |
|
void |
Results.removeViolation(Violation v) |
|
void |
VirtualResults.removeViolation(Violation v) |
Modifier and Type | Method | Description |
---|---|---|
protected Violation |
AbstractRule.createViolation(Integer lineNumber,
String sourceLine,
String message) |
Create and return a new Violation for this rule and the specified values
|
protected Violation |
AbstractRule.createViolation(SourceCode sourceCode,
org.codehaus.groovy.ast.ASTNode node,
String message) |
Create a new Violation for the AST node.
|
protected Violation |
AbstractRule.createViolationForImport(SourceCode sourceCode,
String className,
String alias,
String violationMessage) |
Create and return a new Violation for this rule and the specified import className and alias
|
protected Violation |
AbstractRule.createViolationForImport(SourceCode sourceCode,
org.codehaus.groovy.ast.ImportNode importNode,
String message) |
Create and return a new Violation for this rule and the specified import
|
Modifier and Type | Method | Description |
---|---|---|
List<Violation> |
AbstractRule.applyTo(SourceCode sourceCode) |
Apply this rule to the specified source and return a list of violations (or an empty List).
|
List<Violation> |
Rule.applyTo(SourceCode sourceCode) |
Apply this rule to the specified source and return a list of violations (or an empty List)
|
List<Violation> |
AbstractAstVisitor.getViolations() |
|
List<Violation> |
AbstractFieldVisitor.getViolations() |
Retrieve the List of Violations resulting from applying this visitor
|
List<Violation> |
AbstractMethodCallExpressionVisitor.getViolations() |
Retrieve the List of Violations resulting from applying this visitor
|
List<Violation> |
AbstractMethodVisitor.getViolations() |
Retrieve the List of Violations resulting from applying this visitor
|
protected abstract List<Violation> |
AbstractSharedAstVisitorRule.getViolations(AstVisitor astVisitor,
SourceCode sourceCode) |
|
List<Violation> |
AstVisitor.getViolations() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
AbstractAstVisitor.addViolation(Violation violation) |
Add a new Violation to the list of violations found by this visitor.
|
protected void |
AbstractRuleTestCase.assertViolation(Violation violation,
Integer lineNumber,
String sourceLineText) |
|
protected void |
AbstractRuleTestCase.assertViolation(Violation violation,
Integer lineNumber,
String sourceLineText,
Object messageText) |
Modifier and Type | Method | Description |
---|---|---|
void |
AbstractAstVisitorRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
abstract void |
AbstractRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
Apply this rule to the specified source and return a list of violations (or an empty List)
|
void |
AbstractSharedAstVisitorRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
StubRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
Modifier and Type | Method | Description |
---|---|---|
void |
AbstractJavadocEmptyTagRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
AbstractJavadocMissingDescriptionRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
ClassJavadocRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
JavadocConsecutiveEmptyLinesRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
JavadocEmptyFirstLineRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
JavadocEmptyLastLineRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
Modifier and Type | Method | Description |
---|---|---|
void |
NoTabCharacterRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
Modifier and Type | Method | Description |
---|---|---|
protected List<Violation> |
PrivateFieldCouldBeFinalRule.getViolations(AstVisitor visitor,
SourceCode sourceCode) |
Modifier and Type | Method | Description |
---|---|---|
void |
BlankLineBeforePackageRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
BracesForClassRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
ConsecutiveBlankLinesRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
FileEndsWithoutNewlineRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
IndentationRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
LineLengthRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
MissingBlankLineAfterImportsRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
MissingBlankLineAfterPackageRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
TrailingWhitespaceRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
Modifier and Type | Method | Description |
---|---|---|
void |
IllegalRegexRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
IllegalStringRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
RequiredRegexRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
RequiredStringRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
Modifier and Type | Method | Description |
---|---|---|
void |
DuplicateImportRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
ImportFromSamePackageRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
ImportFromSunPackagesRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
MisorderedStaticImportsRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
NoWildcardImportsRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
UnnecessaryGroovyImportRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
UnusedImportRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
Modifier and Type | Method | Description |
---|---|---|
void |
ClassNameSameAsFilenameRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
PackageNameMatchesFilePathRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
Modifier and Type | Method | Description |
---|---|---|
ThreadLocal<List<Violation>> |
UnnecessarySemicolonRule.getTemporaryViolations() |
Modifier and Type | Method | Description |
---|---|---|
void |
UnnecessarySemicolonRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
|
void |
UnnecessarySemicolonRule.setTemporaryViolations(ThreadLocal<List<Violation>> value) |
Modifier and Type | Method | Description |
---|---|---|
protected List<Violation> |
UnusedPrivateFieldRule.getViolations(AstVisitor visitor,
SourceCode sourceCode) |
|
protected List<Violation> |
UnusedPrivateMethodRule.getViolations(AstVisitor visitor,
SourceCode sourceCode) |
Modifier and Type | Method | Description |
---|---|---|
void |
UnusedVariableRule.applyTo(SourceCode sourceCode,
List<Violation> violations) |
Copyright © 2019. All rights reserved.