Uses of Class
com.puppycrawl.tools.checkstyle.api.Violation
Package
Description
Contains the implementation of the Checkstyle framework.
Contains the core API to be used to implement checks.
-
Uses of Violation in com.puppycrawl.tools.checkstyle
Modifier and TypeFieldDescriptionprivate final Violation
TreeWalkerAuditEvent.violation
Violation associated with the event.Modifier and TypeFieldDescriptionXpathFileGeneratorAstFilter.MESSAGE_QUERY_MAP
Map fromViolation
objects to xpath queries.TreeWalker.violations
The sorted set of violations.Modifier and TypeMethodDescriptionTreeWalker.getFilteredViolations
(String fileName, FileContents fileContents, DetailAST rootAST) Returns filtered set ofViolation
.Checker.processFile
(File file) Processes a file with all FileSetChecks.Modifier and TypeMethodDescriptionvoid
Checker.fireErrors
(String fileName, SortedSet<Violation> errors) Notify all listeners about the errors in a file.ModifierConstructorDescriptionTreeWalkerAuditEvent
(FileContents fileContents, String fileName, Violation violation, DetailAST rootAst) Creates a newTreeWalkerAuditEvent
instance. -
Uses of Violation in com.puppycrawl.tools.checkstyle.api
Modifier and TypeFieldDescriptionprivate final Violation
AuditEvent.violation
Violation associated with the event.Modifier and TypeFieldDescriptionAbstractCheck.FileContext.violations
The sorted set for collecting violations.AbstractFileSetCheck.FileContext.violations
The sorted set for collecting violations.Modifier and TypeMethodDescriptionAbstractCheck.getViolations()
Returns the sorted set ofViolation
.AbstractFileSetCheck.getViolations()
Returns the sorted set ofViolation
.Request to process a file.Modifier and TypeMethodDescriptionprotected void
AbstractFileSetCheck.addViolations
(SortedSet<Violation> violations) Adds the sorted set ofViolation
to the message collector.void
MessageDispatcher.fireErrors
(String fileName, SortedSet<Violation> errors) Notify all listeners about the violations in a file.ModifierConstructorDescriptionAuditEvent
(Object src, String fileName, Violation violation) Creates a newAuditEvent
instance.