new lint: unintended_html_in_doc_comment
new lint: invalid_runtime_check_with_js_interop_types
new lint: document_ignores
update noop_primitive_operations
to allow an empty string literal at the beginning or end of adjacent string literals:
// LINT var s = 'a' '' 'b'; // OK var s = '' 'a' 'b'; // OK var s = 'a' 'b'; '';
update avoid_renaming_method_parameters
to ignore wildcard renames
unnecessary_library_name
missing_code_block_language_in_doc_comment
always_require_non_null_named_parameters
avoid_returning_null
avoid_returning_null_for_future
iterable_contains_unrelated_type
list_remove_unrelated_type
annotate_redeclares
(experimental)use_build_context_synchronously
no_self_assignments
no_wildcard_variable_uses
new lint: implicit_reopen
new lint: unnecessary_breaks
new lint: type_literal_in_constant_pattern
new lint: invalid_case_patterns
new lint: matching_super_parameters
new lint: no_literal_bool_comparisons
removed lint: enable_null_safety
removed lint: invariant_booleans
removed lint: prefer_bool_in_asserts
removed lint: prefer_equal_for_default_values
removed lint: super_goes_last
implicit_reopen
unnecessary_breaks
type_literal_in_constant_pattern
enable_null_safety
invariant_booleans
prefer_bool_in_asserts
prefer_equal_for_default_values
super_goes_last
unnecessary_parenthesis
false-positives with null-aware expressionsvoid_checks
to allow assignments of Future<dynamic>?
to parameters typed FutureOr<void>?
use_build_context_synchronously
in if conditionsavoid_private_typedef_functions
with generalized type aliasesunnecessary_parenthesis
to detect some doubled parensvoid_checks
to allow returning Never
as voidno_adjacent_strings_in_list
to support set literals and for- and if-elementsavoid_types_as_parameter_names
to handle type variablesavoid_positional_boolean_parameters
to handle typedefsavoid_redundant_argument_values
to check parameters of redirecting constructorsprefer_const_literals_to_create_immutables
use_build_context_synchronously
to check context propertiesunnecessary_parenthesis
support for property accesses and method invocationsonly_throw_errors
to not report on values of type Never
prefer_mixin
to handle class mixinsunnecessary_null_checks
to ignore Future.value
and Completer.complete
unnecessary_parenthesis
false positives on constant patternsinvalid_case_patterns
unnecessary_const
to handle case patternsunnecessary_parenthesis
unreachable_from_main
to report unreachable public static fields, getters, setters, and methods, that are declared on public classes, mixins, enums, and extensionsunnecessary_parenthesis
false-positive with null-aware expressionsvoid_checks
to allow assignments of Future<dynamic>?
to parameters typed FutureOr<void>?
enable_null_safety
invariant_booleans
prefer_bool_in_asserts
prefer_equal_for_default_values
super_goes_last
unnecessary_parenthesis
to detect some doubled parensvoid_checks
to allow returning Never
as voidunnecessary_breaks
use_build_context_synchronously
in if conditionsno_adjacent_strings_in_list
to support set literals and for- and if-elementsavoid_types_as_parameter_names
to handle type variablesavoid_positional_boolean_parameters
to handle typedefsunnecessary_parenthesis
support for property accesses and method invocationsavoid_redundant_argument_values
to check parameters of redirecting constructorsprefer_const_literals_to_create_immutables
use_build_context_synchronously
to check context propertiesavoid_private_typedef_functions
with generalized type aliasesprefer_equal_for_default_values
to not report for SDKs >=2.19
, where this lint is now an analyzer diagnostic.unrelated_type_equality_checks
to support updated package:fixnum
structure.enable_null_safety
library_annotations
dangling_library_doc_comments
no_leading_underscores_for_local_identifiers
to not report super formals as local variablesunnecessary_overrides
false negativescancel_subscriptions
for nullable fieldscollection_methods_unrelated_type
library_names
to support unnamed librariesunnecessary_parenthesis
support for as-expressionsuse_build_context_synchronously
to check for context property accessescomment_references
unnecessary_brace_in_string_interps
for this
expressionsuse_build_context_synchronously
for BuildContext.mounted
flutter_style_todos
to handle more casesuse_build_context_synchronously
to check for BuildContext
s in named expressionsexhaustive_cases
to check parenthesized expressionsavoid_null_checks_in_equality_operators
join_return_with_statement
recursive_getters
unnecessary_lambdas
diagnostic_describe_all_properties
prefer_foreach
avoid_escaping_inner_quotes
cascade_invocations
tighten_type_of_initializing_formals
prefer_interpolation_to_compose_strings
prefer_constructors_over_static_methods
avoid_returning_null
parameter_assignments
prefer_constructors_over_static_methods
prefer_interpolation_to_compose_strings
avoid_returning_null
avoid_returning_this
flutter_style_todos
avoid_positional_boolean_parameters
prefer_const_constructors
implicit_call_tearoffs
unnecessary_library_directive
avoid_redundant_argument_values
to work with enum declarationsprefer_contains
unreachable_from_main
DartTypeUtilities
refactoringavoid_redundant_argument_values
when referencing required parameters in legacy librariesuse_late_for_private_fields_and_variables
use_string_in_part_of_directives
use_super_parameters
false positive with repeated super parameter referencesuse_late_for_private_fields_and_variables
to handle enumsprefer_contains
false positive when start index is non-zeronoop_primitive_operations
to catch .toString()
in string interpolationspublic_member_api_docs
to report diagnostics on extension names (instead of bodies)DartTypeUtilities
refactoringcombinators_ordering
use_colored_box
and use_decorated_box
to not over-report on containers without a childunnecessary_parenthesis
on a map-or-set literal at the start of an expression statementprefer_final_locals
reporting on fieldsunnecessary_overrides
to allow overrides on @Protected
membersavoid_multiple_declarations_per_line
false positive in for
statementsprefer_final_locals
false positive on declaration lists with at least one non-final variableuse_build_context_synchronously
to handle await
s in if
conditionsdiscarded_futures
no_duplicate_case_values
lines_longer_than_80_chars
, prefer_const_constructors_in_immutables
, and prefer_initializing_formals
prefer_final_parameters
to support super parametersunnecessary_to_list_in_spreads
unawaited_futures
to handle string interpolated futuresuse_colored_box
to not flag nullable colorsunnecessary_null_aware_operator_on_extension_on_nullable
no_leading_underscores_for_local_identifiers
to lint local function declarationsavoid_init_to_null
to correctly handle super initializing defaults that are non-nullno_leading_underscores_for_local_identifiers
to allow identifiers with just underscoresflutter_style_todos
to support usernames that start with a digitrequire_trailing_commas
to handle functions in asserts and multi-line stringsunsafe_html
to allow assignments to img.src
unnecessary_null_checks
to properly handle map literal entriesunnecessary_getters_setters
and prefer_final_fields
with enhanced enumsinvariant_booleans
use_super_parameters
false positive fixesdepend_on_referenced_packages
to treat flutter_gen
as a virtual package, not needing an explicit dependency2.15.0
use_key_in_widget_constructors
false positive with key
super parameter initializersuse_super_parameters
false positive with field formal paramsunnecessary_null_checks
and null_check_on_nullable_type_parameter
to handle list/set/map literals, and yield
and await
expressionsuse_super_initializers
to use_super_parameters
unnecessary_null_aware_assignments
property-access false positiveuse_super_initializers
use_enums
use_colored_box
sort_constructors
always_use_package_imports
, avoid_print
, and avoid_relative_lib_imports
avoid_void_async
to skip main
functionsprefer_final_parameters
to not super on super paramsunnecessary_late
to report on the variable namenull_check_on_nullable_type_parameter
stablecamel_case_types
to cover enumsno_leading_underscores_for_local_identifiers
to not mis-flag field formal parameters with default valuesprefer_function_declarations_over_variables
to not mis-flag non-final fieldsprefer_contains
exhaustive_cases
to skip deprecated values that redirect to other valuesanalyzer
version 3.0unnecessary_late
no_leading_underscores_for_local_identifiers
to allow underscores in catch clausesprefer_initializing_formals
secure_pubspec_urls
to check issue_tracker
and repository
entriesconditional_uri_does_not_exist
missing_whitespace_between_adjacent_strings
use_decorated_box
no_leading_underscores_for_library_prefixes
no_leading_underscores_for_local_identifiers
secure_pubspec_urls
sized_box_shrink_expand
avoid_final_parameters
omit_local_variable_types
omit_local_variable_types
to not flag a local type that is required for inferencewhile (true) { ...}
in literal_only_boolean_expressions
file_names
to report at the start of the file (not the entire compilation unit)prefer_collection_literals
named typed param false positiveuse_build_context_synchronously
unnecessary_lambdas
false positive for const constructor invocationsavoid_print
to allow kDebugMode
-wrapped print callsprefer_final_parameters
unnecessary_parenthesis
false positive with function expressionsavoid_redundant_argument_values
, unnecessary_lambdas
, and unnecessary_parenthesis
unnecessary_constructor_name
to flag unnecessary uses of .new
camel_case_types
, file_names
, etc.)use_build_context_synchronously
in awaits inside anonymous functionsoverridden_fields
false positive w/ static fieldsavoid_null_checks_in_equality_operators
w/ non-nullable paramsprefer_const_constructors
avoid_dynamic_calls
stableMockPubVisitor
and MockRule
classesprefer_void_to_null
false positive w/ overridden propertiesNodeLintRule
in lint rule declarationsprefer_void_to_null
false positive on overriding returnsprefer_generic_function_type_aliases
false positive w/ incomplete statementsprefer_initializing_formals
with factory constructorsvoid_checks
false positives with incomplete sourceunnecessary_getters_setters
to only flag the getteravoid_renaming_method_parameters
prefer_void_to_null
omit_local_variable_types
use_rethrow_when_possible
annotate_overrides
, prefer_contains
, and prefer_void_to_null
prefer_is_not_empty
no_logic_in_create_state
package_names
to allow dart identifiers as package namespackage_names
(causing keywords to wrongly get flagged)avoid_classes_with_only_static_member
to check for inherited members and also flag classes with only methodscurly_braces_in_flow_control_structures
to properly flag terminating else-if
blocksalways_specify_types
to support type aliasesunnecessary_string_interpolations
w/ nullable interpolated stringsavoid_function_literals_in_foreach_calls
for nullable iterablesavoid_returning_null
w/ NNBDuse_late_for_private_fields_and_variables
in the presence of const constructorseol_at_end_of_file
analyzer
constraint to >=2.0.0 <3.0.0
analyzer
constraint to >=1.7.0 <3.0.0
.meta
constraint to >=1.3.0 <3.0.0
.use_full_hex_values_for_flutter_colors
use_build_context_synchronously
use_setters_to_change_properties
to only highlight a method name, not the entire body and doc commentunnecessary_getters_setters
to allow otherwise “unnecessary” getters and setters with annotationsmissing_whitespace_between_adjacent_strings
to allow String interpolations at the beginning and end of String literalsunnecessary_getters_setters
to allow for setters with non-basic assignments (for example, ??=
or +=
)sort_child_properties_last
to allow for a trailing Widget in instance creationsnon_constant_identifier_names
to allow for a trailing underscoreprefer_final_parameters
where first parameter is finaldirectives_ordering
sorting of directives with dot paths and dot-separated package namessort_child_properties_last
to allow for a trailing Widget in instance creationsSecurityLintCode
instead of deprecated SecurityLintCodeWithUniqueName
avoid_types_as_parameter_names
to skip field formal parametersprefer_interpolation_to_compose_strings
where the left operand is not a Stringonly_throw_errors
for misidentified type variablesdepend_on_referenced_packages
avoid_returning_null_for_future
to skip checks for null-safe librariesuse_test_throws_matchers
sort_child_properties_last
to accept closures after childprefer_contains
and prefer_is_empty
noop_primitive_operations
avoid_web_libraries_in_flutter
as stableprefer_final_parameters
prefer_initializing_formals
to allow assignments where identifier names don't matchdirectives_ordering
now checks ordering of package:
imports in code outside pub packagesuse_build_context_synchronously
to short-circuit await-discovery in terminating blocksuse_build_context_synchronously
updated to recognize nullable types when accessed from legacy librariesnon_constant_identifier_names
updated to check local variables, for-loop initializers and catch clauseslines_longer_than_80_chars
updated to start at 80 to make splitting easierrequire_trailing_commas
prefer_null_aware_method_calls
iterable_contains_unrelated_type
to better support List
content checkscamel_case_types
and prefer_mixin
to support non-function type aliasesprefer_mixin
to properly make exceptions for dart.collection
legacy mixinsuse_build_context_synchronously
(experimental)avoid_multiple_declarations_per_line
use_if_null_to_convert_nulls_to_bools
deprecated_consistency
use_named_constants
avoid_as
avoid_dynamic_calls
produced false-positives for .call()
avoid_dynamic_calls
avoid_type_to_string
to use addArgumentList
registry APIprefer_collection_literals
when there is no static parameter elementprefer_collection_literals
when a LinkedHashSet or LinkedHashMap instantiation is passed as the argument to a function in any position other than the firstprefer_collection_literals
when a LinkedHashSet or LinkedHashMap instantiation is used in a place with a static type other than Set or MapPhysicalResourceProvider
APIprefer_constructors_over_static_methods
package_names
to allow leading underscoresunnecessary_null_checks
unnecessary_null_checks
missing_whitespace_between_adjacent_strings
void_checks
for NNBDunnecessary_string_escapes
unnecessary_null_types
prefer_constructors_over_static_methods
to respect type parametersalways_require_non_null_named_parameters
to be NNBD-awareunnecessary_nullable_for_final_variable_declarations
to allow dynamicoverridden_fields
to not report on abstract parent fieldsunrelated_type_equality_checks
for NNBDtype_init_formals
to allow types not equal to the field typealways_use_package_imports
, avoid_renaming_method_parameters
, prefer_relative_imports
and public_member_api_docs
0.40.4
APIscast_nullable_to_non_nullable
null_check_on_nullable_type_parameter
tighten_type_of_initializing_formals
public_member_apis
to check generic type aliasesclose_sinks
to handle this
-prefixed property accessesunnecessary_null_checks
unawaited_futures
to handle Future
subtypesavoid_type_to_string
unnecessary_nullable_for_final_variable_declarations
prefer_asserts_in_initializer_lists
unnecessary_string_escapes
unsafe_html
updated to support unique error codesdiagnostic_describe_all_properties
to check for Diagnosticable
s (not DiagnosticableMixin
s)use_late
unnecessary_lambdas
to respect deferred importspublic_member_api_docs
to check mixinsunnecessary_statements
to skip as
expressionsprefer_relative_imports
to work with path dependenciesdirectives_ordering
to remove third party package special-casingunnecessary_lambdas
to check for tearoff assignabilityexhaustive_cases
to not flag missing cases that are defaultedprefer_is_empty
to special-case assert initializers and const contextslib/src/test_utilities
do_not_use_environment
no_default_cases
(experimental)exhaustive_cases
type_annotate_public_apis
to allow inferred types in final field assignmentsprefer_mixin
to allow “legacy” SDK abstract class mixinsuse_is_even_rather_than_modulo
unsafe_html
to use a SecurityLintCode
(making it un-ignorable)sized_box_for_whitespace
to address false-positivesavoid_types_as_parameter_names
to check catch-clausesunsafe_html
to check attributes and methods on extensionsunsafe_html
to include Window.open
, Element.html
and DocumentFragment.html
in unsafe API checkssort_child_properties_last
package:analyzer
API updatessized_box_for_whitespace
avoid_shadowing_type_parameters
to support extensions and mixinsnon_constant_identifier_names
to allow named constructors made up of only underscores (_
)avoid_unused_constructor_parameters
to ignore unused params named in all underscores (_
)one_member_abstracts
updated to not lint classes with mixins or implementing interfacesunnecessary_getters_setters
fixed to ignore cases where a getter/setter is deprecatedleading_newlines_in_multiline_strings
avoid_private_typedef_functions
and avoid_returning_null_for_future
prefer_typing_uninitialized_variables
and omit_local_variable_types
as compatibleuse_raw_strings
unnecessary_raw_strings
avoid_escaping_inner_quotes
unnecessary_string_escapes
avoid_web_libraries_in_flutter
unnecessary_string_interpolations
missing_whitespace_between_adjacent_strings
avoid_unused_constructor_parameters
updated to ignore deprecated parametersno_runtimeType_toString
prefer_single_quotes
lint messageunnecessary_finals
fixed to not flag fieldsunnecessary_lambdas
fixed to work with type argumentsLinterContext.resolveNameInScope()
APIavoid_redundant_argument_values
use_key_in_widget_constructors
always_put_required_parameters
updated for NNBDpackage:analyzer
0.39.3 APIsavoid_redundant_argument_values
slash_for_doc_comments
to check mixin declarationsLinterContext.evaluateConstant
APIalways_require_non_null_named_parameters
comment_references
null_closures
to properly handle Iterable.singleWhere
no_logic_in_create_state
always_require_non_null_named_parameters
avoid_renaming_method_parameters
, prefer_relative_imports
and public_member_api_docs
)always_require_non_null_named_parameters
unnecessary_overrides
to allow overrides when annotations (besides @override
are specified)file_names
to allow names w/ leading _
's (and improved performance)unnecessary_final
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 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_operator
avoid_unnecessary_containers
avoid_init_to_null
diagnostic_describe_all_properties
to flag properties in Diagnosticable
s 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
changesstaticType
in favor of getting type of FormalParameter
s from the declared elementTypeParameterElement
s in prefer_const_constructors
overridden_fields
package:analyzer
for testinguse_full_hex_values_for_flutter_color_fix
prefer_relative_imports
await_only_futures
use_to_and_as_if_applicable
InheritanceManager3
camel_case_extensions
experimental lintresolutionMap
camel_case_extensions
avoid_equals_and_hash_code_on_mutable_classes
avoid_slow_async_io
to flag async Directory
methodsunnecessary_parens
unsafe_html
error reportingprefer_asserts_in_initializer_lists
prefer_const_constructors
to not flag @literal
annotated constructorsavoid_print
prefer_collection_literals
to better handle LinkedHashSet
s and LinkedHashMap
sprefer_final_fields
to be more inclusiveprefer_const_constructors
prefer_initializing_formals
to no longer suggest API breaking changesomit_local_variable_types
to allow explicit dynamic
sunrelated_type_equality_checks
unsafe_html
prefer_null_aware_operators
to work beyond local variablesprefer_if_null_operators
prefer_contains
false positivesunnecessary_parenthesis
false positivesprefer_asserts_in_initializer_lists
false positivescurly_braces_in_flow_control_structures
to handle more casesprefer_double_quotes
sort_child_properties_last
type_annotate_public_apis
false positive for static const
initializersprefer_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 paramsprefer_spread_collections
to ignore calls to addAll
that could be inlinedprefer_inlined_adds
spread_collections
to prefer_spread_collections
prefer_for_elements_to_map_fromIterable
prefer_if_elements_to_conditional_expressions
diagnostic_describe_all_properties
spread_collections
prefer_asserts_with_message
file_names
to skip prefixed-extension Dart files (e.g., .css.dart
, .g.dart
)2.2.0
avoid_shadowing_type_parameters
package:analyzer
APIsunnecessary_parenthesis
false positivesprefer_collection_literals
Set literal false positivesprefer_const_declarations
Set literal false positivesprovide_deprecation_message
prefer_collection_literals
to support Set literalssuper_goes_last
InheritanceManager2
APIunnecessary_parenthesis
updated to play nicer with cascadesuse_full_hex_values_for_flutter_colors
prefer_null_aware_operators
hash_and_equals
fixed to respect hashCode
fieldsprefer_final_locals
to ignore loop variables, andprefer_final_in_for_each
lint to handle the for each
caseprefer_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 experimentalunnecessary_parenthesis
updated to allow wrapping a !
argumentalways_declare_return_types
prefer_final_fields
to work with classes that have generic type argumentsunrelated_type_equality_checks
^0.34.0
avoid_positional_boolean_parameters
, literal_only_boolean_expressions
, prefer_foreach
, prefer_void_to_null
promoted to stableunnecessary_parenthesis
improved to handle function expressionsprefer_bool_in_asserts
(redundant w/ Dart 2 checks)0.33.4
2.1.0
unnecessary_await_in_return
use_function_type_syntax_for_parameters
LinterContext
APIuse_setters_to_change_properties
prefer_foreach
and public_member_api_docs
avoid_returning_null_for_future
avoid_shadowing_type_parameters
prefer_int_literals
await_only_futures
to allow awaiting on null
use_setters_to_change_properties
to work with =>
short-handprefer_iterable_whereType
await_only_futures
null_closures
avoid_returning_null_for_void
^0.33.0
sort_constructors_first
to apply to all membersunnecessary_this
to work on field initializersunawaited_futures
to ignore assignments within cascadessort_pub_dependencies
prefer_mixin
avoid_implementing_value_types
flutter_style_todos
invariant_booleans
package:pedantic
unawaited_futures
avoid_void_async
unawaited_futures
updated to check cascadesvoid_checks
(allowing T Function()
to be assigned to void Function()
)lib/
lines_longer_than_80_chars
prefer_void_to_null
new
and const
to be compatible w/ VMs running --no-preview-dart-2
lines_longer_than_80_chars
to handle CRLF endingsnon_constant_identifier_names
to better handle invalid codecurly_braces_in_flow_control_structures
avoid_positional_boolean_parameters
to ignore overridden methodsprefer_is_empty
to not evaluate constants beyond int literalsnull_closures
lines_longer_than_80_chars
const
error handlinglinter
binary to use previewDart2
unnecessary_const
lintunnecessary_new
lintuse_to_and_as_if_applicable
file_names
lintunnecessary_statements
to ignore getters (as they may be side-effecting).void_checks
to handle arguments not resolved to a parameterprefer_const_literals_to_create_immutables
unrelated_type_equality_checks
now allows comparison between Int64
or Int32
and int
unnecessary_parenthesis
improved to handle cascades in cascadesNodeLintRule
and UnitLintRule
yielding significant performance gains all aroundprefer_final_fields
(~6x)void_checks
void_checks
lintavoid_field_initializers_in_const_classes
lintunnecessary_statements
avoid_js_rounded_ints
lintavoid_double_and_int_checks
lintprefer_const_declarations
avoid_types_as_parameter_names
prefer_iterable_whereType
lintprefer_generic_function_type_aliases
lintlibrary_prefixes
)avoid_bool_literals_in_conditional_expressions
lintprefer_equal_for_default_values
lintavoid_private_typedef_functions
lintavoid_single_cascade_in_expression_statements
lintinvariant_booleans
when analyzing for loops with no conditionavoid_types_as_parameter_names
lintavoid_renaming_method_parameters
lintavoid_relative_lib_imports
lintunnecessary_parenthesis
lintprefer_const_literals_to_create_immutables
to handle undefined classes gracefullyprefer_const_declarations
to support optional new
and const
prefer_const_declarations
updated to check localsinvariant_booleans
2.0.0-dev
prefer_const_declarations.dart
lintprefer_const_literals_to_create_immutables
lintavoid_unused_constructor_parameters
comment_references
args
package dependency to support versions 1.*
avoid_unused_constructor_parameters
updated to better handle redirecting factory constructorsavoid_returning_this
improvementsprefer_bool_in_asserts
improvementsprefer_interpolation_to_compose_strings
updated to allow concatenation of two non-literal stringsprefer_interpolation_to_compose_strings
updated to allow +=
prefer_const_constructors_in_immutables
false positive with redirecting factory constructorspublic_member_api_docs
fix for package URIsavoid_positional_boolean_parameters
updated to allow booleans in operator declarationscomment_references
fixed to handle incomplete referencesnon_constant_identifier_names
updated to allow underscores around numbersavoid_unused_constructor_parameters
lintprefer_bool_in_asserts
lintprefer_typing_uninitialized_variables
lintunnecessary_statements
lintpublic_member_api_docs
updated to only lint source in lib/
EmptyStatement
s$
s2.0.0-dev.infinity
constraint)non_constant_identifier_names
extended to include named constructors2.0.0-dev.infinity
prefer_final_fields
performanceunnecessary_overrides
(noSuchMethod
handling, return type narrowing, special casing of documented super
calls)non_constant_identifier_names
to handle identifiers with no nameprefer_const_constructors
to support list literalsrecursive_getters
cascade_invocations
prefer_const_constructors_in_immutables
lintalways_put_required_named_parameters_first
lintprefer_asserts_in_initializer_lists
lint--benchmark
modeprefer_single_quote_strings
lintavoid_setters_without_getters
directives_ordering
to work with part directives located after exportscascade_invocations
false positivesliteral_only_boolean_expressions
false positivescascade_invocations
only lints method invocations if target is a simple identifieruse_string_buffers
false positivesprefer_const_constructors
-s
) output now sorted.prefer_foreach
lint.use_string_buffers
rule.unnecessary_overrides
rule.join_return_with_assignment_when_possible
rule.use_to_and_as_if_applicable
rule.avoid_setters_without_getters
rule.always_put_control_body_on_new_line
rule.avoid_positional_boolean_parameters
rule.always_require_non_null_named_parameters
rule.prefer_conditional_assignment
rule.avoid_types_on_closure_parameters
rule.always_put_control_body_on_new_line
rule.use_setters_to_change_properties
rule.avoid_returning_this
rule.avoid_annotating_with_dynamic_when_not_required
rule.prefer_constructors_over_static_methods
rule.avoid_returning_null
rule.avoid_classes_with_only_static_members
rule.avoid_null_checks_in_equality_operators
rule.avoid_catches_without_on_clauses
rule.avoid_catching_errors
rule.use_rethrow_when_possible
rule.prefer_final_fields
, unnecessary_lambdas
, await_only_futures
, cascade_invocations
, avoid_types_on_closure_parameters
, and overridden_fields
).prefer_interpolation_to_compose_strings
.unnecessary_this
rule.prefer_initializing_formals
rule.avoid_function_literals_in_foreach_calls
lint.avoid_slow_async_io
lint.cascade_invocations
lint.directives_ordering
lint.no_adjacent_strings_in_list
lint.no_duplicate_case_values
lint.omit_local_variable_types
lint.prefer_adjacent_string_concatenation
lint.prefer_collection_literals
lint.prefer_const_constructors
lint.prefer_contains
lint.prefer_expression_function_bodies
lint.prefer_function_declarations_over_variables
lint.prefer_initializing_formals
lint.prefer_interpolation_to_compose_strings
lint.prefer_is_empty
lint.recursive_getters
lint.unnecessary_brace_in_string_interps
lint.unnecessary_lambdas
lint.unnecessary_null_aware_assignments
lint.unnecessary_null_in_if_null_operators
lint.cascade_invocations
lint.await_only_futures
to accept classes that extend or implement Future
.$
s.parameter_assignments
(improved getter handling and an NPE).dart_type_utilities
(dart-lang/sdk#27405).parameter_assignments
lint.prefer_final_fields
lint.prefer_final_locals
lint.solo_debug
(#304).test
(#302).[]=
in always_declare_return_types
(#300).invariant_booleans
lint.literal_only_boolean_expressions
lint.camel_case_types
to allow $
in identifiers (#290).close_sinks
to respect calls to destroy
(#282).only_throw_errors
to report on the expression not node.whitespace_around_ops
pending re-name and re-design (#249).rule:rule_name
and docs:location
) for rule stub and doc generation (respectively).non_constant_identifier_names
.valid_regexps
lint (#277).whitespace_around_ops
lint (#249).overridden_fields
to flag overridden static fields (#274).list_remove_unrelated_type
to detect passing a non-T
value to `List.remove()`` (#271).empty_catches
lint to catch empty catch blocks (#43).close_sinks
false positive (#268).linter
support for --strong
to allow for running linter in strong mode.only_throw_errors
lint.empty_statements
(#259).iterable_contains_unrelated_type
(#267).cancel_subscriptions
lint.close_sinks
lint.iterable_contains_unrelated_type
.iterable_contains_unrelated_type
(#245).comment_references
error description.overriden_field
false positive (#246).lints
option to rules
(#248).public_member_api_docs
to check for documented getters when checking setters (#237).iterable_contains_unrelated_type
lint to detect when Iterable.contains
is invoked with an object of an unrelated type.comment_references
lint to ensure identifiers referenced in docs are in scope (#240).overriden_field
s.unrelated_type_equality_checks
lint.$
identifiers in string interpolation lint (#214).plugin
API (0.2.0
).is
checks (#227).const
and final
vars to be initialized to null (#210).empty_constructor_bodies
(#209).main
when checking for API docs (#207).$
in type names (#220).test_types_in_equals
lint.await_only_futures
lint.throw_in_finally
lint.control_flow_in_finally
lint.@optionalTypeArgs
(#196).public_member_api_docs
).annotate_overrides
, public_member_api_docs
).LibraryNames
regexp that in pathological cases went exponential.hashCode
and ==
(#168).null
(#160).analyzer
0.27.0
.type_annotate_public_apis
to properly handle getters/setters (#151; dart-lang/sdk#25092).avoid_empty_else
lint rule (dart-lang/sdk#224936).package_api_docs
(dart-lang/sdk#24947; #154).package_prefixed_library_names
(dart-lang/sdk#24947; #154).prefer_is_not_empty
lint rule (#143).type_annotate_public_apis
lint rule (#24).avoid_as
lint rule (#145).non_constant_identifier_names
rule to special case underscore identifiers in callbacks._
s in callback type validation (addresses false positives in always_specify_types
) (#147).always_declare_return_types
lint rule (#146).always_specify_types
to detect missing types in declared identifiers and narrowed source range to the token.implementation_imports
lint rule (#33).always_specify_types
lint rule (#144).unnecessary_brace_in_string_interp
lint. Fix #112.lib/
to use a package:
URI. Fix #49.analyzer
package constraints.one_member_abstracts
lint. Fix #64.