Skip to content

Commit 47939fa

Browse files
fix(report): Add commas between tags in generated markdown (#553)
* Seperate Tags with Comma in Report * Delete pkg/.DS_Store Signed-off-by: Teja Kummarikuntla <[email protected]> * Update pkg/reporter/markdown.go Co-authored-by: Kunal Singh <[email protected]> Signed-off-by: Teja Kummarikuntla <[email protected]> --------- Signed-off-by: Teja Kummarikuntla <[email protected]> Co-authored-by: Kunal Singh <[email protected]>
1 parent e68ead1 commit 47939fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/reporter/markdown.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"os"
66
"sync"
77
"text/template"
8+
"strings"
89

910
"github.com/safedep/vet/pkg/analyzer"
1011
"github.com/safedep/vet/pkg/common/logger"
@@ -128,7 +129,7 @@ func (r *markdownReportGenerator) Finish() error {
128129
Pkg: s.pkg,
129130
PkgRemediationName: sr.packageNameForRemediationAdvice(s.pkg),
130131
Score: s.score,
131-
Tags: fmt.Sprintf("%s", s.tags),
132+
Tags: strings.Join(s.tags, ", "),
132133
})
133134

134135
if _, ok := summaries[mp]; !ok {

pkg/reporter/markdown.template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
| Major Version Differences | {{ .DriftLibsCount }} |
1212
| Manifests | {{ .ManifestsCount }} |
1313
| Total Packages | {{ .PackagesCount }} |
14-
| Exepmted Packages | {{.ExemptedLibs}} |
14+
| Exempted Packages | {{.ExemptedLibs}} |
1515

1616

1717

0 commit comments

Comments
 (0)