Skip to content

Conversation

@psteinroe
Copy link
Collaborator

@psteinroe psteinroe commented Dec 14, 2025

the actual changes are just within the codegen task. we now generate config and rule metadata from the sql too.

the flow is now:

  1. generate splinter rule metadata (rules/ directory) from splinter sql
  2. use a Visitor to collect rule metadata from the registry that loads the generated rule metadata when generating analyser code such as config and docs

This allows us to reuse all existing analyse infrastructure outside of the analyser / ast-linter.

@psteinroe psteinroe force-pushed the chore/integrate-splinter-into-codegen branch 2 times, most recently from 67c3a79 to d6a616c Compare December 15, 2025 11:08
psteinroe and others added 3 commits December 15, 2025 13:31
Picked up test import fixes from base branch and applied codegen updates.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@psteinroe psteinroe force-pushed the chore/integrate-splinter-into-codegen branch from d6a616c to 0379759 Compare December 15, 2025 12:34
psteinroe and others added 3 commits December 15, 2025 13:53
Changed SQL file path generation to use relative paths from crate root
instead of absolute paths, fixing CI codegen check failures.

Also removed unused splinter/unknown category from TypeScript types.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Removed unused `use pgls_analyse::RuleMeta;` import from generated
splinter rule files and applied clippy format! macro fix.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@psteinroe psteinroe marked this pull request as ready for review December 15, 2025 13:40
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.

2 participants