aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-09-14 23:57:55 -0400
committerB. Watson <urchlay@slackware.uk>2026-09-14 23:57:55 -0400
commit26df12bde7f3666d49dab1b8e828feb3d85688a8 (patch)
tree15f915bacbe5a6219ba1d0bfca0ae39c8e892e08 /sbolint
parent8dd8dc8616a879c00237f1ebca7f3cbcce1fb772 (diff)
downloadsbo-maintainer-tools-26df12bde7f3666d49dab1b8e828feb3d85688a8.tar.gz
sbolint: do not allow "npm audit fix" in SlackBuild.
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbolint b/sbolint
index f96f365..93c2fe0 100755
--- a/sbolint
+++ b/sbolint
@@ -1617,6 +1617,8 @@ sub check_script {
}
} elsif(/^[^#]*(SLCKFLAGS|PRGMAN|PGK)/) {
log_warning("$file:$lineno: $1 looks like a typo");
+ } elsif(/^[^#]*npm\s+audit\s+fix/) {
+ log_error("$file:$lineno: scripts must not call 'npm audit fix'");
}
if(/^[^#]*<documentation>/) {