Skip to content

Add generic record casts rule#22

Merged
benvinegar merged 1 commit intomainfrom
feat/generic-record-casts-rule
Apr 19, 2026
Merged

Add generic record casts rule#22
benvinegar merged 1 commit intomainfrom
feat/generic-record-casts-rule

Conversation

@benvinegar
Copy link
Copy Markdown
Member

Summary

  • add a new types.generic-record-casts rule for as Record<string, unknown> casts on vague parsed/payload variables
  • register the rule in the default pack and document it in the main README plus a dedicated rule README
  • add focused tests and heuristic-regression coverage for the new rule

Benchmark signal

  • full pinned benchmark signal score: 0.7777777777777778
  • best separating metric: findings / file (0.7777777777777778)
  • hit rate: 5/9 AI repos vs 0/9 mature OSS repos

Validation

  • bun test tests/generic-record-casts.test.ts tests/heuristics.test.ts tests/fixtures-regression.test.ts tests/benchmark.test.ts
  • bun run lint

This PR description was generated by Pi using GPT-5

@benvinegar benvinegar merged commit df9e2d4 into main Apr 19, 2026
3 checks passed
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