Skip to content

Add optional DRC-disable flags to platformConfig#608

Merged
seveibar merged 1 commit intomainfrom
codex/add-optional-drc-checks-to-platformconfig
Mar 3, 2026
Merged

Add optional DRC-disable flags to platformConfig#608
seveibar merged 1 commit intomainfrom
codex/add-optional-drc-checks-to-platformconfig

Conversation

@seveibar
Copy link
Contributor

@seveibar seveibar commented Mar 3, 2026

Motivation

  • Provide platform-level toggles to disable specific DRC checks (netlist, routing, placement) so downstream tooling can opt out of those validations via configuration.
  • Keep runtime validation and published docs in sync by adding the fields to the TypeScript interface and the Zod schema so config parsing preserves these options.

Description

  • Added netlistDrcChecksDisabled, routingDrcChecksDisabled, and placementDrcChecksDisabled as optional boolean properties to the PlatformConfig TypeScript interface in lib/platformConfig.ts.
  • Updated the platformConfig Zod schema in lib/platformConfig.ts to accept and validate the three optional boolean flags.
  • Added a unit test tests/platformConfig.drcChecksDisabled.test.ts that verifies the new fields are accepted and preserved by platformConfig.parse.
  • Regenerated docs so README.md and generated/PROPS_OVERVIEW.md include the new fields and ran formatting and typechecks.

Testing

  • Ran bun test tests/platformConfig.drcChecksDisabled.test.ts and the test passed (1 pass, 0 fail).
  • Ran the doc generation scripts bun scripts/generate-component-types.ts, bun scripts/generate-manual-edits-docs.ts, bun scripts/generate-readme-docs.ts, and bun scripts/generate-props-overview.ts, and they completed successfully.
  • Ran bunx tsc --noEmit and bun run format, both completed successfully with no type errors and formatting applied.

Codex Task

@seveibar seveibar merged commit c66f300 into main Mar 3, 2026
5 checks passed
@seveibar seveibar deleted the codex/add-optional-drc-checks-to-platformconfig branch March 3, 2026 23:34
@tscircuitbot
Copy link
Contributor


Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants