Analyzer changelog entries for 2.17, 2.18, 2.19

Diagnostic codes which are not in a link do not have a diagnostics page.

Change-Id: Ifedf15e8c956e91a9c498c2496ab9fa3e65844a1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256782
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
This commit is contained in:
Sam Rawlins 2022-08-30 14:14:18 +00:00 committed by Commit Bot
parent 34ef0cf762
commit 36affd7014

View file

@ -78,6 +78,18 @@
### Tools
#### Analyzer
- added static enforcement of new `mustBeOverridden` annotation
- added quick fixes for diagnostics:
`abstract_field_initializer`,
`ambiguous_extension_member_access`,
`assert_in_redirecting_constructor`,
`default_value_on_required_parameter`,
`initializing_formal_for_non_existent_field`,
`super_formal_parameter_without_associated_named`,
- added new Hint: `cast_from_null_always_fails`
#### Linter
Updated the Linter to `1.27.0`, which includes changes that
@ -335,6 +347,20 @@ the new implementation carries a few subtle changes in behavior:
The standalone `dartanalyzer` tool has been removed as previously
announced. `dartanalyzer` is replaced by the `dart analyze` command.
#### Analyzer
- added quick fixes for diagnostics: `abstract_field_constructor_initializer`,
`abstract_class_member`,
[`always_put_control_body_on_new_line`](https://dart-lang.github.io/linter/lints/always_put_control_body_on_new_line.html),
[`avoid_print`](https://dart-lang.github.io/linter/lints/avoid_print.html),
[`avoid_renaming_method_parameters`](https://dart-lang.github.io/linter/lints/avoid_renaming_method_parameters.html),
[`discarded_futures`](https://dart-lang.github.io/linter/lints/discarded_futures.html),
`enum_with_abstract_member`, `non_bool_condition`,
`super_formal_parameter_without_associated_named`,
[`unawaited_futures`](https://dart-lang.github.io/linter/lints/unawaited_futures.html),
`unnecessary_final` `unused_element_parameter`,
- added new Hint: `deprecated_export_use`
#### Linter
Updated the Linter to `1.25.0`, which includes changes that
@ -695,6 +721,31 @@ them, you must set the lower bound on the SDK constraint for your package to
[web] A web app that uses only core Dart libraries.
```
#### Analyzer
- added quick fixes for diagnostics:
[`always_use_package_imports`](https://dart-lang.github.io/linter/lints/always_use_package_imports.html),
[`avoid_void_async`](https://dart-lang.github.io/linter/lints/avoid_void_async.html),
[`cascade_invocations`](https://dart-lang.github.io/linter/lints/cascade_invocations.html),
`default_list_constructor`,
[`must_call_super`](https://dart.dev/tools/diagnostic-messages#must_call_super),
[`no_leading_underscores_for_local_identifiers`](https://dart-lang.github.io/linter/lints/no_leading_underscores_for_local_identifiers.html),
[`null_check_on_nullable_type_parameter`](https://dart-lang.github.io/linter/lints/null_check_on_nullable_type_parameter.html),
[`prefer_function_declarations_over_variables`](https://dart-lang.github.io/linter/lints/prefer_function_declarations_over_variables.html),
[`sort_constructors_first`](https://dart-lang.github.io/linter/lints/sort_constructors_first.html),
[`sort_unnamed_constructors_first`](https://dart-lang.github.io/linter/lints/sort_unnamed_constructors_first.html),
`undefined_enum_constant`,
[`unnecessary_late`](https://dart-lang.github.io/linter/lints/unnecessary_late.html),
`unnecessary_null_aware_assignments`,
[`use_enums`](https://dart-lang.github.io/linter/lints/use_enums.html),
[`use_raw_strings`](https://dart-lang.github.io/linter/lints/use_raw_strings.html),
[`use_super_parameters`](https://dart-lang.github.io/linter/lints/use_super_parameters.html),
`var_return_type`
- added many errors for invalid enhanced enums
- added new Hint: [`unnecessary_final`](https://dart.dev/tools/diagnostic-messages#unnecessary_final)
- added new FFI error: `compound_implements_finalizable`
- improved errors for invalid Unicode escapes in source code
#### Linter
Updated the Linter to `1.22.0`, which includes changes that