@@ -33,7 +33,7 @@ const _totalTimeout = Duration(minutes: 50);
3333
3434/// The dartdoc version to use.
3535/// keep in-sync with app/lib/shared/versions.dart
36- const _dartdocVersion = '8.3.4 ' ;
36+ const _dartdocVersion = '9.0.0 ' ;
3737
3838/// Program to be used as subprocess for running pana, ensuring that we capture
3939/// 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 {
131131 );
132132
133133 // sanity check on pana report size
134- var reportSize = gzip
134+ final reportSize = gzip
135135 .encode (utf8.encode (json.encode (summary.toJson ())))
136136 .length;
137137
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-
159138 if (reportSize > _reportSizeDropThreshold) {
160139 summary = Summary (
161140 createdAt: summary.createdAt,
0 commit comments