How bhuvansh855/pyrift-example-plugin works
This is a minimal PyRift plugin template. A developer runs PyRift on source; the host discovers the plugin’s rule provider and manifest through the declared entry points, then the rule checks Python ASTs for calls to the removed apply() API and produces findings. The manifest supplies plugin metadata. The excerpts show rule construction and finding creation, but not the host’s scan-time dispatch, so that link is marked unverified. Tests and delivery tooling are excluded.
Main entry points: rules.py Rule provider · pyproject.toml Plugin entry points · manifest.py Plugin manifest
Components 8
Other components
- Developer
- Scanned source
- PyRift host
- Plugin entry points
pyproject.toml - Rule provider
src/pyrift_example/rules.py - EXP001 checker
src/pyrift_example/rules.py - Plugin manifest
src/pyrift_example/manifest.py - Rule findings
Connections 9
- Developer → PyRift host: runs scan
README.md - Scanned source → PyRift host: scans
README.md - Plugin entry points → Rule provider: registers
pyproject.toml - Plugin entry points → Plugin manifest: registers
pyproject.toml - PyRift host → Rule provider: loads
README.md - Rule provider → EXP001 checker: returns rule
src/pyrift_example/rules.py - PyRift host → Plugin manifest: loads
README.md - PyRift host → EXP001 checker: dispatches checks
- EXP001 checker → Rule findings: creates
src/pyrift_example/rules.py