Merge "Deprecate notice property."
This commit is contained in:
commit
06776d6b6a
1 changed files with 10 additions and 0 deletions
|
@ -58,6 +58,7 @@ func init() {
|
|||
AddNeverAllowRules(createMakefileGoalRules()...)
|
||||
AddNeverAllowRules(createInitFirstStageRules()...)
|
||||
AddNeverAllowRules(createProhibitFrameworkAccessRules()...)
|
||||
AddNeverAllowRules(createNoticeDeprecationRules()...)
|
||||
}
|
||||
|
||||
// Add a NeverAllow rule to the set of rules to apply.
|
||||
|
@ -238,6 +239,15 @@ func createProhibitFrameworkAccessRules() []Rule {
|
|||
}
|
||||
}
|
||||
|
||||
func createNoticeDeprecationRules() []Rule {
|
||||
return []Rule{
|
||||
NeverAllow().
|
||||
WithMatcher("notice", isSetMatcherInstance).
|
||||
NotIn("vendor/linaro/linux-firmware/").
|
||||
Because("notice has been replaced by licenses/default_applicable_licenses"),
|
||||
}
|
||||
}
|
||||
|
||||
func neverallowMutator(ctx BottomUpMutatorContext) {
|
||||
m, ok := ctx.Module().(Module)
|
||||
if !ok {
|
||||
|
|
Loading…
Reference in a new issue