From 5d2c46a002e864250655deaeee5ac2f1a7096da3 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 11 Jun 2024 03:57:48 +0200 Subject: [PATCH] =?UTF-8?q?Complain=20about=20ynh=5Fnpm=20install=20--glob?= =?UTF-8?q?al=20=C3=A9=5F=C3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package_linter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package_linter.py b/package_linter.py index 96da3dd..3930567 100755 --- a/package_linter.py +++ b/package_linter.py @@ -2756,6 +2756,11 @@ class Script(TestSuite): "The --keep option of ynh_setup_source expects relative paths, not absolute path ... you do not need to prefix everything with '$final_path' in the --keep arg ..." ) + @test() + def ynh_npm_global(self): + if self.containsregex(r"ynh_npm.*install.*global"): + yield Warning("Please don't install stuff on global scope with npm install --global é_è") + @test() def ynh_add_fpm_config_deprecated_package_option(self): if self.containsregex(r"ynh_add_fpm_config .*package=.*"):