Skip to content

Commit b5ef635

Browse files
authored
Merge pull request #1 from SlizR/code-quality-report
Code Quality Report
2 parents eba6fa3 + 0eccbb5 commit b5ef635

File tree

1 file changed

+124
-0
lines changed

1 file changed

+124
-0
lines changed

quality/log.txt

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
CODE QUALITY REPORT
2+
===================
3+
4+
SHELLCHECK (.sh)
5+
----------------
6+
7+
In nil/boot/bootinst.sh line 66:
8+
if [ "$1" != "--rex" -a "$2" != "--rex" ]; then
9+
^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
10+
11+
12+
In nil/boot/bootinst.sh line 67:
13+
konsole --nofork -e /bin/sh $0 --rex 2>/dev/null || xterm -e /bin/sh $0 --rex 2>/dev/null || /bin/sh $0 --rex 2>/dev/null
14+
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
15+
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
16+
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
17+
18+
Did you mean:
19+
konsole --nofork -e /bin/sh "$0" --rex 2>/dev/null || xterm -e /bin/sh "$0" --rex 2>/dev/null || /bin/sh "$0" --rex 2>/dev/null
20+
21+
22+
In nil/boot/bootinst.sh line 73:
23+
if [ "$UID" != "0" -a "$UID" != "" ]; then
24+
^--^ SC3028 (warning): In POSIX sh, UID is undefined.
25+
^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
26+
^--^ SC3028 (warning): In POSIX sh, UID is undefined.
27+
28+
29+
In nil/boot/bootinst.sh line 78:
30+
read junk
31+
^--^ SC2162 (info): read without -r will mangle backslashes.
32+
33+
34+
In nil/boot/bootinst.sh line 85:
35+
BOOT="$(realpath "$BOOT" 2>/dev/null || echo $BOOT)"
36+
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
37+
38+
Did you mean:
39+
BOOT="$(realpath "$BOOT" 2>/dev/null || echo "$BOOT")"
40+
41+
42+
In nil/boot/bootinst.sh line 86:
43+
cd "$BOOT"
44+
^--------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
45+
46+
Did you mean:
47+
cd "$BOOT" || exit
48+
49+
50+
In nil/boot/bootinst.sh line 93:
51+
if [ "$(fdisk -l "$DEV" | fgrep "$DEV" | fgrep "*")" != "" ]; then
52+
^---^ SC2197 (info): fgrep is non-standard and deprecated. Use grep -F instead.
53+
^---^ SC2197 (info): fgrep is non-standard and deprecated. Use grep -F instead.
54+
55+
56+
In nil/boot/bootinst.sh line 99:
57+
read junk
58+
^--^ SC2162 (info): read without -r will mangle backslashes.
59+
60+
61+
In nil/boot/bootinst.sh line 110:
62+
mount -o remount,exec $DEV
63+
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
64+
65+
Did you mean:
66+
mount -o remount,exec "$DEV"
67+
68+
69+
In nil/boot/bootinst.sh line 127:
70+
if [ $? -ne 0 ]; then
71+
^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.
72+
73+
74+
In nil/boot/bootinst.sh line 130:
75+
read junk
76+
^--^ SC2162 (info): read without -r will mangle backslashes.
77+
78+
79+
In nil/boot/bootinst.sh line 143:
80+
fdisk -l "$DEV" | fgrep "*" | fgrep "$DEV" | cut -d " " -f 1 \
81+
^---^ SC2197 (info): fgrep is non-standard and deprecated. Use grep -F instead.
82+
^---^ SC2197 (info): fgrep is non-standard and deprecated. Use grep -F instead.
83+
84+
85+
In nil/boot/bootinst.sh line 146:
86+
echo $PART
87+
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
88+
89+
Did you mean:
90+
echo "$PART"
91+
92+
93+
In nil/boot/bootinst.sh line 148:
94+
) | fdisk $DEV >/dev/null 2>&1
95+
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
96+
97+
Did you mean:
98+
) | fdisk "$DEV" >/dev/null 2>&1
99+
100+
101+
In nil/boot/bootinst.sh line 157:
102+
read junk
103+
^--^ SC2162 (info): read without -r will mangle backslashes.
104+
^--^ SC2034 (warning): junk appears unused. Verify use (or export if used externally).
105+
106+
107+
In nil/boot/bootinst.sh line 158:
108+
cd "$CWD"
109+
^-------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
110+
111+
Did you mean:
112+
cd "$CWD" || exit
113+
114+
For more information:
115+
https://www.shellcheck.net/wiki/SC2034 -- junk appears unused. Verify use (...
116+
https://www.shellcheck.net/wiki/SC2164 -- Use 'cd ... || exit' or 'cd ... |...
117+
https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q...
118+
119+
VBSCRIPT (.vbs)
120+
---------------
121+
nil/boot/samedisk.vbs
122+
nil/boot/runadmin.vbs
123+
124+
END OF REPORT Shell$ >< VBScript$

0 commit comments

Comments
 (0)