@@ -709,9 +709,10 @@ tomllint: ## 📑 TOML validation (tomlcheck)
709
709
# =============================================================================
710
710
# help: 🕸️ WEBPAGE LINTERS & STATIC ANALYSIS (HTML/CSS/JS lint + security scans + formatting)
711
711
# help: install-web-linters - Install HTMLHint, Stylelint, ESLint, Retire.js & Prettier via npm
712
- # help: lint-web - Run HTMLHint, Stylelint, ESLint, Retire.js and npm audit
712
+ # help: nodejsscan - Run nodejsscan for JS security vulnerabilities
713
+ # help: lint-web - Run HTMLHint, Stylelint, ESLint, Retire.js, nodejsscan and npm audit
713
714
# help: format-web - Format HTML, CSS & JS files with Prettier
714
- .PHONY : install-web-linters lint-web format-web
715
+ .PHONY : install-web-linters nodejsscan lint-web format-web
715
716
716
717
install-web-linters :
717
718
@echo " 🔧 Installing HTML/CSS/JS lint, security & formatting tools..."
@@ -726,7 +727,12 @@ install-web-linters:
726
727
retire \
727
728
prettier
728
729
729
- lint-web : install-web-linters
730
+ nodejsscan :
731
+ @echo " 🔒 Running nodejsscan for JavaScript security vulnerabilities..."
732
+ $(call ensure_pip_package,nodejsscan)
733
+ @$(VENV_DIR ) /bin/nodejsscan --directory ./mcpgateway/static || true
734
+
735
+ lint-web : install-web-linters nodejsscan
730
736
@echo " 🔍 Linting HTML files..."
731
737
@npx htmlhint " mcpgateway/templates/**/*.html" || true
732
738
@echo " 🔍 Linting CSS files..."
@@ -748,7 +754,6 @@ format-web: install-web-linters
748
754
" mcpgateway/static/**/*.css" \
749
755
" mcpgateway/static/**/*.js"
750
756
751
-
752
757
# ###############################################################################
753
758
# 🛡️ OSV-SCANNER ▸ vulnerabilities scanner
754
759
# ###############################################################################
0 commit comments