diff options
| author | 2019-06-27 14:08:51 +0100 | |
|---|---|---|
| committer | 2019-07-02 16:21:51 +0000 | |
| commit | 730f2a57e3ef0ab195fe4232bf7e4e7747f38d84 (patch) | |
| tree | 357acc2c77433c7a9e3d751cc09ec450a3c51232 /java/java_test.go | |
| parent | 88152dd3651ed6793797e5d2044c92a5b8ec247f (diff) | |
Allow neverallow rules to be defined by custom bootstrap_go_packages
* Adds a Rule interface to hide the rule struct and expose the mutator
functions.
* Makes the neverallow() function public as NeverAllow().
* Adds AddNeverAllowRules func to add more rules.
* Moves the population of the builtin rules to init() function.
Bug: 136159343
Test: m droid
- changed a built in rule to cause build failure to ensure the
rules were still being applied, then reverted the change and
ran 'm droid' again.
Change-Id: Ie3a4456d1f6bc12c5b4931bf698333275347fdf0
Merged-In: Ie3a4456d1f6bc12c5b4931bf698333275347fdf0
(cherry picked from commit 18af090842f0d3e47b7595d48b540bbb07c0d167)
(cherry picked from commit b1cacba02276e7b41e9fba19e98ff8247a26ae37)
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions