Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: lib/src/report/html_reporter.dart

Issue 1523353002: Fixes for html report (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Reformat Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | lib/src/server/dependency_graph.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 ''';
OLDNEW
« no previous file with comments | « no previous file | lib/src/server/dependency_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698