Skip to content

Commit 004af8c

Browse files
committed
Update Status on PQS rules implementation
1 parent d6f592c commit 004af8c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

PROJECT/1-INBOX/KISS-PQS-FINDINGS-RULES.md renamed to PROJECT/2-WORKING/KISS-PQS-FINDINGS-RULES.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,11 @@ This would catch the specific `highlightSettings` typo but is not a general solu
250250

251251
**Pattern:**
252252
```bash
253-
run_check "ERROR" "MEDIUM" "User input in RegExp constructor without escaping" "hcc-008-unsafe-regexp" \
254-
"-E new[[:space:]]+RegExp[[:space:]]*\\([^)]*\\+[[:space:]]*[a-zA-Z_][a-zA-Z0-9_]*" \
255-
"-E RegExp[[:space:]]*\\([^)]*\\$\\{[^}]*\\}"
253+
# Note: Uses single -E with alternation (|) for BSD grep compatibility
254+
OVERRIDE_GREP_INCLUDE="--include=*.js --include=*.jsx --include=*.ts --include=*.tsx --include=*.php"
255+
run_check "ERROR" "MEDIUM" "User input in RegExp without escaping (HCC-008)" "hcc-008-unsafe-regexp" \
256+
"-E ((new[[:space:]]+)?RegExp[[:space:]]*\\([^)]*[[:space:]]\\+[[:space:]])|((new[[:space:]]+)?RegExp.*\\$\\{)"
257+
unset OVERRIDE_GREP_INCLUDE
256258
```
257259

258260
**Rationale:**

PROJECT/2-WORKING/PLACEHOLDER.md

Whitespace-only changes.

0 commit comments

Comments
 (0)