| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dev_compiler.src.html_reporter; | 5 library dev_compiler.src.html_reporter; |
| 6 | 6 |
| 7 import 'dart:collection' show LinkedHashSet; | 7 import 'dart:collection' show LinkedHashSet; |
| 8 import 'dart:convert' show HTML_ESCAPE; | 8 import 'dart:convert' show HTML_ESCAPE; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 .toList(); | 86 .toList(); |
| 87 summaries.add( | 87 summaries.add( |
| 88 new SummaryInfo('Package: code', name, 'package:${name}', issues)); | 88 new SummaryInfo('Package: code', name, 'package:${name}', issues)); |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 | 91 |
| 92 // dart: code | 92 // dart: code |
| 93 keys = result.system.keys.toList()..sort(); | 93 keys = result.system.keys.toList()..sort(); |
| 94 for (String name in keys) { | 94 for (String name in keys) { |
| 95 LibrarySummary summary = result.system[name]; | 95 LibrarySummary summary = result.system[name]; |
| 96 summaries.add(new SummaryInfo( | 96 if (summary.messages.isNotEmpty) { |
| 97 'Dart: code', name, 'dart:${name}', summary.messages)); | 97 summaries.add(new SummaryInfo( |
| 98 'Dart: code', name, 'dart:${name}', summary.messages)); |
| 99 } |
| 98 } | 100 } |
| 99 | 101 |
| 100 // Loose files | 102 // Loose files |
| 101 if (result.loose.isNotEmpty) { | 103 if (result.loose.isNotEmpty) { |
| 102 List<MessageSummary> issues = result.loose.values | 104 List<MessageSummary> issues = result.loose.values |
| 103 .expand((IndividualSummary summary) => summary.messages) | 105 .expand((IndividualSummary summary) => summary.messages) |
| 104 .toList(); | 106 .toList(); |
| 105 summaries.add(new SummaryInfo('Files', 'files', 'files', issues)); | 107 summaries.add(new SummaryInfo('Files', 'files', 'files', issues)); |
| 106 } | 108 } |
| 107 | 109 |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 } | 525 } |
| 524 | 526 |
| 525 .blob-code-expandable { | 527 .blob-code-expandable { |
| 526 padding-top: 4px; | 528 padding-top: 4px; |
| 527 padding-bottom: 4px; | 529 padding-bottom: 4px; |
| 528 background-color: #f4f7fb; | 530 background-color: #f4f7fb; |
| 529 border-width: 1px 0; | 531 border-width: 1px 0; |
| 530 border-bottom-right-radius: 3px; | 532 border-bottom-right-radius: 3px; |
| 531 } | 533 } |
| 532 '''; | 534 '''; |
| OLD | NEW |