@@ -33,7 +33,7 @@ const _totalTimeout = Duration(minutes: 50);
33
33
34
34
/// The dartdoc version to use.
35
35
/// keep in-sync with app/lib/shared/versions.dart
36
- const _dartdocVersion = '8.3.4 ' ;
36
+ const _dartdocVersion = '9.0.0 ' ;
37
37
38
38
/// Program to be used as subprocess for running pana, ensuring that we capture
39
39
/// all the output, and only run analysis in a subprocess that can timeout and
@@ -131,31 +131,10 @@ Future<void> main(List<String> args) async {
131
131
);
132
132
133
133
// sanity check on pana report size
134
- var reportSize = gzip
134
+ final reportSize = gzip
135
135
.encode (utf8.encode (json.encode (summary.toJson ())))
136
136
.length;
137
137
138
- // Note: the new license coverage data seems to generate coverage pairs that
139
- // occupy way too much space. Until that bug is fixed, we should remove
140
- // that data from the summary.
141
- // TODO: remove this block once https://github.com/dart-lang/pana/issues/1481 gets fixed and deployed
142
- if (reportSize > _reportSizeDropThreshold) {
143
- // We are storing the licenses in two fields, removing the fallback/unused one.
144
- // ignore: deprecated_member_use
145
- summary.licenses? .clear ();
146
-
147
- // Remove excessive range data.
148
- for (final l in summary.result? .licenses ?? < License > []) {
149
- final count = l.range? .coverages.length ?? 0 ;
150
- if (count > 50 ) {
151
- l.range? .coverages.removeRange (50 , count);
152
- }
153
- }
154
-
155
- // re-calculate report size
156
- reportSize = gzip.encode (utf8.encode (json.encode (summary.toJson ()))).length;
157
- }
158
-
159
138
if (reportSize > _reportSizeDropThreshold) {
160
139
summary = Summary (
161
140
createdAt: summary.createdAt,
0 commit comments