Complain about ynh_npm install --global é_è

This commit is contained in:
Alexandre Aubin 2024-06-11 03:57:48 +02:00
parent f8f381633e
commit 5d2c46a002

View file

@ -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 ..." "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() @test()
def ynh_add_fpm_config_deprecated_package_option(self): def ynh_add_fpm_config_deprecated_package_option(self):
if self.containsregex(r"ynh_add_fpm_config .*package=.*"): if self.containsregex(r"ynh_add_fpm_config .*package=.*"):