linter 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` 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





Change-Id: I447a9e277a037da30e1c7b5c23d3bb5d1037f26c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/201163
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
pq 2021-06-01 21:09:06 +00:00 committed by commit-bot@chromium.org
parent b67de429e0
commit f6f8bf98e0
2 changed files with 21 additions and 2 deletions

View file

@ -64,8 +64,27 @@ https://github.com/dart-lang/sdk/issues/46100
#### Linter
Updated the Linter to `1.4.0`, which includes:
Updated the Linter to `1.5.0`, which includes:
- (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`.
- relaxed `sort_child_properties_last` to accept closures after child.
- performance improvements for `prefer_contains` and `prefer_is_empty`.
- new lint: `noop_primitive_operations`.
- marked `avoid_web_libraries_in_flutter` as stable.
- new lint: `prefer_final_parameters`.
- updated `prefer_initializing_formals` to allow assignments where identifier
names don't match.
- `directives_ordering` now checks ordering of `package:` imports in code
outside pub packages.
- simple reachability analysis added to `use_build_context_synchronously` to

2
DEPS
View file

@ -125,7 +125,7 @@ vars = {
"intl_tag": "0.17.0-nullsafety",
"jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1",
"json_rpc_2_rev": "7e00f893440a72de0637970325e4ea44bd1e8c8e",
"linter_tag": "1.4.0",
"linter_tag": "1.5.0",
"lints_tag": "f9670df2a66e0ec12eb51554e70c1cbf56c8f5d0",
"logging_rev": "e2f633b543ef89c54688554b15ca3d7e425b86a2",
"markupsafe_rev": "8f45f5cfa0009d2a70589bcda0349b8cb2b72783",