Skip to content

quality: add exclude paths and config overrides - #82

Merged
fall-out-bug merged 3 commits into
mainfrom
feat/quality-exclude-config
Feb 22, 2026
Merged

quality: add exclude paths and config overrides#82
fall-out-bug merged 3 commits into
mainfrom
feat/quality-exclude-config

Conversation

@fall-out-bug

Copy link
Copy Markdown
Owner

Summary

Adds configurable exclusions and thresholds for quality checks (size, complexity, coverage).

Changes

Size check

  • Exclude .tmp/ and /sdp/ from file size walk (external/vendor paths)

Complexity check

  • Exclude .tmp/, /sdp/, vendor/, node_modules/ from gocyclo output
  • Add complexity_exclude and complexity_threshold to .sdp/config.yml
  • Load threshold from config (default 10)

Coverage check

  • Add coverage_exclude to config
  • When set: run go list ./..., filter packages, then go test <pkgs> -cover
  • Allows excluding cmd/ or integration-heavy packages from coverage gate

Config schema

quality:
  coverage_exclude: ["cmd/", "internal/runtime"]
  complexity_threshold: 40
  complexity_exclude: ["cmd/"]

Use case

Projects like sdp_dev have:

  • .tmp/beads-src (external dependency) — inflates size/complexity
  • cmd/ packages (integration-style) — low coverage, high complexity
  • sdp/ submodule — should not be checked

This PR lets such projects pass quality gates without refactoring external code.

Made with Cursor

- size: exclude .tmp/ and /sdp/ from file size check
- complexity: exclude .tmp/, /sdp/, vendor; add complexity_exclude, complexity_threshold config
- coverage: add coverage_exclude config, filter packages for go test

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Feb 21, 2026

Copy link
Copy Markdown

SDP Verification ❌

Status: Verification failed

Gate Results

Gate Status
Passed 1
Failed 1
Total 2
Evidence Summary

Chain Integrity

⊘ Evidence chain verification not required


View full details in Workflow Run

@fall-out-bug
fall-out-bug merged commit 28d2876 into main Feb 22, 2026
10 of 12 checks passed
@fall-out-bug
fall-out-bug deleted the feat/quality-exclude-config branch February 23, 2026 09:15
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