import_rules
A lint plugin for the Dart analyzer that enforces custom import rules in your projects, enabling everything from simple allow/disallow lists to complex module dependency constraints.
0.0.8
8.5K downloads/mo
#3138 most downloaded on pub.dev
fujidaiti/import_rules
What this package is like to depend on
Last release 3 months ago
07 May 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 8 of 8 stable releases
Nothing withdrawn
no release was ever pulled
9 months old
8 releases · first in 2025
8 releases in the last 12 months
see the full history below
Release timeline
8 releases · Nov 2025 to May 2026Releases
latest 8-
0.0.807 May 2026Release notes
Open source →What's Changed
- chore(env): Set up Prettier by @fujidaiti in #17
- chore(deps): Bump the dependencies group with 2 updates by @dependabot[bot] in #22
- chore(deps): Bump the dependencies group with 2 updates by @dependabot[bot] in #23
Full Changelog: v0.0.7...v0.0.8
-
0.0.714 Feb 2026Release notes
Open source →Add a global and per-rule severity option to change the severity level of rule violation reports.
Release notes
Open source →- Add a global and per-rule
severityfield to change the severity level of rule violation reports.
- Add a global and per-rule
-
0.0.618 Jan 2026Release notes
Open source →chore(deps): Bump the dependencies group with 2 updates (#9)
* chore(deps): Bump the dependencies group with 2 updates
Bumps the dependencies group with 2 updates: [analysis_server_plugin](https://github.com/dart-lang/sdk/tree/main/pkg) and [analyzer](https://github.com/dart-lang/sdk/tree/main/pkg).
Updates `analysis_server_plugin` from 0.3.4 to 0.3.7
- [Changelog](https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/sdk/commits/0.3.7.0/pkg)Updates `analyzer` from 9.0.0 to 10.0.1
- [Changelog](https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/sdk/commits/HEAD/pkg)Updates `analyzer` from 9.0.0 to 10.0.1
- [Changelog](https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dart-lang/sdk/commits/HEAD/pkg)---
updated-dependencies:
- dependency-name: analysis_server_plugin
dependency-version: 0.3.7
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dependencies
- dependency-name: analyzer
dependency-version: 10.0.1
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: dependencies
- dependency-name: analyzer
dependency-version: 10.0.1
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: dependencies
...Signed-off-by: dependabot[bot] <[email protected]>
* bump version
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fujidaiti <[email protected]> -
0.0.509 Jan 2026Release notes
Open source →chore(pkg): bumped analyzer version (#7)
Co-authored-by: Yev Velizhenkov <[email protected]>
-
0.0.425 Nov 2025Release notes
Open source →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 deletedBenefits:
- 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 <[email protected]>
* update readme
* format
* bump to 0.0.4
---------
Co-authored-by: Claude <[email protected]>
Release notes
Open source →- feat(pkg): Refresh stale cached rules when rules file changes (#5)
- Restarting the analysis server is no longer required after modifying the rules file.
- feat(pkg): Refresh stale cached rules when rules file changes (#5)
-
0.0.322 Nov 2025 -
0.0.222 Nov 2025 -
0.0.122 Nov 2025