Constructor and description |
---|
LintGradleClient
(com.android.tools.lint.client.api.IssueRegistry registry, com.android.tools.lint.LintCliFlags flags, BasePlugin plugin, com.android.builder.model.AndroidProject modelProject, String variantName) |
Type | Name and description |
---|---|
protected void |
addProgressPrinter() |
protected com.android.tools.lint.client.api.LintRequest |
createLintRequest(List<File> files) |
protected com.android.tools.lint.detector.api.Project |
createProject(File dir, File referenceDir) |
List<File> |
findRuleJars(com.android.tools.lint.detector.api.Project project) |
File |
getCacheDir(boolean create) |
BasePlugin |
getPlugin() |
File |
getSdkHome() |
static List<com.android.tools.lint.Warning> |
merge(Map<com.android.builder.model.Variant, List<com.android.tools.lint.Warning>> warningMap, com.android.builder.model.AndroidProject project) Given a list of results from separate variants, merge them into a single list of warnings, and mark their |
List<com.android.tools.lint.Warning> |
run(com.android.tools.lint.client.api.IssueRegistry registry) Run lint with the given registry and return the resulting warnings |
void |
setCustomRules(List<File> customRules) |
Methods inherited from class | Name |
---|---|
class com.android.tools.lint.LintCliClient |
com.android.tools.lint.LintCliClient#run(com.android.tools.lint.client.api.IssueRegistry, java.util.List), com.android.tools.lint.LintCliClient#log(com.android.tools.lint.detector.api.Severity, java.lang.Throwable, java.lang.String, [Ljava.lang.Object;), com.android.tools.lint.LintCliClient#report(com.android.tools.lint.detector.api.Context, com.android.tools.lint.detector.api.Issue, com.android.tools.lint.detector.api.Severity, com.android.tools.lint.detector.api.Location, java.lang.String, com.android.tools.lint.detector.api.TextFormat), com.android.tools.lint.LintCliClient#getConfiguration(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#readFile(java.io.File), com.android.tools.lint.LintCliClient#getFlags(), com.android.tools.lint.LintCliClient#getJavaParser(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#getXmlParser(), com.android.tools.lint.LintCliClient#getResourceFolders(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#createConfigurationFromFile(java.io.File), com.android.tools.lint.LintCliClient#haveErrors(), com.android.tools.lint.LintCliClient#log(java.lang.Throwable, java.lang.String, [Ljava.lang.Object;), com.android.tools.lint.LintCliClient#findResource(java.lang.String), com.android.tools.lint.LintCliClient#isSubclassOf(com.android.tools.lint.detector.api.Project, java.lang.String, java.lang.String), com.android.tools.lint.LintCliClient#openConnection(java.net.URL), com.android.tools.lint.LintCliClient#readBytes(java.io.File), com.android.tools.lint.LintCliClient#getProject(java.io.File, java.io.File), com.android.tools.lint.LintCliClient#getCacheDir(boolean), com.android.tools.lint.LintCliClient#getSdk(), com.android.tools.lint.LintCliClient#getSuperClass(com.android.tools.lint.detector.api.Project, java.lang.String), com.android.tools.lint.LintCliClient#getTargets(), com.android.tools.lint.LintCliClient#closeConnection(java.net.URLConnection), com.android.tools.lint.LintCliClient#getSdkInfo(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#getHighestKnownApiLevel(), com.android.tools.lint.LintCliClient#getSdkHome(), com.android.tools.lint.LintCliClient#getJavaLibraries(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#getCompileTarget(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#replaceDetector(java.lang.Class), com.android.tools.lint.LintCliClient#getJavaSourceFolders(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#getJavaClassFolders(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#isGradleProject(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#registerProject(java.io.File, com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#getProjectName(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#findGlobalRuleJars(), com.android.tools.lint.LintCliClient#findRuleJars(com.android.tools.lint.detector.api.Project), com.android.tools.lint.LintCliClient#isProjectDirectory(java.io.File), com.android.tools.lint.LintCliClient#checkForSuppressComments(), com.android.tools.lint.LintCliClient#addCustomLintRules(com.android.tools.lint.client.api.IssueRegistry), com.android.tools.lint.LintCliClient#supportsProjectResources(), com.android.tools.lint.LintCliClient#getProjectResources(com.android.tools.lint.detector.api.Project, boolean), com.android.tools.lint.LintCliClient#createResourceItemHandle(com.android.ide.common.res2.ResourceItem), com.android.tools.lint.LintCliClient#wait(), com.android.tools.lint.LintCliClient#wait(long), com.android.tools.lint.LintCliClient#wait(long, int), com.android.tools.lint.LintCliClient#equals(java.lang.Object), com.android.tools.lint.LintCliClient#toString(), com.android.tools.lint.LintCliClient#hashCode(), com.android.tools.lint.LintCliClient#getClass(), com.android.tools.lint.LintCliClient#notify(), com.android.tools.lint.LintCliClient#notifyAll() |
class com.android.tools.lint.client.api.LintClient |
com.android.tools.lint.client.api.LintClient#log(java.lang.Throwable, java.lang.String, [Ljava.lang.Object;), com.android.tools.lint.client.api.LintClient#log(com.android.tools.lint.detector.api.Severity, java.lang.Throwable, java.lang.String, [Ljava.lang.Object;), com.android.tools.lint.client.api.LintClient#findResource(java.lang.String), com.android.tools.lint.client.api.LintClient#isSubclassOf(com.android.tools.lint.detector.api.Project, java.lang.String, java.lang.String), com.android.tools.lint.client.api.LintClient#openConnection(java.net.URL), com.android.tools.lint.client.api.LintClient#report(com.android.tools.lint.detector.api.Context, com.android.tools.lint.detector.api.Issue, com.android.tools.lint.detector.api.Severity, com.android.tools.lint.detector.api.Location, java.lang.String, com.android.tools.lint.detector.api.TextFormat), com.android.tools.lint.client.api.LintClient#readBytes(java.io.File), com.android.tools.lint.client.api.LintClient#getConfiguration(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#readFile(java.io.File), com.android.tools.lint.client.api.LintClient#getProject(java.io.File, java.io.File), com.android.tools.lint.client.api.LintClient#getCacheDir(boolean), com.android.tools.lint.client.api.LintClient#getSdk(), com.android.tools.lint.client.api.LintClient#getSuperClass(com.android.tools.lint.detector.api.Project, java.lang.String), com.android.tools.lint.client.api.LintClient#getTargets(), com.android.tools.lint.client.api.LintClient#closeConnection(java.net.URLConnection), com.android.tools.lint.client.api.LintClient#getJavaParser(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#getSdkInfo(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#getHighestKnownApiLevel(), com.android.tools.lint.client.api.LintClient#getSdkHome(), com.android.tools.lint.client.api.LintClient#getJavaLibraries(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#getCompileTarget(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#getXmlParser(), com.android.tools.lint.client.api.LintClient#getResourceFolders(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#replaceDetector(java.lang.Class), com.android.tools.lint.client.api.LintClient#getJavaSourceFolders(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#getJavaClassFolders(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#isGradleProject(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#registerProject(java.io.File, com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#getProjectName(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#findGlobalRuleJars(), com.android.tools.lint.client.api.LintClient#findRuleJars(com.android.tools.lint.detector.api.Project), com.android.tools.lint.client.api.LintClient#isProjectDirectory(java.io.File), com.android.tools.lint.client.api.LintClient#checkForSuppressComments(), com.android.tools.lint.client.api.LintClient#addCustomLintRules(com.android.tools.lint.client.api.IssueRegistry), com.android.tools.lint.client.api.LintClient#supportsProjectResources(), com.android.tools.lint.client.api.LintClient#getProjectResources(com.android.tools.lint.detector.api.Project, boolean), com.android.tools.lint.client.api.LintClient#createResourceItemHandle(com.android.ide.common.res2.ResourceItem), com.android.tools.lint.client.api.LintClient#wait(), com.android.tools.lint.client.api.LintClient#wait(long), com.android.tools.lint.client.api.LintClient#wait(long, int), com.android.tools.lint.client.api.LintClient#equals(java.lang.Object), com.android.tools.lint.client.api.LintClient#toString(), com.android.tools.lint.client.api.LintClient#hashCode(), com.android.tools.lint.client.api.LintClient#getClass(), com.android.tools.lint.client.api.LintClient#notify(), com.android.tools.lint.client.api.LintClient#notifyAll() |
Given a list of results from separate variants, merge them into a single list of warnings, and mark their
warningMap
- a map from variant to corresponding warningsproject
- the project modelRun lint with the given registry and return the resulting warnings