Skip to content

feat: add orphaned-stages rule (v0.1.1)#6

Merged
jakeva merged 1 commit into
mainfrom
feat/orphaned-stages
Mar 31, 2026
Merged

feat: add orphaned-stages rule (v0.1.1)#6
jakeva merged 1 commit into
mainfrom
feat/orphaned-stages

Conversation

@jakeva
Copy link
Copy Markdown
Owner

@jakeva jakeva commented Mar 31, 2026

Summary

  • Adds orphaned-stages as a fifth lint rule — flags stages that are completely disconnected from the pipeline graph (no prerequisites, nothing depends on them)
  • Violations are emitted at warning severity: [warn: orphaned-stages] in text output, "level": "warning" in SARIF
  • Violation struct gains a Severity field ("" = error, "warning" = warn)
  • Adds testdata/complex.json: 20-stage fixture exercising all five rules
  • Adds CONTRIBUTING.md

Test plan

  • make test passes (22 tests, all green)
  • TestOrphanedStages_ComplexTopology covers diamond subgraph, separate chain, two orphaned islands, and empty-refId stage in one fixture
  • Text output renders [warn: orphaned-stages] prefix
  • SARIF output emits "level": "warning" for orphaned-stage violations

Adds a fifth lint rule that flags stages completely disconnected from the
pipeline graph — no prerequisites and nothing depends on them. Violations
are emitted at warning severity, rendering as [warn: orphaned-stages] in
text output and "level": "warning" in SARIF.

- Violation struct gains a Severity field (empty = error, "warning" = warn)
- Reporter renders warn prefix in text; passes level through in SARIF
- testdata/complex.json: 20-stage fixture exercising all five rules
- CONTRIBUTING.md: contributor guide
@jakeva jakeva merged commit e9b37f6 into main Mar 31, 2026
4 checks passed
@jakeva jakeva deleted the feat/orphaned-stages branch April 1, 2026 01:02
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