Uses of Class
org.codenarc.rule.Violation
-
-
Uses of Violation in org.codenarc.analyzer
Methods in org.codenarc.analyzer that return types with arguments of type Violation Modifier and Type Method Description protected java.util.List<Violation>
AbstractSourceAnalyzer. collectViolations(SourceCode sourceCode, RuleSet ruleSet)
java.util.List<Violation>
SuppressionAnalyzer. filterSuppressedViolations(java.lang.Iterable<Violation> violations)
Methods in org.codenarc.analyzer with parameters of type Violation Modifier and Type Method Description boolean
SuppressionAnalyzer. isViolationSuppressed(Violation violation)
Method parameters in org.codenarc.analyzer with type arguments of type Violation Modifier and Type Method Description java.util.List<Violation>
SuppressionAnalyzer. filterSuppressedViolations(java.lang.Iterable<Violation> violations)
-
Uses of Violation in org.codenarc.report
Methods in org.codenarc.report that return Violation Modifier and Type Method Description Violation
SortableHtmlReportWriter.ViolationAndPath. getViolation()
Methods in org.codenarc.report with parameters of type Violation 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 java.lang.String
IdeTextReportWriter. getViolationLocationString(Violation violation, java.lang.String path)
protected java.lang.String
TextReportWriter. getViolationLocationString(Violation violation, java.lang.String path)
void
SortableHtmlReportWriter.ViolationAndPath. setViolation(Violation value)
protected void
TextReportWriter. writeViolation(java.io.Writer writer, Violation violation, java.lang.String path)
-
Uses of Violation in org.codenarc.results
Methods in org.codenarc.results with parameters of type Violation 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)
-
Uses of Violation in org.codenarc.rule
Fields in org.codenarc.rule with type parameters of type Violation Modifier and Type Field Description private java.util.List<Violation>
AbstractAstVisitor. violations
private java.util.List<Violation>
AbstractFieldVisitor. violations
private java.util.List<Violation>
AbstractMethodCallExpressionVisitor. violations
private java.util.List<Violation>
AbstractMethodVisitor. violations
Methods in org.codenarc.rule that return Violation Modifier and Type Method Description protected Violation
AbstractRule. createViolation(java.lang.Integer lineNumber, java.lang.String sourceLine, java.lang.String message)
Create and return a new Violation for this rule and the specified valuesprotected Violation
AbstractRule. createViolation(SourceCode sourceCode, org.codehaus.groovy.ast.ASTNode node, java.lang.String message)
Create a new Violation for the AST node.protected Violation
AbstractRule. createViolationForImport(SourceCode sourceCode, java.lang.String className, java.lang.String alias, java.lang.String violationMessage)
Create and return a new Violation for this rule and the specified import className and aliasprotected Violation
AbstractRule. createViolationForImport(SourceCode sourceCode, org.codehaus.groovy.ast.ImportNode importNode, java.lang.String message)
Create and return a new Violation for this rule and the specified importMethods in org.codenarc.rule that return types with arguments of type Violation Modifier and Type Method Description java.util.List<Violation>
AbstractRule. applyTo(SourceCode sourceCode)
Apply this rule to the specified source and return a list of violations (or an empty List).java.util.List<Violation>
Rule. applyTo(SourceCode sourceCode)
Apply this rule to the specified source and return a list of violations (or an empty List)java.util.List<Violation>
AbstractAstVisitor. getViolations()
java.util.List<Violation>
AbstractFieldVisitor. getViolations()
Retrieve the List of Violations resulting from applying this visitorjava.util.List<Violation>
AbstractMethodCallExpressionVisitor. getViolations()
Retrieve the List of Violations resulting from applying this visitorjava.util.List<Violation>
AbstractMethodVisitor. getViolations()
Retrieve the List of Violations resulting from applying this visitorprotected abstract java.util.List<Violation>
AbstractSharedAstVisitorRule. getViolations(AstVisitor astVisitor, SourceCode sourceCode)
java.util.List<Violation>
AstVisitor. getViolations()
private java.util.List<Violation>
AbstractSharedAstVisitorRule. removeSuppressedViolations(java.util.List<Violation> violations, SourceCode sourceCode)
Methods in org.codenarc.rule with parameters of type Violation 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, java.lang.Integer lineNumber, java.lang.String sourceLineText)
protected void
AbstractRuleTestCase. assertViolation(Violation violation, java.lang.Integer lineNumber, java.lang.String sourceLineText, java.lang.Object messageText)
Method parameters in org.codenarc.rule with type arguments of type Violation Modifier and Type Method Description void
AbstractAstVisitorRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
abstract void
AbstractRule. applyTo(SourceCode sourceCode, java.util.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, java.util.List<Violation> violations)
void
StubRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
private void
AbstractRule. overrideViolationMessageIfNecessary(java.util.List<Violation> violations)
If the violationMessage property of this rule has been set, then use it to set the message within each violation, overriding the original message(s), if any.private java.util.List<Violation>
AbstractSharedAstVisitorRule. removeSuppressedViolations(java.util.List<Violation> violations, SourceCode sourceCode)
-
Uses of Violation in org.codenarc.rule.comments
Method parameters in org.codenarc.rule.comments with type arguments of type Violation Modifier and Type Method Description void
AbstractJavadocEmptyTagRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
AbstractJavadocMissingDescriptionRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
ClassJavadocRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
JavadocConsecutiveEmptyLinesRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
JavadocEmptyFirstLineRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
JavadocEmptyLastLineRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
-
Uses of Violation in org.codenarc.rule.convention
Method parameters in org.codenarc.rule.convention with type arguments of type Violation Modifier and Type Method Description void
NoTabCharacterRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
-
Uses of Violation in org.codenarc.rule.design
Methods in org.codenarc.rule.design that return types with arguments of type Violation Modifier and Type Method Description protected java.util.List<Violation>
PrivateFieldCouldBeFinalRule. getViolations(AstVisitor visitor, SourceCode sourceCode)
-
Uses of Violation in org.codenarc.rule.formatting
Method parameters in org.codenarc.rule.formatting with type arguments of type Violation Modifier and Type Method Description void
BlankLineBeforePackageRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
BracesForClassRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
ConsecutiveBlankLinesRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
FileEndsWithoutNewlineRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
IndentationRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
LineLengthRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
MissingBlankLineAfterImportsRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
MissingBlankLineAfterPackageRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
TrailingWhitespaceRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
-
Uses of Violation in org.codenarc.rule.generic
Method parameters in org.codenarc.rule.generic with type arguments of type Violation Modifier and Type Method Description void
IllegalRegexRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
IllegalStringRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
RequiredRegexRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
RequiredStringRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
-
Uses of Violation in org.codenarc.rule.imports
Method parameters in org.codenarc.rule.imports with type arguments of type Violation Modifier and Type Method Description void
DuplicateImportRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
ImportFromSamePackageRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
ImportFromSunPackagesRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
MisorderedStaticImportsRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
NoWildcardImportsRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
UnnecessaryGroovyImportRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
UnusedImportRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
-
Uses of Violation in org.codenarc.rule.naming
Method parameters in org.codenarc.rule.naming with type arguments of type Violation Modifier and Type Method Description void
ClassNameSameAsFilenameRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
PackageNameMatchesFilePathRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
-
Uses of Violation in org.codenarc.rule.unnecessary
Methods in org.codenarc.rule.unnecessary that return types with arguments of type Violation Modifier and Type Method Description java.lang.ThreadLocal<java.util.List<Violation>>
UnnecessarySemicolonRule. getTemporaryViolations()
Method parameters in org.codenarc.rule.unnecessary with type arguments of type Violation Modifier and Type Method Description void
UnnecessarySemicolonRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
void
UnnecessarySemicolonRule. setTemporaryViolations(java.lang.ThreadLocal<java.util.List<Violation>> value)
-
Uses of Violation in org.codenarc.rule.unused
Methods in org.codenarc.rule.unused that return types with arguments of type Violation Modifier and Type Method Description protected java.util.List<Violation>
UnusedPrivateFieldRule. getViolations(AstVisitor visitor, SourceCode sourceCode)
protected java.util.List<Violation>
UnusedPrivateMethodRule. getViolations(AstVisitor visitor, SourceCode sourceCode)
Method parameters in org.codenarc.rule.unused with type arguments of type Violation Modifier and Type Method Description void
UnusedVariableRule. applyTo(SourceCode sourceCode, java.util.List<Violation> violations)
-