public class JarFileIssueRegistry extends IssueRegistry
An IssueRegistry for a custom lint rule jar file. The rule jar should provide a
manifest entry with the key Lint-Registry and the value of the fully qualified name of an
implementation of IssueRegistry (with a default constructor).
NOTE: The custom issue registry should not extend this file; it should be a plain IssueRegistry! This file is used internally to wrap the given issue registry.
BASELINE, CANCELLED, LINT_ERROR, PARSER_ERROR| Modifier and Type | Method and Description |
|---|---|
static JarFileIssueRegistry |
get(LintClient client,
java.io.File jarFile) |
java.util.List<Issue> |
getIssues()
Returns the list of issues that can be found by all known detectors.
|
boolean |
hasLombokLegacyDetectors()
True if one or more java detectors were found that use the old Lombok-based API
|
boolean |
hasPsiLegacyDetectors()
True if one or more java detectors were found that use the old PSI-based API
|
boolean |
isUpToDate()
Whether this issue registry is up to date.
|
getCategories, getIssue, getIssueCapacity, getIssuesForScope, isCategoryName, isIssueId, resetpublic boolean hasLombokLegacyDetectors()
public boolean hasPsiLegacyDetectors()
@NonNull public static JarFileIssueRegistry get(@NonNull LintClient client, @NonNull java.io.File jarFile) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionpublic boolean isUpToDate()
IssueRegistryisUpToDate in class IssueRegistry@NonNull public java.util.List<Issue> getIssues()
IssueRegistrygetIssues in class IssueRegistry