markdown diff: split add/remove tables #180
style.yaml
on: pull_request
check gofmt
12s
check goimports
26s
golangci-lint
1m 33s
Lint
27s
Annotations
10 errors
check gofmt:
pkg/render/markdown.go#L1
Please run gofmt -s.
diff --git a/pkg/render/markdown.go b/pkg/render/markdown.go
index 840f5d5..6c69e0b 100644
--- a/pkg/render/markdown.go
+++ b/pkg/render/markdown.go
@@ -22,7 +22,6 @@ func NewMarkdown(w io.Writer) Markdown {
return Markdown{w: w}
}
-
func mdRisk(score int, level string) string {
return fmt.Sprintf("%s %s", riskEmoji(score), level)
}
@@ -53,12 +52,12 @@ func (r Markdown) Full(ctx context.Context, rep bincapz.Report) error {
}
if fr.RiskScore != fr.PreviousRiskScore {
title = fmt.Sprintf("%s [%s → %s]",
- title,
- mdRisk(fr.PreviousRiskScore, fr.PreviousRiskLevel),
- mdRisk(fr.RiskScore, fr.RiskLevel))
+ title,
+ mdRisk(fr.PreviousRiskScore, fr.PreviousRiskLevel),
+ mdRisk(fr.RiskScore, fr.RiskLevel))
}
- fmt.Fprint(r.w, title + "\n\n")
+ fmt.Fprint(r.w, title+"\n\n")
added := 0
removed := 0
for _, b := range fr.Behaviors {
|
check gofmt
Process completed with exit code 1.
|
check goimports:
pkg/render/markdown.go#L1
Please run goimports.
diff --git a/pkg/render/markdown.go b/pkg/render/markdown.go
index 840f5d5..6c69e0b 100644
--- a/pkg/render/markdown.go
+++ b/pkg/render/markdown.go
@@ -22,7 +22,6 @@ func NewMarkdown(w io.Writer) Markdown {
return Markdown{w: w}
}
-
func mdRisk(score int, level string) string {
return fmt.Sprintf("%s %s", riskEmoji(score), level)
}
@@ -53,12 +52,12 @@ func (r Markdown) Full(ctx context.Context, rep bincapz.Report) error {
}
if fr.RiskScore != fr.PreviousRiskScore {
title = fmt.Sprintf("%s [%s → %s]",
- title,
- mdRisk(fr.PreviousRiskScore, fr.PreviousRiskLevel),
- mdRisk(fr.RiskScore, fr.RiskLevel))
+ title,
+ mdRisk(fr.PreviousRiskScore, fr.PreviousRiskLevel),
+ mdRisk(fr.RiskScore, fr.RiskLevel))
}
- fmt.Fprint(r.w, title + "\n\n")
+ fmt.Fprint(r.w, title+"\n\n")
added := 0
removed := 0
for _, b := range fr.Behaviors {
|
check goimports
Process completed with exit code 1.
|
check goimports
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
|
golangci-lint:
pkg/render/markdown.go#L24
File is not `gofumpt`-ed (gofumpt)
|
golangci-lint:
pkg/render/markdown.go#L25
File is not `gofmt`-ed with `-s` (gofmt)
|
golangci-lint:
pkg/render/markdown.go#L50
printf: fmt.Sprintf format %0.12) has unknown verb ) (govet)
|
golangci-lint:
pkg/render/markdown.go#L61
File is not `gofumpt`-ed (gofumpt)
|
golangci-lint
issues found
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
diff
Expired
|
556 Bytes |
|