Skip to content

Commit 39b82db

Browse files
committed
Moves excluding Semgrep test files to .semgrepignore
1 parent 3a6086c commit 39b82db

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/semgrep-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jobs:
5959
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
6060
- run: |
6161
semgrep $SEMGREP_ARGS \
62-
--exclude .ci/semgrep/**/*.go \
6362
--config .ci/.semgrep.yml \
6463
--config .ci/.semgrep-constants.yml \
6564
--config .ci/.semgrep-test-constants.yml \

.semgrepignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ tests/
2727

2828
# Semgrep-action log folder
2929
.semgrep_logs/
30+
31+
# Our Semgrep rules folder
32+
.ci/semgrep/

GNUmakefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@ semgrep-all: semgrep-test semgrep-validate ## Run semgrep on all files
462462
@echo "make: Running Semgrep checks locally (must have semgrep installed)..."
463463
@semgrep $(SEMGREP_ARGS) \
464464
$(if $(filter-out $(origin PKG), undefined),--include $(PKG_NAME),) \
465-
--exclude .ci/semgrep/**/*.go \
466465
--config .ci/.semgrep.yml \
467466
--config .ci/.semgrep-constants.yml \
468467
--config .ci/.semgrep-test-constants.yml \
@@ -485,7 +484,6 @@ semgrep-code-quality: semgrep-test semgrep-validate ## [CI] Semgrep Checks / Cod
485484
@echo "make: Running Semgrep checks locally (must have semgrep installed)"
486485
@semgrep $(SEMGREP_ARGS) \
487486
$(if $(filter-out $(origin PKG), undefined),--include $(PKG_NAME),) \
488-
--exclude .ci/semgrep/**/*.go \
489487
--config .ci/.semgrep.yml \
490488
--config .ci/.semgrep-constants.yml \
491489
--config .ci/.semgrep-test-constants.yml \
@@ -514,7 +512,6 @@ semgrep-fix: semgrep-validate ## Fix Semgrep issues that have fixes
514512
@echo "make: WARNING: This will not fix rules that don't have autofixes"
515513
@semgrep $(SEMGREP_ARGS) --autofix \
516514
$(if $(filter-out $(origin PKG), undefined),--include $(PKG_NAME),) \
517-
--exclude .ci/semgrep/**/*.go \
518515
--config .ci/.semgrep.yml \
519516
--config .ci/.semgrep-constants.yml \
520517
--config .ci/.semgrep-test-constants.yml \

0 commit comments

Comments
 (0)