NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #1944 most downloaded on pub.dev
Robust and high-quality lint rules used at LeanCode.
Latest stable
28.0.0
Last release 1 months ago
20 Oct 2026
Release timing varies
gaps range from 8 days to 3 months
Nearly every release is documented
notes for 54 of 55 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
60 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
See changelog on pub.dev
avoid_shadowed_extension_members, which reports an extension member that an instance member of the extension's on type shadows: the instance member always wins, so the extension member is only reachable through an explicit extension override.prefer_dot_shorthand, which reports a static member, enum value or constructor written with its type name when the context type already determines it, and offers a quick fix. It is disabled by default. The kinds of members it reports can be configured via LeanCodeLintConfig.preferDotShorthand.cognitive_complexity, which reports functions whose cognitive complexity is over a configurable maximum (15 by default). It is disabled by default.use_primary_constructors, use_declaring_parameters, empty_container_bodies or unnecessary_type_name_in_constructor.analyzer: '>=13.1.0 <15.0.0'use_design_system_item not reporting forbidden items used via dot shorthands (e.g. .new(), .fromARGB(), .staticMember).use_design_system_item reporting forbidden items twice when accessed through an import prefix (e.g. m.Colors.red).Your coding agent can read these notes before it upgrades. Set up the MCP server →
See changelog on pub.dev
See changelog on pub.dev
avoid_context_read_in_build to exempt BuildContext-taking closures that don't return a Widget (e.g. a provider's create), since they run once rather than on every rebuild.missing_equatable_props now requires fields declared by a primary constructor's declaring parameters to be listed in props, and recognizes super.props as needed when the superclass declares its fields in a primary constructor.constructor_parameters_and_fields_should_have_the_same_order now treats fields declared by a primary constructor as coming before the fields declared in the class body.avoid_build_context_in_blocs now reports BuildContext parameters declared in a Bloc/Cubit's primary constructor.prefer_abstract_final_class now recognizes a private ._() primary constructor as an instantiation guard, and its fix removes it from the class header.final int x or a super.x parameter) instead of always producing this.-prefixed parameters.See changelog on pub.dev
prefer_equatable_mixin to suggest mixing in Equatable directly when the linted package depends on equatable 2.1.0 or higher, where EquatableMixin is deprecated.missing_equatable_props to not report a missing super.props when the superclass chain declares no fields, and so its props is empty.See changelog on pub.dev
See changelog on pub.dev
See changelog on pub.dev
See changelog on pub.dev
See changelog on pub.dev
See changelog on pub.dev
bloc_related_class_naming when using generics.See changelog on pub.dev
See changelog on pub.dev
See changelog on pub.dev
See changelog on pub.dev
use_design_system_item.See changelog on pub.dev
example/ directory with default and custom configuration examples.See changelog on pub.dev
analyzer ^10.0.0.catch_parameter_names rule. Defaults remain err and st.src directory.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
See changelog on pub.dev
prefer_center_over_align not crash in non-Flutter packages.Support custom_lint_builder 0.8.1
analyzer 8.1.0custom_lint_builder 0.8.1feat: add prefer dedicated media query methods lint by @Artur-Wisniewski in https://github.com/leancodepl/flutter_corelibrary/pull/473
Full Changelog: https://github.com/leancodepl/flutter_corelibrary/compare/leancode_debug_page-v3.0.0...leancode_lint-v18.0.0
omit_obvious_property_types lint due to conflict with type_annotate_public_apis (Dart SDK issue #60642)Support Flutter 3.32 and Dart 3.8
Support Flutter 3.29 and Dart 3.7
require_trailing_commas lint as it conflicts with Dart 3.7 formatter (https://github.com/dart-lang/sdk/issues/60119).- Support analyzer 7.0.0
analyzer 7.0.0`omit_obvious_local_variable_types`
omit_local_variable_typesSupport Flutter 3.27 and Dart 3.6
- Support custom_lint 0.7.0
custom_lint 0.7.0Remove deprecated division_optimization hint
division_optimization hintAllow usage of a forbidden item in a hide combinator in use_design_system_item
hide combinator in use_design_system_itemBump minimum Dart version to 3.5
avoid_positional_boolean_parameters lintBump minimum Dart version to 3.4
Treat HookWidget as a new hook context. This should remove some false positives in avoid_conditional_hooks and catch new cases in hook_widget_does_not
HookWidget as a new hook context. This should remove some false positives in avoid_conditional_hooks and catch new cases in hook_widget_does_not_use_hooks.Remove deprecated import_of_legacy_library_into_null_safe error code
import_of_legacy_library_into_null_safe error codeTreat HookConsumer and HookConsumerWidget from package:hooks_riverpod as hook widgets
HookConsumer and HookConsumerWidget from package:hooks_riverpod as hook widgetsBump custom_lint_builder dependency to 0.6.2
custom_lint_builder dependency to 0.6.2Disable lints deprecated in Dart 3.3.0
avoid_single_child_in_multi_child_widgets for Column, Row, Flex, Wrap, SliverList, MultiSliver, SliverChildListDelegate, SliverMainAxisGroup, and SliverCrossAxisGroupavoid_conditional_hooks false positive`use_build_context_synchronously`
Change package description on pub.dev and in README
Implement LeanCode custom lints
Remove deprecated rules iterable_contains_unrelated_type and list_remove_unrelated_type
iterable_contains_unrelated_type and list_remove_unrelated_type`deprecated_member_use_from_same_package`
Remove lint `library_private_types_in_public_api` which was accidentally enabled
library_private_types_in_public_api which was accidentally enabledAdd analysis and lints topics to pubspec
analysis and lints topics to pubspec`deprecated_member_use_from_same_package`
enable_null_safetyflutter_lintsMigrate from analyzer.strong-mode.{implicit-casts,implicit-dynamic} to analyzer.language.{strict-casts,strict-inference,strict-raw-types} which might
analyzer.strong-mode.{implicit-casts,implicit-dynamic} to analyzer.language.{strict-casts,strict-inference,strict-raw-types} which might report new warningsNothing published for this version
`collection_methods_unrelated_type`
- Fix broken changelog
Disable the deprecated invariant_booleans lint
unawaited() function which is provided by Dart
since 2.14 (#88)discarded_futures lint (#87)invariant_booleans lint (#86)`unnecessary_to_list_in_spreads`
use_build_context_synchronously
null_check_on_nullable_type_parameter
literal_only_boolean_expressions
Update README to differentiate between app and package projects
flutterImprove explanation in README on why one might want to add leancode_lint as a normal dependency instead of dev dependency when using Dart version < 2.
leancode_lint as
a normal dependency instead of dev dependency when using Dart version < 2.14library_private_types_in_public_api
package:flutter_lints/flutter.yaml not being found- Initial release
78
likes
160
points
34.4k
downloads
API reference
leancode.co
Robust and high-quality lint rules used at LeanCode.
Homepage
Repository (GitHub)
View/report issues
#analysis #analyzer #code-style #lint #lints
Apache-2.0 ( license )
analysis_server_plugin , analyzer , analyzer_plugin , meta , path , source_span , yaml
Packages that depend on leancode_lint
78
likes
160
points
34.4k
downloads
API reference
leancode.co
Robust and high-quality lint rules used at LeanCode.
Homepage
Repository (GitHub)
View/report issues
#analysis #analyzer #code-style #lint #lints
Apache-2.0 ( license )
analysis_server_plugin , analyzer , analyzer_plugin , meta , path , source_span , yaml
Packages that depend on leancode_lint
Back
One column per quarter.