Skip to content

Commit

Permalink
Skip elixir which is now in Pro (#3230)
Browse files Browse the repository at this point in the history
* Skip elixir which is now in Pro

test plan:
see related PR in semgrep

* adding more comments in codemapignore
  • Loading branch information
aryx authored Nov 21, 2023
1 parent aa0afb5 commit 54e7d73
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .codemapignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- sh -*-
# gitignore-like file for Codemap (see https://github.com/aryx/codemap)
# The goal here is to just show and count the rules in codemap

# skipping all files, targets and rules (but rules will be restored below)
[a-z]*/**/*.*

# restore directories which are not languages
# coupling: see scripts/run-test rule_folders variable
!libsonnet/
!scripts/
!stats/
# restore also fingerprints/ ? trusted_python/ ?

# do not skip the rules
![a-z]*/**/*.yaml

# pad stuff
/TODO/
4 changes: 2 additions & 2 deletions scripts/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ fi
# may contain .yml files that are not Semgrep rules and would result
# in errors.
#
# Skipping the "Apex" folder because it will require splitting test logic
# Skipping the "Apex" and "Elixir" folders because it will require splitting test logic
# to run Semgrep OSS and Semgrep Pro with different expected results.
#
set_rule_folders() {
rule_folders=$(find . -mindepth 1 -maxdepth 1 -type d \
| grep -v '^./\(\..*\|stats\|trusted_python\|fingerprints\|scripts\|libsonnet\|apex\)/\?$' \
| grep -v '^./\(\..*\|stats\|trusted_python\|fingerprints\|scripts\|libsonnet\|apex\|elixir\)/\?$' \
| sort)
if [[ -z "$rule_folders" ]]; then
error "Cannot find any rule folders to scan in $(pwd)"
Expand Down

0 comments on commit 54e7d73

Please sign in to comment.