We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f57a68 commit 9245296Copy full SHA for 9245296
lib/src/warnings.dart
@@ -256,12 +256,14 @@ class PackageWarningCounter {
256
}
257
258
int get errorCount {
259
+ if (_warningCounts.isEmpty) return 0;
260
return _warningCounts.keys
261
.map((w) => options.asErrors.contains(w) ? _warningCounts[w] : 0)
262
.reduce((a, b) => a + b);
263
264
265
int get warningCount {
266
267
268
.map((w) =>
269
options.asWarnings.contains(w) && !options.asErrors.contains(w)
testing/test_package_small/pubspec.lock
@@ -0,0 +1,5 @@
1
+# Generated by pub
2
+# See http://pub.dartlang.org/doc/glossary.html#lockfile
3
+packages: {}
4
+sdks:
5
+ dart: any
0 commit comments