-
Notifications
You must be signed in to change notification settings - Fork 9
/
example.xhtml
71 lines (65 loc) · 8.09 KB
/
example.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head><title>Scan Results</title></head>
<body style='background: white;'>
<h1>Scan Results</h1>
<h2>List of Defects</h2>
<pre style='white-space: pre-wrap;'>
<a name='def1'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def1'>[#def1]</a>
docs/example.sh:7:7: info[<b><a href="https://github.com/koalaman/shellcheck/wiki/SC2086" title="description of ShellCheck's checker SC2086">SC2086</a></b>]: Double quote to prevent globbing and word splitting.
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 4| # Quoting</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 5| # =======</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 6| </span></span>
<span style='color: #00C0C0;'>#<span style='color: #000000;'> 7|-> echo $1 # Unquoted variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 8| rm "~/my file.txt" # Quoted tilde expansion</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 9| v='--verbose="true"'; cmd $v # Literal quotes in variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 10| # touch $@ # Unquoted $@</span></span>
<a name='def2'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def2'>[#def2]</a>
docs/example.sh:8:6: warning[<b><a href="https://github.com/koalaman/shellcheck/wiki/SC2088" title="description of ShellCheck's checker SC2088">SC2088</a></b>]: Tilde does not expand in quotes. Use $HOME.
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 5| # =======</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 6| </span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 7| echo $1 # Unquoted variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #000000;'> 8|-> rm "~/my file.txt" # Quoted tilde expansion</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 9| v='--verbose="true"'; cmd $v # Literal quotes in variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 10| # touch $@ # Unquoted $@</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 11| # echo 'Path is $PATH' # Variables in single quotes</span></span>
<a name='def3'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def3'>[#def3]</a>
docs/example.sh:9:4: warning[<b><a href="https://github.com/koalaman/shellcheck/wiki/SC2089" title="description of ShellCheck's checker SC2089">SC2089</a></b>]: Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions.
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 6| </span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 7| echo $1 # Unquoted variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 8| rm "~/my file.txt" # Quoted tilde expansion</span></span>
<span style='color: #00C0C0;'>#<span style='color: #000000;'> 9|-> v='--verbose="true"'; cmd $v # Literal quotes in variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 10| # touch $@ # Unquoted $@</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 11| # echo 'Path is $PATH' # Variables in single quotes</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 12| # trap "echo Took ${SECONDS}s" 0 # Prematurely expanded trap</span></span>
<a name='def4'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def4'>[#def4]</a>
docs/example.sh:9:28: warning[<b><a href="https://github.com/koalaman/shellcheck/wiki/SC2090" title="description of ShellCheck's checker SC2090">SC2090</a></b>]: Quotes/backslashes in this variable will not be respected.
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 6| </span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 7| echo $1 # Unquoted variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 8| rm "~/my file.txt" # Quoted tilde expansion</span></span>
<span style='color: #00C0C0;'>#<span style='color: #000000;'> 9|-> v='--verbose="true"'; cmd $v # Literal quotes in variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 10| # touch $@ # Unquoted $@</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 11| # echo 'Path is $PATH' # Variables in single quotes</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 12| # trap "echo Took ${SECONDS}s" 0 # Prematurely expanded trap</span></span>
<a name='def5'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def5'>[#def5]</a>
docs/example.sh:9:28: style[<b><a href="https://github.com/koalaman/shellcheck/wiki/SC2248" title="description of ShellCheck's checker SC2248">SC2248</a></b>]: Prefer double quoting even when variables don't contain special characters.
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 6| </span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 7| echo $1 # Unquoted variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 8| rm "~/my file.txt" # Quoted tilde expansion</span></span>
<span style='color: #00C0C0;'>#<span style='color: #000000;'> 9|-> v='--verbose="true"'; cmd $v # Literal quotes in variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 10| # touch $@ # Unquoted $@</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 11| # echo 'Path is $PATH' # Variables in single quotes</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 12| # trap "echo Took ${SECONDS}s" 0 # Prematurely expanded trap</span></span>
<a name='def6'/><b>Error: <span style='background: #C0FF00;'>SHELLCHECK_WARNING</span>:</b> <a href ='#def6'>[#def6]</a>
docs/example.sh:9:28: style[<b><a href="https://github.com/koalaman/shellcheck/wiki/SC2250" title="description of ShellCheck's checker SC2250">SC2250</a></b>]: Prefer putting braces around variable references even when not strictly required.
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 6| </span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 7| echo $1 # Unquoted variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 8| rm "~/my file.txt" # Quoted tilde expansion</span></span>
<span style='color: #00C0C0;'>#<span style='color: #000000;'> 9|-> v='--verbose="true"'; cmd $v # Literal quotes in variables</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 10| # touch $@ # Unquoted $@</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 11| # echo 'Path is $PATH' # Variables in single quotes</span></span>
<span style='color: #00C0C0;'>#<span style='color: #C0C0C0;'> 12| # trap "echo Took ${SECONDS}s" 0 # Prematurely expanded trap</span></span>
</pre>
</body>
</html>