Skip to content

fix: anchor Grit rules for lint performance#26

Merged
OperationalFallacy merged 2 commits into
masterfrom
fix/grit-rule-performance
Jun 11, 2026
Merged

fix: anchor Grit rules for lint performance#26
OperationalFallacy merged 2 commits into
masterfrom
fix/grit-rule-performance

Conversation

@OperationalFallacy

@OperationalFallacy OperationalFallacy commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Summary

Rewrites broad Grit scans into direct call, statement, or AST-node anchors so the full preset remains usable on large files. Adds a small profiler script for timing rules over real file paths without copying application source into fixtures.

Validation

  • yarn vitest run tests/rules
  • npx tsx scripts/profile-rules.ts --preset full <large-file>
  • Local Biome lint of the previously slow auth service file no longer fails plugin compilation and checks in about 1.3s through Biome

Notes

This PR is separate from the defragmentation calibration work and keeps fixture coverage generic.

@OperationalFallacy OperationalFallacy merged commit 287a33b into master Jun 11, 2026
4 checks passed
@OperationalFallacy OperationalFallacy deleted the fix/grit-rule-performance branch June 11, 2026 18:24
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