You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat(pkg): Refresh stale cached rules when rules file changes (#5)
* feat: Add automatic config reload on file modification
Implement timestamp-based cache invalidation to detect when import_rules.yaml
or analysis_options.yaml has been modified. The plugin now automatically reloads
rules without requiring IDE restart.
Changes:
- Add configFilePath and modificationStamp fields to Config class
- Update ConfigParser to capture file metadata when loading
- Implement cache validation logic that checks modification timestamps
- Handle FileSystemException when config files are deleted
Benefits:
- Users can modify rules and see changes immediately
- Gracefully handles file deletion and inaccessibility
- Minimal performance impact (fast timestamp comparison)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* update readme
* format
* bump to 0.0.4
---------
Co-authored-by: Claude <noreply@anthropic.com>