Skip to content

Commit ae31108

Browse files
committed
internal/scan: remove redundant newline for package and module mode
Change-Id: If35e3951c20ad3c98f8a940172933acce665e7bd Reviewed-on: https://go-review.googlesource.com/c/vuln/+/551377 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Maceo Thompson <maceothompson@google.com>
1 parent 9be1a0d commit ae31108

File tree

6 files changed

+3
-8
lines changed

6 files changed

+3
-8
lines changed

cmd/govulncheck/testdata/testfiles/source-module/source_module_text.ct

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ Vulnerability #2: GO-2021-0113
3030
Found in: golang.org/x/text@v0.3.5
3131
Fixed in: golang.org/x/text@v0.3.7
3232

33-
3433
Share feedback at https://go.dev/s/govulncheck-feedback.

cmd/govulncheck/testdata/testfiles/source-package/source_package_text.ct

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ Vulnerability #2: GO-2021-0113
2929
Found in: golang.org/x/text@v0.3.5
3030
Fixed in: golang.org/x/text@v0.3.7
3131

32-
3332
Share feedback at https://go.dev/s/govulncheck-feedback.

internal/scan/testdata/module-vuln.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ Vulnerability #1: GO-0000-0001
1212
Fixed in: golang.org/vmod@v0.1.3
1313
Platforms: amd
1414

15-
1615
Share feedback at https://go.dev/s/govulncheck-feedback.

internal/scan/testdata/multi-stack-modlevel.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ Vulnerability #2: GO-0000-0001
2020
Fixed in: golang.org/vmod@v0.1.3
2121
Platforms: amd
2222

23-
2423
Share feedback at https://go.dev/s/govulncheck-feedback.

internal/scan/testdata/package-vuln.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ Vulnerability #1: GO-0000-0001
1212
Fixed in: golang.org/vmod@v0.1.3
1313
Platforms: amd
1414

15-
1615
Share feedback at https://go.dev/s/govulncheck-feedback.

internal/scan/text.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (h *TextHandler) Flush() error {
7575
fixupFindings(h.osvs, h.findings)
7676
h.byVulnerability(h.findings)
7777
h.summary(h.findings)
78-
h.print("\nShare feedback at https://go.dev/s/govulncheck-feedback.\n")
78+
h.print("Share feedback at https://go.dev/s/govulncheck-feedback.\n")
7979
if h.err != nil {
8080
return h.err
8181
}
@@ -298,7 +298,7 @@ func (h *TextHandler) traces(traces []*findingSummary) {
298298
func (h *TextHandler) summary(findings []*findingSummary) {
299299
counters := counters(findings)
300300
if counters.VulnerabilitiesCalled == 0 {
301-
h.print(choose(h.scanLevel.WantSymbols(), "No vulnerabilities found.\n", ""))
301+
h.print(choose(h.scanLevel.WantSymbols(), "No vulnerabilities found.\n\n", ""))
302302
return
303303
}
304304
h.print(`Your code is affected by `)
@@ -316,7 +316,7 @@ func (h *TextHandler) summary(findings []*findingSummary) {
316316
}
317317
h.print(` the Go standard library`)
318318
}
319-
h.print(".\n")
319+
h.print(".\n\n")
320320
}
321321

322322
func (h *TextHandler) style(style style, values ...any) {

0 commit comments

Comments
 (0)