| 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.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<AuditEvent> |
XMLLogger.FileMessages.errors
The file error events.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AuditEvent> |
XMLLogger.FileMessages.getErrors()
Returns the file error events.
|
| Modifier and Type | Method and Description |
|---|---|
void |
XpathFileGeneratorAuditListener.addError(AuditEvent event) |
void |
DefaultLogger.addError(AuditEvent event)
Print an Emacs compliant line on the error stream.
|
void |
XMLLogger.addError(AuditEvent event) |
void |
XMLLogger.FileMessages.addError(AuditEvent event)
Adds the given error event to the messages.
|
void |
SarifLogger.addError(AuditEvent event)
Notify that an audit error was discovered on a specific file.
|
void |
XpathFileGeneratorAuditListener.addException(AuditEvent event,
java.lang.Throwable throwable) |
void |
DefaultLogger.addException(AuditEvent event,
java.lang.Throwable throwable) |
void |
XMLLogger.addException(AuditEvent event,
java.lang.Throwable throwable) |
void |
SarifLogger.addException(AuditEvent event,
java.lang.Throwable throwable)
Notify that an exception happened while performing audit.
|
void |
XpathFileGeneratorAuditListener.auditFinished(AuditEvent event) |
void |
DefaultLogger.auditFinished(AuditEvent event) |
void |
XMLLogger.auditFinished(AuditEvent event) |
void |
SarifLogger.auditFinished(AuditEvent event)
Notify that the audit is finished.
|
void |
XpathFileGeneratorAuditListener.auditStarted(AuditEvent event) |
void |
DefaultLogger.auditStarted(AuditEvent event) |
void |
XMLLogger.auditStarted(AuditEvent event) |
void |
SarifLogger.auditStarted(AuditEvent event) |
private static int |
AuditEventDefaultFormatter.calculateBufferLength(AuditEvent event,
int severityLevelNameLength)
Returns the length of the buffer for StringBuilder.
|
void |
XpathFileGeneratorAuditListener.fileFinished(AuditEvent event) |
void |
DefaultLogger.fileFinished(AuditEvent event) |
void |
XMLLogger.fileFinished(AuditEvent event) |
void |
SarifLogger.fileFinished(AuditEvent event) |
void |
XpathFileGeneratorAuditListener.fileStarted(AuditEvent event) |
void |
DefaultLogger.fileStarted(AuditEvent event) |
void |
XMLLogger.fileStarted(AuditEvent event) |
void |
SarifLogger.fileStarted(AuditEvent event) |
static java.lang.String |
XpathFileGeneratorAstFilter.findCorrespondingXpathQuery(AuditEvent event)
Returns xpath query corresponding to violation of the
TreeWalkerAuditEvent object which points to the same AST element as specified
AuditEvent object. |
java.lang.String |
AuditEventDefaultFormatter.format(AuditEvent event) |
java.lang.String |
AuditEventFormatter.format(AuditEvent event)
Formats an event message.
|
private static java.lang.String |
AuditEventDefaultFormatter.getCheckShortName(AuditEvent event)
Returns check name without 'Check' suffix.
|
private void |
XMLLogger.writeFileError(AuditEvent event)
Outputs the given event to the writer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Filter.accept(AuditEvent event)
Determines whether or not a filtered AuditEvent is accepted.
|
boolean |
FilterSet.accept(AuditEvent event) |
void |
SeverityLevelCounter.addError(AuditEvent event) |
void |
AuditListener.addError(AuditEvent event)
Notify that an audit error was discovered on a specific file.
|
void |
SeverityLevelCounter.addException(AuditEvent event,
java.lang.Throwable throwable) |
void |
AuditListener.addException(AuditEvent event,
java.lang.Throwable throwable)
Notify that an exception happened while performing audit.
|
void |
SeverityLevelCounter.auditFinished(AuditEvent event) |
void |
AuditListener.auditFinished(AuditEvent event)
Notify that the audit is finished.
|
void |
SeverityLevelCounter.auditStarted(AuditEvent event) |
void |
AuditListener.auditStarted(AuditEvent event)
Notify that the audit is about to start.
|
void |
SeverityLevelCounter.fileFinished(AuditEvent event) |
void |
AuditListener.fileFinished(AuditEvent event)
Notify that audit is finished on a specific file.
|
void |
SeverityLevelCounter.fileStarted(AuditEvent event) |
void |
AuditListener.fileStarted(AuditEvent event)
Notify that audit is about to start on a specific file.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SuppressionFilter.accept(AuditEvent event) |
boolean |
SuppressionSingleFilter.accept(AuditEvent event) |
boolean |
SuppressFilterElement.accept(AuditEvent event) |
boolean |
SuppressWithPlainTextCommentFilter.accept(AuditEvent event) |
boolean |
SeverityMatchFilter.accept(AuditEvent event) |
boolean |
SuppressWarningsFilter.accept(AuditEvent event) |
private static SuppressWithPlainTextCommentFilter.Suppression |
SuppressWithPlainTextCommentFilter.getNearestSuppression(java.util.List<SuppressWithPlainTextCommentFilter.Suppression> suppressions,
AuditEvent event)
Finds the nearest
SuppressWithPlainTextCommentFilter.Suppression instance which can suppress
the given AuditEvent. |
private boolean |
SuppressWithPlainTextCommentFilter.Suppression.isCheckMatch(AuditEvent event)
Checks whether
AuditEvent source name matches the check format. |
private boolean |
SuppressFilterElement.isFileNameAndModuleNameMatching(AuditEvent event)
Is matching by file name, module id, and Check name.
|
private boolean |
SuppressWithPlainTextCommentFilter.Suppression.isIdMatch(AuditEvent event)
Checks whether the
AuditEvent module ID matches the ID format. |
private boolean |
SuppressWithPlainTextCommentFilter.Suppression.isInScopeOfSuppression(AuditEvent event)
Checks whether
AuditEvent is in the scope of the suppression. |
private boolean |
SuppressFilterElement.isLineAndColumnMatching(AuditEvent event)
Whether line and column match.
|
private boolean |
SuppressWithPlainTextCommentFilter.Suppression.isMatch(AuditEvent event)
Checks whether the suppression matches the given
AuditEvent. |
private boolean |
SuppressWithPlainTextCommentFilter.Suppression.isMessageMatch(AuditEvent event)
Checks whether the
AuditEvent message matches the message format. |
private boolean |
SuppressFilterElement.isMessageNameMatching(AuditEvent event)
Is matching by message.
|
Copyright © 2001-2022. All Rights Reserved.