Skip to content

fix: install lint tools for downstream consumers#21

Merged
slusset merged 1 commit intomainfrom
fix/install-lint-tools-for-consumers
Mar 7, 2026
Merged

fix: install lint tools for downstream consumers#21
slusset merged 1 commit intomainfrom
fix/install-lint-tools-for-consumers

Conversation

@slusset
Copy link
Owner

@slusset slusset commented Mar 7, 2026

Summary

  • The idd-check composite action uses npx spectral lint and npx gherkin-lint, but when running in a downstream repo, only npm install idd-toolkit is executed
  • @stoplight/spectral-cli and gherkin-lint are devDependencies of this repo, so they aren't installed transitively via idd-toolkit
  • This causes npx spectral to exit with code 127 (command not found), failing the IDD Validation Suite
  • Fix: explicitly install both lint tools alongside idd-toolkit in the consumer install path

Test plan

🤖 Generated with Claude Code

When the idd-check action runs in a consuming repo, it only runs
`npm install idd-toolkit` which doesn't include devDependencies.
This causes `npx spectral lint` to fail with exit code 127 (command
not found). Add the lint tools explicitly to the install step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions
Copy link

github-actions bot commented Mar 7, 2026

IDD Compliance Review

Check Status Errors Warnings
Traceability 0 0
Front-Matter 0 0
Capability Scope 0 0
Fixtures 0 0
Models 0 3
Journey Maps 0 0
OpenAPI Lint 0
Gherkin Lint 0
✅ Traceability

Info

  • Found 1 persona file(s)
  • Checked 1 journey file(s)
  • Checked 2 story file(s)
  • Checked 1 feature file(s)
  • Checked 2 API operation(s) across 1 contract file(s)
  • Checked 1 fixture file(s)
  • Checked 1 journey map(s)
  • Checked 1 model file(s)
✅ Front-Matter

Info

  • Checked 9 spec file(s): 9 passed, 0 with issues
✅ Capability Scope

Info

  • Found 1 capability file(s): trade-show-signup
  • Scope coverage: 5/5 files covered
✅ Fixtures

Info

  • specs/fixtures/mobile-signup.fixture.yaml: valid
  • Validated 1 fixture file(s)
✅ Models

Warnings

  • specs/models/account.model.yaml: Entity should have a description
  • specs/models/account.model.yaml: Entity should define identity field
  • specs/models/account.model.yaml: Rule "account-activates-on-signup" should have a description

Info

  • Validated 1 model file(s)
✅ Journey Maps

Info

  • specs/journey-maps/trade-show-signup.journey-map.yaml: valid
  • Validated 1 journey map file(s)
✅ OpenAPI Lint
No results with a severity of 'error' found!

Total: 0 error(s), 3 warning(s)

Automated by IDD Toolkit

@slusset slusset merged commit ccf7dcd into main Mar 7, 2026
1 check passed
@slusset slusset deleted the fix/install-lint-tools-for-consumers branch March 7, 2026 23:17
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