Skip to content

Commit 87e7bab

Browse files
committed
🤖 fix: expand Makefile shellcheck exclusions
Exclude common non-repo directories like node_modules and venvs from\nSHELL_SRC_FILES to reduce noise and avoid scanning vendored scripts. Change-Id: Iad8b1fcbe40631754709e60fa210c243e0023337 Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent b1af5ef commit 87e7bab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ lint-zizmor: ## Run zizmor security analysis on GitHub Actions workflows
293293
@./scripts/zizmor.sh --min-confidence high .
294294

295295
# Shell files to lint (excludes node_modules, build artifacts, .git)
296-
SHELL_SRC_FILES := $(shell find . -not \( -path '*/.git/*' -o -path './node_modules/*' -o -path './build/*' -o -path './dist/*' \) -type f -name '*.sh' 2>/dev/null)
296+
SHELL_SRC_FILES := $(shell find . -not \( -path '*/.git/*' -o -path '*/node_modules/*' -o -path '*/build/*' -o -path '*/dist/*' -o -path '*/.venv/*' -o -path '*/Pods/*' \) -type f -name '*.sh' 2>/dev/null)
297297

298298
lint-shellcheck: ## Run shellcheck on shell scripts
299299
shellcheck --external-sources $(SHELL_SRC_FILES)

0 commit comments

Comments
 (0)