Skip to content

v0.0.4

Choose a tag to compare

@fujidaiti fujidaiti released this 25 Nov 10:04
· 11 commits to main since this release
99ff550
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>