Uses of Class
org.codenarc.rule.Violation
Packages that use Violation
Package
Description
-
Uses of Violation in org.codenarc.analyzer
Methods in org.codenarc.analyzer that return types with arguments of type ViolationModifier and TypeMethodDescriptionAbstractSourceAnalyzer.collectViolations(SourceCode sourceCode, RuleSet ruleSet) SuppressionAnalyzer.filterSuppressedViolations(Iterable<Violation> violations) Methods in org.codenarc.analyzer with parameters of type ViolationModifier and TypeMethodDescriptionbooleanSuppressionAnalyzer.isViolationSuppressed(Violation violation) Method parameters in org.codenarc.analyzer with type arguments of type ViolationModifier and TypeMethodDescriptionSuppressionAnalyzer.filterSuppressedViolations(Iterable<Violation> violations) -
Uses of Violation in org.codenarc.report
Methods in org.codenarc.report that return ViolationMethods in org.codenarc.report with parameters of type ViolationModifier and TypeMethodDescriptionprotected groovy.lang.ClosureBaselineXmlReportWriter.buildMessageElement(Violation violation) protected groovy.lang.ClosureXmlReportWriter.buildMessageElement(Violation violation) protected groovy.lang.ClosureXmlReportWriter.buildSourceLineElement(Violation violation) protected groovy.lang.ClosureBaselineXmlReportWriter.buildViolationElement(Violation violation) protected groovy.lang.ClosureInlineXmlReportWriter.buildViolationElement(Violation violation) protected groovy.lang.ClosureXmlReportWriter.buildViolationElement(Violation violation) protected StringIdeTextReportWriter.getViolationLocationString(Violation violation, String path) protected StringTextReportWriter.getViolationLocationString(Violation violation, String path) voidSortableHtmlReportWriter.ViolationAndPath.setViolation(Violation value) protected voidTextReportWriter.writeViolation(Writer writer, Violation violation, String path) -
Uses of Violation in org.codenarc.results
Methods in org.codenarc.results with parameters of type ViolationModifier and TypeMethodDescriptionvoidDirectoryResults.removeViolation(Violation v) voidFileResults.removeViolation(Violation v) voidResults.removeViolation(Violation v) voidVirtualResults.removeViolation(Violation v) -
Uses of Violation in org.codenarc.rule
Fields in org.codenarc.rule with type parameters of type ViolationModifier and TypeFieldDescriptionAbstractAstVisitor.violationsAbstractFieldVisitor.violationsAbstractMethodCallExpressionVisitor.violationsAbstractMethodVisitor.violationsMethods in org.codenarc.rule that return ViolationModifier and TypeMethodDescriptionprotected ViolationAbstractRule.createViolation(Integer lineNumber, String sourceLine, String message) Create and return a new Violation for this rule and the specified valuesprotected ViolationAbstractRule.createViolation(SourceCode sourceCode, org.codehaus.groovy.ast.ASTNode node, String message) Create a new Violation for the AST node.protected ViolationAbstractRule.createViolationForImport(SourceCode sourceCode, String className, String alias, String violationMessage) Create and return a new Violation for this rule and the specified import className and aliasprotected ViolationAbstractRule.createViolationForImport(SourceCode sourceCode, org.codehaus.groovy.ast.ImportNode importNode, 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 ViolationModifier and TypeMethodDescriptionAbstractRule.applyTo(SourceCode sourceCode) Apply this rule to the specified source and return a list of violations (or an empty List).Rule.applyTo(SourceCode sourceCode) Apply this rule to the specified source and return a list of violations (or an empty List)AbstractAstVisitor.getViolations()AbstractFieldVisitor.getViolations()Retrieve the List of Violations resulting from applying this visitorAbstractMethodCallExpressionVisitor.getViolations()Retrieve the List of Violations resulting from applying this visitorAbstractMethodVisitor.getViolations()Retrieve the List of Violations resulting from applying this visitorAbstractSharedAstVisitorRule.getViolations(AstVisitor astVisitor, SourceCode sourceCode) AstVisitor.getViolations()AbstractSharedAstVisitorRule.removeSuppressedViolations(List<Violation> violations, SourceCode sourceCode) Methods in org.codenarc.rule with parameters of type ViolationModifier and TypeMethodDescriptionprotected voidAbstractAstVisitor.addViolation(Violation violation) Add a new Violation to the list of violations found by this visitor.protected voidAbstractRuleTestCase.assertViolation(Violation violation, Integer lineNumber, String sourceLineText) protected voidAbstractRuleTestCase.assertViolation(Violation violation, Integer lineNumber, String sourceLineText, Object messageText) Method parameters in org.codenarc.rule with type arguments of type ViolationModifier and TypeMethodDescriptionvoidAbstractAstVisitorRule.applyTo(SourceCode sourceCode, List<Violation> violations) abstract voidAbstractRule.applyTo(SourceCode sourceCode, List<Violation> violations) Apply this rule to the specified source and return a list of violations (or an empty List)voidAbstractSharedAstVisitorRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidStubRule.applyTo(SourceCode sourceCode, List<Violation> violations) private voidAbstractRule.overrideViolationMessageIfNecessary(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.AbstractSharedAstVisitorRule.removeSuppressedViolations(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 ViolationModifier and TypeMethodDescriptionvoidAbstractJavadocEmptyTagRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidAbstractJavadocMissingDescriptionRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidClassJavadocRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidJavadocConsecutiveEmptyLinesRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidJavadocEmptyFirstLineRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidJavadocEmptyLastLineRule.applyTo(SourceCode sourceCode, List<Violation> violations) -
Uses of Violation in org.codenarc.rule.convention
Method parameters in org.codenarc.rule.convention with type arguments of type ViolationModifier and TypeMethodDescriptionvoidNoTabCharacterRule.applyTo(SourceCode sourceCode, List<Violation> violations) -
Uses of Violation in org.codenarc.rule.design
Methods in org.codenarc.rule.design that return types with arguments of type ViolationModifier and TypeMethodDescriptionPrivateFieldCouldBeFinalRule.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 ViolationModifier and TypeMethodDescriptionvoidBlankLineBeforePackageRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidBracesForClassRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidConsecutiveBlankLinesRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidFileEndsWithoutNewlineRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidIndentationRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidLineLengthRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidMissingBlankLineAfterImportsRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidMissingBlankLineAfterPackageRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidTrailingWhitespaceRule.applyTo(SourceCode sourceCode, List<Violation> violations) -
Uses of Violation in org.codenarc.rule.generic
Method parameters in org.codenarc.rule.generic with type arguments of type ViolationModifier and TypeMethodDescriptionvoidIllegalRegexRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidIllegalStringRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidRequiredRegexRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidRequiredStringRule.applyTo(SourceCode sourceCode, List<Violation> violations) -
Uses of Violation in org.codenarc.rule.imports
Method parameters in org.codenarc.rule.imports with type arguments of type ViolationModifier and TypeMethodDescriptionvoidDuplicateImportRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidImportFromSamePackageRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidImportFromSunPackagesRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidMisorderedStaticImportsRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidNoWildcardImportsRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidUnnecessaryGroovyImportRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidUnusedImportRule.applyTo(SourceCode sourceCode, List<Violation> violations) -
Uses of Violation in org.codenarc.rule.naming
Method parameters in org.codenarc.rule.naming with type arguments of type ViolationModifier and TypeMethodDescriptionvoidClassNameSameAsFilenameRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidPackageNameMatchesFilePathRule.applyTo(SourceCode sourceCode, List<Violation> violations) -
Uses of Violation in org.codenarc.rule.unnecessary
Methods in org.codenarc.rule.unnecessary that return types with arguments of type ViolationMethod parameters in org.codenarc.rule.unnecessary with type arguments of type ViolationModifier and TypeMethodDescriptionvoidUnnecessarySemicolonRule.applyTo(SourceCode sourceCode, List<Violation> violations) voidUnnecessarySemicolonRule.setTemporaryViolations(ThreadLocal<List<Violation>> value) -
Uses of Violation in org.codenarc.rule.unused
Methods in org.codenarc.rule.unused that return types with arguments of type ViolationModifier and TypeMethodDescriptionUnusedPrivateFieldRule.getViolations(AstVisitor visitor, SourceCode sourceCode) UnusedPrivateMethodRule.getViolations(AstVisitor visitor, SourceCode sourceCode) Method parameters in org.codenarc.rule.unused with type arguments of type ViolationModifier and TypeMethodDescriptionvoidUnusedVariableRule.applyTo(SourceCode sourceCode, List<Violation> violations)