Skip to content

Commit 846f39e

Browse files
committed
Add column for code quality badges
1 parent 1500640 commit 846f39e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

html-report.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ echo '<th>Last updated</th>'
5353
echo '<th>OK</th>'
5454
echo '<th>Action</th>'
5555
echo '<th>Build</th>'
56+
echo '<th>Quality</th>'
5657
echo '</tr>'
5758

5859
# List components of the BOM, and loop over them.
@@ -72,17 +73,19 @@ do
7273
url=$(./project-url.sh "$g:$a")
7374
url=${url#* }
7475

75-
# Compute CI badge
76+
# Compute badges
7677
case "$url" in
7778
https://github.com/*)
7879
slug=${url#https://github.com/}
7980
ciOverride=$(grep "^$slug " ci-badges.txt)
8081
test "$ciOverride" &&
8182
ciBadge=${ciOverride#$slug } ||
8283
ciBadge="<td class=\"badge\"><a href=\"https://travis-ci.com/$slug\"><img src=\"https://travis-ci.com/$slug.svg?branch=master\"></a></td>"
84+
qualityBadge="<td class=\"badge\"><a href=\"https://lgtm.com/projects/g/$slug/context:java\"><img src=\"https://img.shields.io/lgtm/grade/java/g/$slug.svg\"></a></td>"
8385
;;
8486
*)
8587
ciBadge="<td>-</td>"
88+
qualityBadge="<td>-</td>"
8689
;;
8790
esac
8891

@@ -176,6 +179,7 @@ do
176179
echo "<td>$releaseOK</td>"
177180
echo "<td sorttable_customkey=\"$actionKey\">$action</td>"
178181
echo "$ciBadge"
182+
echo "$qualityBadge"
179183
echo '</tr>'
180184
done
181185

0 commit comments

Comments
 (0)