inject_lints 0.3.0
inject_lints: ^0.3.0 copied to clipboard
Analyzer plugin for inject.dart. It reports in the IDE what the inject.dart code generator would reject, and offers optional style rules.
0.3.0 #
- Read rule options like the analyzer does: from the
analysis_options.yamlnearest to each file, following itsinclude:entries, relative paths andpackage:URIs alike. A shared options file can now hold theinject_lintssection for all packages. Before, the plugin read only the file at the package root. - Document that
diagnosticstakes a map, not a list, and that rule options go in the top-levelinject_lintssection, not underdiagnostics.
0.2.0 #
- Add the style rule
avoid_constructing_injected_class. It reports a class with@injector@assistedInjectthat is constructed by hand instead of taken from the dependency graph. It checks tests too; skip files withexcludeglobs. - Rules can take options in a top-level
inject_lintssection ofanalysis_options.yaml.
0.1.0 #
- Initial release: an analyzer plugin that reports in the IDE what the inject.dart generator would reject, with quick fixes and optional style rules.