Skip to content

Commit f50d9a6

Browse files
committed
internal/scan: put -show <option> into single quotes
This establishes a convention where we wrap examples and mentions of flag usage into single quotes to indicate proper usage. For instance, this indicates that the verbose mode is triggered when both `-show` and `verbose` are used at the same time one after another. The same goes for other flags, such as scan. Change-Id: I45cdc6499f9203d0ef73246cb8985c7b420cfacd Reviewed-on: https://go-review.googlesource.com/c/vuln/+/560815 Reviewed-by: Maceo Thompson <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Zvonimir Pavlinovic <[email protected]>
1 parent c02416c commit f50d9a6

29 files changed

+38
-38
lines changed

cmd/govulncheck/testdata/strip/strip.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Vulnerability #2: GO-2020-0015
3838
Your code is affected by 2 vulnerabilities from 1 module.
3939
This scan found no other vulnerabilities in packages you import or modules you
4040
require.
41-
Use -show verbose for more details.
41+
Use '-show verbose' for more details.

cmd/govulncheck/testdata/testfiles/binary-call/binary_call_text.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ Your code is affected by 3 vulnerabilities from 2 modules.
4343
This scan also found 0 vulnerabilities in packages you import and 1
4444
vulnerability in modules you require, but your code doesn't appear to call these
4545
vulnerabilities.
46-
Use -show verbose for more details.
46+
Use '-show verbose' for more details.

cmd/govulncheck/testdata/testfiles/binary-module/binary_module_text.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ Vulnerability #4: GO-2020-0015
4545

4646
Your code may be affected by 4 vulnerabilities.
4747

48-
Use -scan=symbol for more fine grained vulnerability detection.
48+
Use '-scan symbol' for more fine grained vulnerability detection.

cmd/govulncheck/testdata/testfiles/binary-package/binary_package_text.ct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ Vulnerability #3: GO-2021-0054
3333

3434
Your code may be affected by 3 vulnerabilities.
3535
This scan also found 1 vulnerability in modules you require.
36-
Use -scan=symbol for more fine grained vulnerability detection and -show verbose
37-
for more details.
36+
Use '-scan symbol' for more fine grained vulnerability detection and '-show
37+
verbose' for more details.

cmd/govulncheck/testdata/testfiles/convert/convert_text.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ Your code is affected by 2 vulnerabilities from 2 modules.
3232
This scan also found 1 vulnerability in packages you import and 0
3333
vulnerabilities in modules you require, but your code doesn't appear to call
3434
these vulnerabilities.
35-
Use -show verbose for more details.
35+
Use '-show verbose' for more details.

cmd/govulncheck/testdata/testfiles/extract/binary_extract.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Your code is affected by 3 vulnerabilities from 2 modules.
4343
This scan also found 0 vulnerabilities in packages you import and 1
4444
vulnerability in modules you require, but your code doesn't appear to call these
4545
vulnerabilities.
46-
Use -show verbose for more details.
46+
Use '-show verbose' for more details.
4747

4848
# Test extract mode. Due to the size of the blob even for smallest programs, we
4949
# directly compare its output to a target vuln_blob.json file.

cmd/govulncheck/testdata/testfiles/source-call/source_call_text.ct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Your code is affected by 3 vulnerabilities from 2 modules.
4242
This scan also found 0 vulnerabilities in packages you import and 2
4343
vulnerabilities in modules you require, but your code doesn't appear to call
4444
these vulnerabilities.
45-
Use -show verbose for more details.
45+
Use '-show verbose' for more details.
4646

4747
#####
4848
# Test of basic govulncheck in source mode with expanded traces
@@ -98,7 +98,7 @@ Your code is affected by 3 vulnerabilities from 2 modules.
9898
This scan also found 0 vulnerabilities in packages you import and 2
9999
vulnerabilities in modules you require, but your code doesn't appear to call
100100
these vulnerabilities.
101-
Use -show verbose for more details.
101+
Use '-show verbose' for more details.
102102

103103
#####
104104
# Test of basic govulncheck in source mode with the -show verbose flag

cmd/govulncheck/testdata/testfiles/source-call/source_informational_text.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ Your code is affected by 0 vulnerabilities.
1111
This scan also found 1 vulnerability in packages you import and 1 vulnerability
1212
in modules you require, but your code doesn't appear to call these
1313
vulnerabilities.
14-
Use -show verbose for more details.
14+
Use '-show verbose' for more details.

cmd/govulncheck/testdata/testfiles/source-call/source_multientry_text.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Your code is affected by 1 vulnerability from 1 module.
2222
This scan also found 0 vulnerabilities in packages you import and 1
2323
vulnerability in modules you require, but your code doesn't appear to call these
2424
vulnerabilities.
25-
Use -show verbose for more details.
25+
Use '-show verbose' for more details.
2626

2727
#####
2828
# Test for multple call stacks in source mode with expanded traces

cmd/govulncheck/testdata/testfiles/source-call/source_replace_text.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ Your code is affected by 1 vulnerability from 1 module.
2222
This scan also found 0 vulnerabilities in packages you import and 2
2323
vulnerabilities in modules you require, but your code doesn't appear to call
2424
these vulnerabilities.
25-
Use -show verbose for more details.
25+
Use '-show verbose' for more details.

0 commit comments

Comments
 (0)