@zohodesk/codestandard-validator 0.0.4-exp-11 → 0.0.4-exp-12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,9 +11,10 @@ const {
|
|
|
11
11
|
} = require('./printUninstalledPlugins');
|
|
12
12
|
function arePluginsInstalled() {
|
|
13
13
|
let {
|
|
14
|
-
uninstalledPlugins
|
|
14
|
+
uninstalledPlugins,
|
|
15
|
+
noPluginMessage
|
|
15
16
|
} = checkIfPluginsAreInstalled();
|
|
16
|
-
printUninstalledPlugins(uninstalledPlugins);
|
|
17
|
+
printUninstalledPlugins(uninstalledPlugins, noPluginMessage);
|
|
17
18
|
installPlugins(uninstalledPlugins);
|
|
18
19
|
}
|
|
19
20
|
module.exports = {
|
|
@@ -8,7 +8,7 @@ const {
|
|
|
8
8
|
* @function printUninstalledPlugins - to notify the user regarding plugins for the repository has been installed or not
|
|
9
9
|
* @param {Array} uninstalledPlugins - contains list of uninstalled plugins for the project
|
|
10
10
|
*/
|
|
11
|
-
function printUninstalledPlugins(uninstalledPlugins) {
|
|
11
|
+
function printUninstalledPlugins(uninstalledPlugins, noPluginMessage) {
|
|
12
12
|
// let commandToInstallPlugins = 'npx ZDPrecommit setupPlugins'
|
|
13
13
|
if (uninstalledPlugins.length !== 0) {
|
|
14
14
|
Logger.log(Logger.INFO_TYPE, 'The following plugins are not installed:');
|