lintel 0.1.7
lintel: ^0.1.7 copied to clipboard
Analyzer plugin that enforces cohesive Flutter application architecture.
Changelog #
0.1.7 #
- Allow descriptive text before and after
GIVEN,WHEN, andTHENin test phase comments. - Allow a phase comment to appear more than once while still rejecting empty or out-of-order phases.
0.1.6 #
- Add
application_module_hides_collaboratorsto reject public instance fields that expose an application module's dependencies. - Add
avoid_trivial_application_modulesto reject modules whose public operations only forward unchanged arguments to private collaborators. - Remove
use_case_umbrellain favor of the two depth-based rules. - Document the exact scope, exemptions, and intended fixes for both new application-module diagnostics.
0.1.5 #
- Exempt multiline expression-bodied functions and methods from visual-grouping checks.
0.1.4 #
- Allow a
StatefulWidgetand its privateStateimplementation to share a file without requiring the widget class to match the filename.
0.1.3 #
- Exempt Flutter
buildmethods from visual-grouping checks while retaining their separate size limit. - Allow
Map<String, dynamic>at JSON boundaries while continuing to reject other explicitdynamictypes. - Exempt data-only class constructors from parameter-count limits.
- Allow tests to omit phases with no code and reject empty phase markers.
0.1.2 #
- Fix the default top-level function limit to 30 lines so it matches the
non-
buildmethod limit. - Add boundary coverage for top-level functions at and above the default limit.
0.1.1 #
- Improve automated publishing with main-branch ancestry and release-version validation.
- Use short-lived pub.flutter-io.cn OIDC authentication with a deployment environment binding and least-privilege GitHub token permissions.
- Pin GitHub Actions dependencies to verified commits.
- Link every GitHub release to its versioned changelog on pub.flutter-io.cn.
0.1.0 #
- Initial release of Lintel.
- Add 41 opt-in analyzer diagnostics covering architecture boundaries, Bloc/Cubit usage, correctness, safety, testing, and maintainability.
- Add configurable limits for file, class, callable, test, parameter-list, and visual grouping sizes.
- Include complete rule documentation, configuration examples, and diagnostic test coverage.