NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #4260 most downloaded on pub.dev
Lints for Dart and Flutter based on software industry standards and best practices.
Latest stable
2.0.0
Last release 1 months ago
08 Oct 2026
Release timing varies
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 35 of 35 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
38 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
BREAKING CHANGE: Updated rules in analysis_options.yaml. Existing projects may see new static analysis issues after upgrading:
analysis_options.yaml. Existing
projects may see new static analysis issues after upgrading:
avoid_catches_without_on_clausesavoid_returning_thisavoid_types_on_closure_parameterscascade_invocationsdiscarded_futuresdocument_ignoresno_literal_bool_comparisonsno_wildcard_variable_usesunnecessary_ignoreunnecessary_lateunnecessary_unawaitedunnecessary_underscoresunreachable_from_mainuse_enumsuse_truncating_divisionnamed_parameters_ordering rule and disabled
always_put_required_named_parameters_first in favor of it.avoid_multiple_declarations_per_file rule.prefer_mirror_test_structure rule.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
fix: move flutter and test to dependencies by @andrew-bekhiet-solid in https://github.com/solid-software/solid_lints/pull/224
Full Changelog: https://github.com/solid-software/solid_lints/compare/0.3.2...1.0.0
prefer_early_return rule to support loops and added max_depth
configuration parameter.avoid_duplicate_code rule accuracy and resolved false positives.ignored_types configuration parameter support to
avoid_returning_widgets rule.fix: move flutter and test to dependencies by @andrew-bekhiet-solid in https://github.com/solid-software/solid_lints/pull/224
Full Changelog: https://github.com/solid-software/solid_lints/compare/0.3.2...1.0.0-dev.2
>=3.12.0.analyzer to ^14.1.0 and analysis_server_plugin to ^0.3.20.avoid_returning_widgets rule.number_of_parameters rule.member_ordering configuration.avoid_duplicate_code rule and parameter documentation.feat!: migrate to analyzer_server_plugin
avoid_unnecessary_type_casts rule with dart analyzer's
unnecessary_castuse_nearest_context rule.avoid_duplicate_code rule.use_descriptive_names_for_type_parameters rule.avoid_similar_names rule.feature_envy rule.- Fix pub.dev analysis issue
Remove deprecated members by @xJac0b in https://github.com/solid-software/solid_lints/pull/211
Full Changelog: https://github.com/solid-software/solid_lints/compare/0.3.1...0.3.2
named_parameters_ordering rule.feat(no_empty_block): add allow_comments by @Andrew-Bekhiet in https://github.com/solid-software/solid_lints/pull/203
prefer_match_file_name rule by @iimironchuk in https://github.com/solid-software/solid_lints/pull/206Full Changelog: https://github.com/solid-software/solid_lints/compare/0.3.0...0.3.1
allow_with_comments parameter for no_empty_block lint.avoid_using_apiexclude_entity parameter for prefer_match_file_name lint. It is now
possible to configure this lint to ignore enum, extension and mixin
declarations via analysis_options.yaml.issue-182. fixed throw expression by @StarovNikita in https://github.com/solid-software/solid_lints/pull/183
Full Changelog: https://github.com/solid-software/solid_lints/compare/0.2.3...0.3.0
exclude parameter for the following lints:
avoid_returning_widgetsavoid_unused_parameterscyclomatic_complexityfunction_lines_of_codeno_empty_blocnumber_of_parametersexcludeNames parameter to exclude for
function_lines_of_code lint.prefer_early_retrun for throw expressionnumber_of_parameters lint: added copyWith to the default exclude list.analyzer dependency to 7.1.0custom_lint_builder dependency to 0.7.1Replace deprecated functions by @solid-glebvorobey in https://github.com/solid-software/solid_lints/pull/180
Full Changelog: https://github.com/solid-software/solid_lints/compare/0.2.2...0.2.3
Fixed docs linter issues by @solid-glebvorobey in https://github.com/solid-software/solid_lints/pull/179
Full Changelog: https://github.com/solid-software/solid_lints/compare/0.2.1...0.2.2
Fixed LintCode analyzer issues by @solid-glebvorobey in https://github.com/solid-software/solid_lints/pull/178
Full Changelog: https://github.com/solid-software/solid_lints/compare/0.2.0...0.2.1
Fixed analyzer issue, fixed linter
Fixed analyzer issue, fixed linter (#177)
avoid_final_with_getter ruleavoid_late_keyword - ignored_types to support ignoring subtype of
the node type (https://github.com/solid-software/solid_lints/issues/157)proper_super_calls
(https://github.com/solid-software/solid_lints/issues/159)avoid_debug_print to avoid_debug_print_in_releaseavoid_debug_print_in_release no longer reports a warning if the
debugPrint call is wrapped in a !kReleaseMode check.Avoid debug print by @Viktor-Mudrytskyi in https://github.com/solid-software/solid_lints/pull/134
avoid_using_debug_print -> avoid_debug_print by @yurii-prykhodko-solid in https://github.com/solid-software/solid_lints/pull/138excludeNames param for function_lines_of_code lint by @DerhachevAndrii in https://github.com/solid-software/solid_lints/pull/141avoid_unrelated_type_assertions to support true and false results by @DerhachevAndrii in https://github.com/solid-software/solid_lints/pull/145Full Changelog: https://github.com/solid-software/solid_lints/compare/0.1.4...0.1.5
avoid_debug_print ruleavoid_unused_parameters to report positional parameters from typedef
if their name are not underscores.avoid_returning_widget lint:
excludeNames param for function_lines_of_code lintavoid_unrelated_type_assertions to support true and false resultscyclomatic_complexity to 10
(https://github.com/solid-software/solid_lints/issues/146) Credits: Arthur
Miranda (https://github.com/arthurbcd)Remove deprecated linter rules by @yurii-prykhodko-solid in https://github.com/solid-software/solid_lints/pull/132
dart run custom_lint cmd to README by @yurii-prykhodko-solid in https://github.com/solid-software/solid_lints/pull/129Full Changelog: https://github.com/solid-software/solid_lints/compare/0.1.3...0.1.4
always_require_non_null_named_parametersavoid_returning_null_for_futureBumped custom_lint package to 0.6.0 version
Moved implementation into the src folder
src folder- Add example readme - Update dependencies
Migrated all DCM rules to custom_lint
custom_lint and integrate/redo lints from DCM using custom_lint:
no_leading_underscores_for_library_prefixes
avoid_final_parametersconditional_uri_does_not_existno_leading_underscores_for_library_prefixesno_leading_underscores_for_local_identifiersnoop_primitive_operationsprefer_adjacent_string_concatenationprefer_foreachsecure_pubspec_urlssized_box_shrink_expandunnecessary_breaksunnecessary_lambdasunnecessary_to_list_in_spreadsuse_raw_strings3.0.0always_put_required_named_parameters_first
use_super_parametersalways_put_required_named_parameters_firstavoid_redundant_argument_valuesLock DCM version as they switch to proprietary license.
Rename deprecated member-ordering-extended to member-ordering
dart_code_metrics dependency to 5.7.3member-ordering-extended to member-ordering- Add support for Dart 3
Disabe invariant_booleans as it is deprecated in Flutter 3.7
enable use_colored_box & use_decorated_box + add more comments about specific lints
Update to the latest DCM to make sure that it works with latest flutter.
Disabe do_not_use_environment as we need to for Flutter for web
Update dart_code_metrics dependency to 4.10.1
dart_code_metrics dependency to 4.10.1mockito mocks generated to be alongside source test filesRemove diagnostic_describe_all_properties rule
diagnostic_describe_all_properties rule- Exclude generated files
- Add more useful DCM rules.
Add a separate anayisis options file for tests
Remove the sort_constructors_first rule
sort_constructors_first ruleSet maximum method length to 200
Configure rules based on Flutter 2.5 (Dart 2.14.4)
- Updated readme
- Preview
One column per quarter.