Add per-module phony targets for lint checks
Simplify running lint on a module by adding a per-module phony target, e.g. Gallery2-lint. Bug: 216462289 Test: m Gallery2-lint Change-Id: I9d4ab362bb116d49f00fc3f79d61d7239528d575
This commit is contained in:
@@ -542,6 +542,10 @@ func (l *linter) lint(ctx android.ModuleContext) {
|
|||||||
if l.buildModuleReportZip {
|
if l.buildModuleReportZip {
|
||||||
l.reports = BuildModuleLintReportZips(ctx, l.LintDepSets())
|
l.reports = BuildModuleLintReportZips(ctx, l.LintDepSets())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create a per-module phony target to run the lint check.
|
||||||
|
phonyName := ctx.ModuleName() + "-lint"
|
||||||
|
ctx.Phony(phonyName, xml)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BuildModuleLintReportZips(ctx android.ModuleContext, depSets LintDepSets) android.Paths {
|
func BuildModuleLintReportZips(ctx android.ModuleContext, depSets LintDepSets) android.Paths {
|
||||||
|
Reference in New Issue
Block a user