Skip to content

Split Semgrep adapter by responsibility#18

Merged
haasonsaas merged 1 commit into
mainfrom
refactor/semgrep-file-boundaries
Jul 17, 2026
Merged

Split Semgrep adapter by responsibility#18
haasonsaas merged 1 commit into
mainfrom
refactor/semgrep-file-boundaries

Conversation

@haasonsaas

Copy link
Copy Markdown
Collaborator

Summary

  • split the 996-line adapter into CLI, adapter, Semgrep process, trace parser, secure snapshot, and diff modules
  • split the 680-line real-core suite into positive rules, negative rules, adapter behavior, and shared integration helpers
  • preserve the single rules YAML because semgrep-core -rules and the analyzer configuration digest bind that file directly

Behavior

Production declarations and integration-test declarations match the pre-refactor versions. The change moves code without changing scanner behavior or receipt contracts.

Test plan

  • go test -count=1 ./...
  • ROOM_SEMGREP_CORE=/home/developer/.local/bin/semgrep-core go test -count=1 -tags=semgrep_integration ./cmd/room-semgrep
  • actionlint .github/workflows/ci.yml

@haasonsaas
haasonsaas merged commit 8bdea84 into main Jul 17, 2026
4 checks passed
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.

1 participant