Uses of Class
com.puppycrawl.tools.checkstyle.api.AuditEvent
-
Packages that use AuditEvent Package Description com.puppycrawl.tools.checkstyle Contains the implementation of the Checkstyle framework.com.puppycrawl.tools.checkstyle.api Contains the core API to be used to implement checks.com.puppycrawl.tools.checkstyle.checks Contains the checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.filters Contains the filters that are bundled with the main distribution. -
-
Uses of AuditEvent in com.puppycrawl.tools.checkstyle
Methods in com.puppycrawl.tools.checkstyle with parameters of type AuditEvent Modifier and Type Method Description void
DefaultLogger. addError(AuditEvent event)
Print an Emacs compliant line on the error stream.void
XMLLogger. addError(AuditEvent event)
void
DefaultLogger. addException(AuditEvent event, java.lang.Throwable throwable)
void
XMLLogger. addException(AuditEvent event, java.lang.Throwable throwable)
void
DefaultLogger. auditFinished(AuditEvent event)
void
XMLLogger. auditFinished(AuditEvent event)
void
DefaultLogger. auditStarted(AuditEvent event)
void
XMLLogger. auditStarted(AuditEvent event)
private static int
AuditEventDefaultFormatter. calculateBufferLength(AuditEvent event, int severityLevelNameLength)
Returns the length of the buffer for StringBuilder.void
DefaultLogger. fileFinished(AuditEvent event)
void
XMLLogger. fileFinished(AuditEvent event)
void
DefaultLogger. fileStarted(AuditEvent event)
void
XMLLogger. fileStarted(AuditEvent event)
java.lang.String
AuditEventDefaultFormatter. format(AuditEvent event)
java.lang.String
AuditEventFormatter. format(AuditEvent event)
Formats an error message.private static java.lang.String
AuditEventDefaultFormatter. getCheckShortName(AuditEvent event)
Returns check name without 'Check' suffix. -
Uses of AuditEvent in com.puppycrawl.tools.checkstyle.api
Methods in com.puppycrawl.tools.checkstyle.api with parameters of type AuditEvent Modifier and Type Method Description boolean
Filter. accept(AuditEvent event)
Determines whether or not a filtered AuditEvent is accepted.boolean
FilterSet. accept(AuditEvent event)
void
AuditListener. addError(AuditEvent event)
Notify that an audit error was discovered on a specific file.void
SeverityLevelCounter. addError(AuditEvent event)
void
AuditListener. addException(AuditEvent event, java.lang.Throwable throwable)
Notify that an exception happened while performing audit.void
SeverityLevelCounter. addException(AuditEvent event, java.lang.Throwable throwable)
void
AuditListener. auditFinished(AuditEvent event)
Notify that the audit is finished.void
SeverityLevelCounter. auditFinished(AuditEvent event)
void
AuditListener. auditStarted(AuditEvent event)
Notify that the audit is about to start.void
SeverityLevelCounter. auditStarted(AuditEvent event)
void
AuditListener. fileFinished(AuditEvent event)
Notify that audit is finished on a specific file.void
SeverityLevelCounter. fileFinished(AuditEvent event)
void
AuditListener. fileStarted(AuditEvent event)
Notify that audit is about to start on a specific file.void
SeverityLevelCounter. fileStarted(AuditEvent event)
-
Uses of AuditEvent in com.puppycrawl.tools.checkstyle.checks
Methods in com.puppycrawl.tools.checkstyle.checks with parameters of type AuditEvent Modifier and Type Method Description static boolean
SuppressWarningsHolder. isSuppressed(AuditEvent event)
Checks for a suppression of a check with the given source name and location in the last file processed. -
Uses of AuditEvent in com.puppycrawl.tools.checkstyle.filters
Methods in com.puppycrawl.tools.checkstyle.filters with parameters of type AuditEvent Modifier and Type Method Description boolean
SeverityMatchFilter. accept(AuditEvent event)
boolean
SuppressElement. accept(AuditEvent event)
boolean
SuppressionCommentFilter. accept(AuditEvent event)
boolean
SuppressionFilter. accept(AuditEvent event)
boolean
SuppressWarningsFilter. accept(AuditEvent event)
boolean
SuppressWithNearbyCommentFilter. accept(AuditEvent event)
private SuppressionCommentFilter.Tag
SuppressionCommentFilter. findNearestMatch(AuditEvent event)
Finds the nearest comment text tag that matches an audit event.private boolean
SuppressElement. isFileNameAndModuleNotMatching(AuditEvent event)
Is matching by file name and Check name.private boolean
SuppressElement. isLineAndColumnMatch(AuditEvent event)
Whether line and column match.boolean
SuppressionCommentFilter.Tag. isMatch(AuditEvent event)
Determines whether the source of an audit event matches the text of this tag.boolean
SuppressWithNearbyCommentFilter.Tag. isMatch(AuditEvent event)
Determines whether the source of an audit event matches the text of this tag.private boolean
SuppressWithNearbyCommentFilter. matchesTag(AuditEvent event)
Whether current event matches any tag fromSuppressWithNearbyCommentFilter.tags
.
-