NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #2726 most downloaded on pub.dev
Discontinued. This package is not intended to be used directly.
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 9 days to 1.6 years
Nearly every release is documented
notes for 57 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
175 releases · first in 2015
fixes to avoid_redundant_argument_values
avoid_redundant_argument_valuesuse_key_in_widget_constructorsalways_put_required_parameters updated for NNBDpackage:analyzer 0.39.3 APIsmiscellaneous doc cleanup (typos, etc)
avoid_redundant_argument_valuesslash_for_doc_comments to check mixin declarationsLinterContext.evaluateConstant APIalways_require_non_null_named_parametersOne column per quarter.
improved docs for comment_references
comment_referencesnull_closures to properly handle Iterable.singleWhereno_logic_in_create_statehardened check for lib dir location (fixing crashes in avoid_renaming_method_parameters, prefer_relative_imports and public_member_api_docs)
avoid_renaming_method_parameters,
prefer_relative_imports and public_member_api_docs)always_require_non_null_named_parametersfixed regressions in always_require_non_null_named_parameters
always_require_non_null_named_parametersupdated unnecessary_overrides to allow overrides when annotations (besides @override are specified)
unnecessary_overrides to allow overrides when annotations (besides @override are specified)file_names to allow names w/ leading _'s (and improved performance)unnecessary_finalupdated prefer_relative_imports to use a faster and more robust way to check for self-package references
prefer_relative_imports to use a faster and more robust way to check for self-package referenceslib dir contents (speeding up avoid_renaming_method_parameters and
making prefer_relative_imports and public_member_api_docs amenable to internal package formats -- w/o pubspecs)avoid_web_libraries_in_flutter updated to disallow access from all but Flutter web plugin packages
avoid_web_libraries_in_flutter updated to disallow access from all but Flutter web plugin packagesavoid_returning_null_for_void to check only null literals (and not expressions having Null types)prefer_final_fields to respect non-mutating prefix operatorsprefer_is_not_operatoravoid_unnecessary_containersavoid_init_to_nullfixed diagnostic_describe_all_properties to flag properties in Diagnosticables with no debug methods defined
diagnostic_describe_all_properties to flag properties in Diagnosticables with no debug methods definednoSuchMethod exception in camel_case_extensions when analyzing unnamed extensionsavoid_print to catch tear-off usageavoid_web_libraries_in_flutter (experimental)unnecessary_lambdas for coming MethodInvocation vs. FunctionExpressionInvocation changes(internal) stop accessing staticType in favor of getting type of FormalParameters from the declared element
staticType in favor of getting type of FormalParameters from the declared elementTypeParameterElements in prefer_const_constructorsfixed unsafe cast in overridden_fields
overridden_fieldspackage:analyzer for testinguse_full_hex_values_for_flutter_color_fixprefer_relative_importsawait_only_futuresfixed null raw expression accesses in use_to_and_as_if_applicable
use_to_and_as_if_applicableInheritanceManager3internal: migrated away from using analyzer resolutionMap
resolutionMapcamel_case_extensionsavoid_equals_and_hash_code_on_mutable_classesavoid_slow_async_io to flag async Directory methodsenabled camel_case_extensions experimental lint
camel_case_extensions experimental lintfixed false positives in unnecessary_parens
unnecessary_parensimprovements to unsafe_html error reporting
unsafe_html error reportingprefer_asserts_in_initializer_listsprefer_const_constructors to not flag @literal annotated constructors(internal): analyzer API call updates
- new lint: avoid_print
avoid_printimproved prefer_collection_literals to better handle LinkedHashSets and LinkedHashMaps
prefer_collection_literals to better handle LinkedHashSets and LinkedHashMapsprefer_final_fields to be more inclusivefixed prefer_initializing_formals to no longer suggest API breaking changes
prefer_const_constructorsprefer_initializing_formals to no longer suggest API breaking changesomit_local_variable_types to allow explicit dynamicsfixed null-reference in unrelated_type_equality_checks
unrelated_type_equality_checksunsafe_htmlbroadened prefer_null_aware_operators to work beyond local variables
prefer_null_aware_operators to work beyond local variablesprefer_if_null_operatorsprefer_contains false positivesunnecessary_parenthesis false positivesfixed prefer_asserts_in_initializer_lists false positives
prefer_asserts_in_initializer_lists false positivescurly_braces_in_flow_control_structures to handle more casesprefer_double_quotessort_child_properties_lasttype_annotate_public_apis false positive for static const initializerschange: prefer_const_constructors_in_immutables is currently overly permissive, pending analyzer changes
prefer_const_constructors_in_immutables is currently overly permissive, pending analyzer changes (#1537)unnecessary_await_in_return false positiveunrelated_type_equality_checks false negative with functionsprefer_spread_collections to not lint in const contextsprefer_iterable_whereType for is!prefer_collection_literals for constructors with paramsupdated prefer_spread_collections to ignore calls to addAll that could be inlined
prefer_spread_collections to ignore calls to addAll that could be inlinedprefer_inlined_adds(BREAKING) renamed spread_collections to prefer_spread_collections
spread_collections to prefer_spread_collectionsprefer_for_elements_to_map_fromIterableprefer_if_elements_to_conditional_expressionsdiagnostic_describe_all_properties(internal) update to analyzer 0.36.0 APIs
spread_collectionsprefer_asserts_with_messageupdated file_names to skip prefixed-extension Dart files (e.g., .css.dart, .g.dart)
file_names to skip prefixed-extension Dart files (e.g., .css.dart, .g.dart)2.2.0avoid_shadowing_type_parameterspackage:analyzer APIsunnecessary_parenthesis false positivesnew lint: provide_deprecation_message
prefer_collection_literals Set literal false positivesprefer_const_declarations Set literal false positivesprovide_deprecation_messageupdated prefer_collection_literals to support Set literals
prefer_collection_literals to support Set literals(internal) migrations to analyzer's preferred InheritanceManager2 API
super_goes_lastInheritanceManager2 APIremoved deprecated lints from the "all options" sample
unnecessary_parenthesis updated to play nicer with cascadesuse_full_hex_values_for_flutter_colorsprefer_null_aware_operatorshash_and_equals fixed to respect hashCode fieldsrestored prefer_final_locals to ignore loop variables, and
prefer_final_locals to ignore loop variables, andprefer_final_in_for_each lint to handle the for each caseupdated prefer_final_locals to check to for loop variables
prefer_final_locals to check to for loop variablestype_annotate_public_apis false positives on local functionsavoid_shadowing_type_parameters to report shadowed type parameters in generic typedefsuse_setters_to_change_properties to not wrongly lint overriding methodscascade_invocations to not lint awaited targetsprefer_conditional_assignment false positivesjoin_return_with_assignment false positivescascade_invocations false positivesinvariant_booleans status to experimental(internal): deprecated code cleanup
unnecessary_parenthesis updated to allow wrapping a ! argumentalways_declare_return_typesprefer_final_fields to work with classes that have generic type argumentsunrelated_type_equality_checksanalyzer package dependency bumped to ^0.34.0
^0.34.0experimental lints avoid_positional_boolean_parameters, literal_only_boolean_expressions, prefer_foreach, prefer_void_to_null promoted to stable
avoid_positional_boolean_parameters, literal_only_boolean_expressions, prefer_foreach, prefer_void_to_null promoted to stableunnecessary_parenthesis improved to handle function expressionsdeprecated prefer_bool_in_asserts (redundant w/ Dart 2 checks)
prefer_bool_in_asserts (redundant w/ Dart 2 checks)0.33.42.1.0unnecessary_await_in_returnnew lint: use_function_type_syntax_for_parameters
use_function_type_syntax_for_parametersLinterContext APIuse_setters_to_change_propertiesprefer_foreach and public_member_api_docsavoid_returning_null_for_futureavoid_shadowing_type_parametersupdate await_only_futures to allow awaiting on null
prefer_int_literalsawait_only_futures to allow awaiting on nulluse_setters_to_change_properties to work with => short-handfix NPE in prefer_iterable_whereType
prefer_iterable_whereTypeimproved message display for await_only_futures
await_only_futuresnull_closuresavoid_returning_null_for_voidupdated analyzer compatibility to ^0.33.0
^0.33.0miscellaneous mixin support fixes
sort_constructors_first to apply to all membersunnecessary_this to work on field initializersbroadened SDK version constraint
fix cast exceptions related to mixin support
- fixes to better support mixins
updated unawaited_futures to ignore assignments within cascades
unawaited_futures to ignore assignments within cascadessort_pub_dependenciesimproved handling of constant expressions with generic type params
flutter_style_todosinvariant_booleanspackage:pedanticunawaited_futuresunawaited_futures updated to check cascades
avoid_void_asyncunawaited_futures updated to check cascadesrelaxed void_checks (allowing T Function() to be assigned to void Function())
void_checks (allowing T Function() to be assigned to void Function())lib/lines_longer_than_80_charsprefer_void_to_nullroll-back to explicit uses of new and const to be compatible w/ VMs running --no-preview-dart-2
new and const to be compatible w/ VMs running --no-preview-dart-2fix to lines_longer_than_80_chars to handle CRLF endings
lines_longer_than_80_chars to handle CRLF endingsnon_constant_identifier_names to better handle invalid codecurly_braces_in_flow_control_structuresfix to avoid_positional_boolean_parameters to ignore overridden methods
avoid_positional_boolean_parameters to ignore overridden methodsprefer_is_empty to not evaluate constants beyond int literalsnull_closureslines_longer_than_80_charsfixed an issue in const error handling
const error handlinglinter binary to use previewDart2fixed errors in use_to_and_as_if_applicable
unnecessary_const lintunnecessary_new lintuse_to_and_as_if_applicablefile_names lintupdated unnecessary_statements to ignore getters (as they may be side-effecting).
unnecessary_statements to ignore getters (as they may be side-effecting).fixed void_checks to handle arguments not resolved to a parameter
void_checks to handle arguments not resolved to a parameterprefer_const_literals_to_create_immutablesunrelated_type_equality_checks now allows comparison between Int64 or Int32 and int
unrelated_type_equality_checks now allows comparison between Int64 or Int32 and intunnecessary_parenthesis improved to handle cascades in cascadesmigration of rules to use analyzer package NodeLintRule and UnitLintRule yielding significant performance gains all around
NodeLintRule and UnitLintRule yielding significant performance gains all aroundprefer_final_fields (~6x)void_checksYour coding agent can read these notes before it upgrades. Set up the MCP server →