Skip to content

Commit e2ef697

Browse files
srawlinscommit-bot@chromium.org
authored andcommitted
Add to analyzer's changelog for 2.12.
Change-Id: Ida77c397743cbb460376a1f47f6de861e878f376 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180801 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent e8497a3 commit e2ef697

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,46 @@
9999
* Removed the `--use-fasta-parser`, `--preview-dart-2`, and
100100
`--enable-assert-initializers` command line options. These options haven't
101101
been supported in a while and were no-ops.
102+
* Report diagnostics regarding the
103+
[`@internal`](https://pub.dev/documentation/meta/latest/meta/internal-constant.html)
104+
annotation.
105+
* Improve diagnostic-reporting regarding the
106+
[`@doNotStore`](https://pub.dev/documentation/meta/latest/meta/doNotStore-constant.html)
107+
annotation.
108+
* Introduce a diagnostic which is reported when a library member named `main`
109+
is not a function.
110+
* Introduce a diagnostic which is reported when a `main` function's first
111+
parameter is not a supertype of `List<String>`.
112+
* Introduce a diagnostic which is reported when an `// ignore` comment contains
113+
an error code which is not being reported.
114+
* Introduce a diagnostic which is reported when an `// ignore` comment contains
115+
an error code which cannot be ignored.
116+
* Introduce a diagnostic which is reported when an `// ignore` comment contains
117+
an error code which is already being ignored.
118+
* Report diagnostics when using
119+
[`@visibleForTesting`](https://pub.dev/documentation/meta/latest/meta/visibleForTesting-constant.html)
120+
on top-level variables.
121+
* Fix false positive reports of "unused element" for top-level setters and
122+
getters.
123+
* Fix false positive reports regarding `@deprecated` field formal parameters at
124+
their declaration.
125+
* For null safety, introduce a diagnostic which reports when a null-check will
126+
always fail.
127+
* Fix false positive reports regarding optional parameters on privat
128+
constructors being unused.
129+
* Introduce a diagnostic which is reported when a constructor includes
130+
duplicate field formal parameters.
131+
* Improve the "unused import" diagnostic when multiple import directives share
132+
a common prefix.
133+
* Fix false positive "unused import" diagnostic regarding an import which
134+
provides an extension method which is used.
135+
* For null safety, improve the messaging of "use of nullable value" diagnostics
136+
for eight different contexts.
137+
* Fix false positive reports regarding `@visibleForTesting` members in a "hide"
138+
combinator of an import or export directive.
139+
* Improve the messaging of "invalid override" diagnostics.
140+
* Introduce a diagnostic which is reported when `Future<T>.catchError` is
141+
called with an `onError` callback which does not return `FutureOr<T>`.
102142

103143
#### dartfmt
104144

0 commit comments

Comments
 (0)