Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06776d6b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Deprecate notice property."

parents 485127c7 124f3fe8
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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 {