Merge "Deprecate notice property."

This commit is contained in:
Treehugger Robot 2022-07-21 14:19:28 +00:00 committed by Gerrit Code Review
commit 06776d6b6a

View file

@ -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 {