Skip to content

Commit

Permalink
update overview markdown config
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Jan 15, 2024
1 parent 419b6f3 commit fc003bb
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,13 @@ public Integer call() throws Exception {

private void renderWarnings(BufferedWriter writer, Set<Warning> warnings) throws IOException {

// TODO: maybe remove no warnings message

if (warnings.isEmpty()) {
writer.write("<h3 class=\"no-warnings\">No warnings found ✅</h3>\n\n");
} else {

Map<String, List<Warning>> grouped = warnings.stream().collect(Collectors.groupingBy(w -> w.module, Collectors.toList()));
writer.write(String.format("<h3 class=\"found-warnings\">Warnings found in %d module%s ❌</h3>\n\n", grouped.size(), grouped.size() > 1 ? "s" : ""));

for (Map.Entry<String, List<Warning>> e : grouped.entrySet()) {

Expand All @@ -188,9 +189,7 @@ private void renderWarnings(BufferedWriter writer, Set<Warning> warnings) throws
writer.write("""
<style>
.dash-row.row-warnings .dash-card-frame {
margin-top: 0;
margin-bottom: 0;
padding: 0 0.4em;
background: none;
}
.dash-row.row-warnings .no-warnings {
color: #4BB543;
Expand Down

0 comments on commit fc003bb

Please sign in to comment.