Add warning if plugin is ignored due to gatekeeper
Summary: Adds warning if plugin is ignored due to user not being the part of gatekeeper. As it will help us to better support our users Reviewed By: passy Differential Revision: D8952074 fbshipit-source-id: a5b995c778989deb08972081b19313303f8bfabb
This commit is contained in:
committed by
Facebook Github Bot
parent
5b38cbdf76
commit
02cd3ba560
@@ -60,6 +60,11 @@ const exportedPlugins: Array<Class<SonarPlugin<>>> = Array.from(
|
||||
(plugin.gatekeeper && !GK.get(plugin.gatekeeper)) ||
|
||||
disabledPlugins.indexOf(plugin.name) > -1
|
||||
) {
|
||||
console.warn(
|
||||
'Plugin %s will be ignored as user is not part of the gatekeeper "%s".',
|
||||
plugin.name,
|
||||
plugin.gatekeeper,
|
||||
);
|
||||
return null;
|
||||
} else {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user