Skip to content

Releases: dart-lang/linter

1.9.0

11 Aug 15:18
@pq pq
7656827
Compare
Choose a tag to compare

1.9.0

  • marked avoid_dynamic_calls stable
  • (internal) removed unused MockPubVisitor and MockRule 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, and prefer_void_to_null

1.8.0

26 Jul 22:43
@pq pq
64d800b
Compare
Choose a tag to compare

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 terminating else-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

06 Jul 14:44
@pq pq
5a310b7
Compare
Choose a tag to compare

1.7.1

  • Update analyzer constraint to >=1.7.0 <3.0.0.
  • Update meta constraint to >=1.3.0 <3.0.0.

1.7.0

30 Jun 22:28
@pq pq
422981f
Compare
Choose a tag to compare

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

15 Jun 19:34
@pq pq
ab01bab
Compare
Choose a tag to compare

1.6.1

  • reverted relaxation of sort_child_properties_last to allow for a
    trailing Widget in instance creations

1.6.0

14 Jun 16:46
@pq pq
58b9a2f
Compare
Choose a tag to compare

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

01 Jun 13:11
@pq pq
186be59
Compare
Choose a tag to compare

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 and prefer_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

20 Apr 16:40
@pq pq
af5684b
Compare
Choose a tag to compare

1.4.0

  • directives_ordering now checks ordering of package: 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

13 Apr 17:39
@pq pq
dda93df
Compare
Choose a tag to compare

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

1.2.1

22 Mar 22:52
@pq pq
412ce30
Compare
Choose a tag to compare

1.2.1

  • fix: adjusted SDK lower bound to 2.12.0-0 (from 2.13.0-0)