This repository was archived by the owner on Nov 20, 2024. It is now read-only.
Releases: dart-archive/linter
Releases · dart-archive/linter
1.9.0
1.9.0
- marked
avoid_dynamic_callsstable - (internal) removed unused
MockPubVisitorandMockRuleclasses - fixed
prefer_void_to_nullfalse positive w/ overridden properties - (internal) removed references to
NodeLintRulein lint rule declarations - fixed
prefer_void_to_nullfalse positive on overriding returns - fixed
prefer_generic_function_type_aliasesfalse positive w/ incomplete statements - fixed false positive for
prefer_initializing_formalswith factory constructors - fixed
void_checksfalse positives with incomplete source - updated
unnecessary_getters_settersto 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_namesto allow dart identifiers as package names - fixed false-positive in
package_names(causing keywords to wrongly get flagged) - fixed
avoid_classes_with_only_static_memberto check for inherited members and also
flag classes with only methods - fixed
curly_braces_in_flow_control_structuresto properly flag terminatingelse-if
blocks - improved
always_specify_typesto support type aliases - fixed false positive in
unnecessary_string_interpolationsw/ nullable interpolated
strings - fixed false positive in
avoid_function_literals_in_foreach_callsfor nullable
iterables - fixed false positive in
avoid_returning_nullw/ NNBD - fixed false positive in
use_late_for_private_fields_and_variablesin the presence
of const constructors - new lint:
eol_at_end_of_file - updated
analyzerconstraint 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_propertiesto only highlight a method name,
not the entire body and doc comment - updated
unnecessary_getters_settersto allow otherwise "unnecessary" getters
and setters with annotations - updated
missing_whitespace_between_adjacent_stringsto allow String
interpolations at the beginning and end of String literals - updated
unnecessary_getters_settersto allow for setters with non-basic
assignments (for example,??=or+=)
1.6.1
1.6.0
1.6.0
- relaxed
non_constant_identifier_namesto allow for a trailing
underscore - fixed false negative in
prefer_final_parameterswhere first parameter
is final - improved
directives_orderingsorting of directives with dot paths and
dot-separated package names - relaxed
sort_child_properties_lastto allow for a trailing Widget in
instance creations
1.5.0
1.5.0
- (internal) migrated to
SecurityLintCodeinstead of deprecated
SecurityLintCodeWithUniqueName - (internal) fixed
avoid_types_as_parameter_namesto skip field formal
parameters - fixed false positives in
prefer_interpolation_to_compose_stringswhere
the left operand is not a String - fixed false positives in
only_throw_errorsfor misidentified type
variables - new lint:
depend_on_referenced_packages - update
avoid_returning_null_for_futureto skip checks for null-safe
libraries - new lint:
use_test_throws_matchers - relax
sort_child_properties_lastto accept closures after child - performance improvements for
prefer_containsandprefer_is_empty - new lint:
noop_primitive_operations - mark
avoid_web_libraries_in_flutteras stable - new lint:
prefer_final_parameters - update
prefer_initializing_formalsto allow assignments where identifier
names don't match
1.4.0
1.4.0
directives_orderingnow checks ordering ofpackage:imports in code
outside pub packages- simple reachability analysis added to
use_build_context_synchronouslyto
short-circuit await-discovery in terminating blocks use_build_context_synchronouslyupdated to recognize nullable types when
accessed from legacy libraries
1.3.0
1.3.0
non_constant_identifier_namesupdated to check local variables, for-loop
initializers and catch clauses- error range of
lines_longer_than_80_charsupdated to start at 80 to make
splitting easier - new lint:
require_trailing_commas - new lint:
prefer_null_aware_method_calls