From cb5d0b39cacf5e269f1663a3583d3af8681812f3 Mon Sep 17 00:00:00 2001 From: pq Date: Wed, 28 Jul 2021 03:18:44 +0000 Subject: [PATCH] linter 1.8.0 See: https://github.com/dart-lang/sdk/issues/46663 Change-Id: I836498caf61ee311a9c6674f20ab3a959bdc9e9f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/207401 Reviewed-by: Brian Wilkerson Commit-Queue: Phil Quitslund --- CHANGELOG.md | 20 +++++++++++++++++++- DEPS | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb270be67c3..aee53d35937 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -159,8 +159,26 @@ #### Linter -Updated the Linter to `1.7.0`, which includes changes that +Updated the Linter to `1.8.0`, which includes changes that + +- improve performance for `prefer_is_not_empty`. +- fix false positives in `no_logic_in_create_state`. +- improve `package_names` to allow dart identifiers as package names. +- fix a false-positive in `package_names` (causing keywords to wrongly get flagged). +- fix `avoid_classes_with_only_static_member` to check for inherited members and also + flag classes with only methods. +- fix `curly_braces_in_flow_control_structures` to properly flag terminating `else-if` + blocks. +- improve `always_specify_types` to support type aliases. +- fix a false positive in `unnecessary_string_interpolations` w/ nullable interpolated + strings +- fix a false positive in `avoid_function_literals_in_foreach_calls` for nullable + iterables. +- fix false positives in `avoid_returning_null` w/ NNBD +- fix false positives in `use_late_for_private_fields_and_variables` in the presence + of const constructors. +- adds a new lint: `eol_at_end_of_file`. - fix case-sensitive false positive in `use_full_hex_values_for_flutter_colors`. - improve try-block and switch statement flow analysis for `use_build_context_synchronously`. diff --git a/DEPS b/DEPS index b299924789f..bfb110f75a1 100644 --- a/DEPS +++ b/DEPS @@ -123,7 +123,7 @@ vars = { "intl_tag": "0.17.0-nullsafety", "jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1", "json_rpc_2_rev": "7e00f893440a72de0637970325e4ea44bd1e8c8e", - "linter_tag": "422981ffb2fbd4010aa52381676cf745e2844dd9", + "linter_tag": "1.8.0", "lints_tag": "f9670df2a66e0ec12eb51554e70c1cbf56c8f5d0", "logging_rev": "575781ef196e4fed4fb737e38fb4b73d62727187", "markupsafe_rev": "8f45f5cfa0009d2a70589bcda0349b8cb2b72783",