You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo>&2"gometalinter must be installed. Please run 'make install.tools' and try again"
13
+
exit 1
14
+
fi
15
+
16
+
PKGS=$(find . -type d -not -path . -a -not -iwholename '*.git*' -a -not -iname '.tool' -a -not -iwholename '*vendor*' -a -not -iname 'hack' -a -not -iwholename '*.artifacts*' -a -not -iwholename '*contrib*' -a -not -iwholename '*test*' -a -not -iwholename '*logo*' -a -not -iwholename '*conmon*' -a -not -iwholename '*completions*' -a -not -iwholename '*docs*' -a -not -iwholename '*pause*' -a -not -iwholename './_output*' -a -not -iwholename '*ioprojectatomicpodman.go')
17
+
18
+
echo$PKGS
19
+
20
+
# Execute the linter
21
+
${LINTER} \
22
+
--concurrency=4\
23
+
--enable-gc\
24
+
--vendored-linters\
25
+
--deadline=600s --disable-all\
26
+
--enable=deadcode\
27
+
--enable=errcheck\
28
+
--enable=goconst\
29
+
--enable=gofmt\
30
+
--enable=golint\
31
+
--enable=ineffassign\
32
+
--enable=megacheck\
33
+
--enable=misspell\
34
+
--enable=structcheck\
35
+
--enable=varcheck\
36
+
--enable=vet\
37
+
--enable=vetshadow\
38
+
--exclude='error return value not checked.*\(errcheck\)$'\
0 commit comments