Add CHANGELOG 3.0.0 entries for Analyzer

Change-Id: I3333cf7346ee4a7d104762ccf55677413d39a6ea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291140
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Sam Rawlins 2023-03-27 15:07:47 +00:00 committed by Commit Queue
parent d5da8dc67d
commit 9efaeb5da3

View file

@ -185,6 +185,24 @@
* Better indentation of multiline function types inside type argument lists.
* Fix bug where parameter metadata wouldn't always split when it should.
#### Analyzer
- Most static analysis "hints" are converted to be "warnings," and any
remaining hints are intended to be converted soon after the Dart 3.0 release.
This means that any (previously) hints reported by `dart analyze` are now
considered "fatal" (will result in a non-zero exit code). The previous
behavior, where such hints (now warnings) are not fatal, can be achieved by
using the `--no-fatal-warnings` flag. This behavior can also be altered, on a
code-by-code basis, by [changing the severity of rules] in an analysis
options file.
- Add static enforcement of the SDK-only `@Since` annotation. When code in a
package uses a Dart SDK element annotated with `@Since`, analyzer will report
a warning if the package's [Dart SDK constraint] allows versions of Dart
which don't include that element.
[changing the severity of rules]: https://dart.dev/guides/language/analysis-options#changing-the-severity-of-rules
[Dart SDK constraint]: https://dart.dev/tools/pub/pubspec#sdk-constraints
#### Linter
Updates the Linter to `1.34.0-dev`, which includes changes that