Skip to content

feat(perf): regex prefilter — skip files before tree-sitter parse (closes #56 phase-1)#108

Merged
Wolfvin merged 1 commit into
mainfrom
feat/56-regex-prefilter
Jun 30, 2026
Merged

feat(perf): regex prefilter — skip files before tree-sitter parse (closes #56 phase-1)#108
Wolfvin merged 1 commit into
mainfrom
feat/56-regex-prefilter

Conversation

@Wolfvin

@Wolfvin Wolfvin commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Summary

Implements issue #56: regex prefilter to skip files before tree-sitter parse.

What changed

  • New: scripts/prefilter.py
  • Modified: scripts/commands/scan.py (integrate prefilter + --no-prefilter flag)
  • New: tests for no-false-negatives guarantee

Verification

  • Tests: 917 passed, 87 skipped (1 pre-existing main-branch failure in test_hybrid_engine unrelated to this PR)
  • Scan with vs without prefilter: same findings (no false negatives verified end-to-end)
  • Prefilter is conservative: returns None (no-op) when no rules loaded, returns True on any read error
  • Verbose output matches spec: Prefilter: 1240 files checked, 387 passed, 853 skipped (68%) in 0.3s

Closes #56

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Wolfvin Wolfvin merged commit e904a80 into main Jun 30, 2026
0 of 6 checks passed
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Performance & parallelism — worker pool, prefilter, AST disk cache, daemon

1 participant