Releases: dart-lang/linter
Releases · dart-lang/linter
1.9.0
1.9.0
- marked
avoid_dynamic_calls
stable - (internal) removed unused
MockPubVisitor
andMockRule
classes - fixed
prefer_void_to_null
false positive w/ overridden properties - (internal) removed references to
NodeLintRule
in lint rule declarations - fixed
prefer_void_to_null
false positive on overriding returns - fixed
prefer_generic_function_type_aliases
false positive w/ incomplete statements - fixed false positive for
prefer_initializing_formals
with factory constructors - fixed
void_checks
false positives with incomplete source - updated
unnecessary_getters_setters
to only flag the getter - improved messages for
avoid_renaming_method_parameters
- fixed false positive in
prefer_void_to_null
- fixed false positive in
omit_local_variable_types
- fixed false positive in
use_rethrow_when_possible
- performance improvements for
annotate_overrides
,prefer_contains
, andprefer_void_to_null
1.8.0
1.8.0
- performance improvements for
prefer_is_not_empty
- fixed false positive in
no_logic_in_create_state
- improve
package_names
to allow dart identifiers as package names - fixed false-positive in
package_names
(causing keywords to wrongly get flagged) - fixed
avoid_classes_with_only_static_member
to check for inherited members and also
flag classes with only methods - fixed
curly_braces_in_flow_control_structures
to properly flag terminatingelse-if
blocks - improved
always_specify_types
to support type aliases - fixed false positive in
unnecessary_string_interpolations
w/ nullable interpolated
strings - fixed false positive in
avoid_function_literals_in_foreach_calls
for nullable
iterables - fixed false positive in
avoid_returning_null
w/ NNBD - fixed false positive in
use_late_for_private_fields_and_variables
in the presence
of const constructors - new lint:
eol_at_end_of_file
- updated
analyzer
constraint to>=2.0.0 <3.0.0
1.7.1
1.7.0
1.7.0
- fixed case-sensitive false positive in
use_full_hex_values_for_flutter_colors
- improved try-block and switch statement flow analysis for
use_build_context_synchronously
- updated
use_setters_to_change_properties
to only highlight a method name,
not the entire body and doc comment - updated
unnecessary_getters_setters
to allow otherwise "unnecessary" getters
and setters with annotations - updated
missing_whitespace_between_adjacent_strings
to allow String
interpolations at the beginning and end of String literals - updated
unnecessary_getters_setters
to allow for setters with non-basic
assignments (for example,??=
or+=
)
1.6.1
1.6.0
1.6.0
- relaxed
non_constant_identifier_names
to allow for a trailing
underscore - fixed false negative in
prefer_final_parameters
where first parameter
is final - improved
directives_ordering
sorting of directives with dot paths and
dot-separated package names - relaxed
sort_child_properties_last
to allow for a trailing Widget in
instance creations
1.5.0
1.5.0
- (internal) migrated to
SecurityLintCode
instead of deprecated
SecurityLintCodeWithUniqueName
- (internal) fixed
avoid_types_as_parameter_names
to skip field formal
parameters - fixed false positives in
prefer_interpolation_to_compose_strings
where
the left operand is not a String - fixed false positives in
only_throw_errors
for misidentified type
variables - new lint:
depend_on_referenced_packages
- update
avoid_returning_null_for_future
to skip checks for null-safe
libraries - new lint:
use_test_throws_matchers
- relax
sort_child_properties_last
to accept closures after child - performance improvements for
prefer_contains
andprefer_is_empty
- new lint:
noop_primitive_operations
- mark
avoid_web_libraries_in_flutter
as stable - new lint:
prefer_final_parameters
- update
prefer_initializing_formals
to allow assignments where identifier
names don't match
1.4.0
1.4.0
directives_ordering
now checks ordering ofpackage:
imports in code
outside pub packages- simple reachability analysis added to
use_build_context_synchronously
to
short-circuit await-discovery in terminating blocks use_build_context_synchronously
updated to recognize nullable types when
accessed from legacy libraries
1.3.0
1.3.0
non_constant_identifier_names
updated to check local variables, for-loop
initializers and catch clauses- error range of
lines_longer_than_80_chars
updated to start at 80 to make
splitting easier - new lint:
require_trailing_commas
- new lint:
prefer_null_aware_method_calls