Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
57c51c74
Commit
57c51c74
authored
Feb 22, 2019
by
mattjmcnaughton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix shellcheck for more scripts in hack
Making more of the scripts in hack pass the shellcheck linter.
parent
139a13d3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
16 deletions
+12
-16
.shellcheck_failures
hack/.shellcheck_failures
+0
-5
verify-linkcheck.sh
hack/verify-linkcheck.sh
+3
-3
verify-pkg-names.sh
hack/verify-pkg-names.sh
+1
-1
verify-spelling.sh
hack/verify-spelling.sh
+4
-3
verify-staging-godeps.sh
hack/verify-staging-godeps.sh
+2
-2
verify-symbols.sh
hack/verify-symbols.sh
+2
-2
No files found.
hack/.shellcheck_failures
View file @
57c51c74
...
...
@@ -100,15 +100,10 @@
./hack/verify-golint.sh
./hack/verify-govet.sh
./hack/verify-import-boss.sh
./hack/verify-linkcheck.sh
./hack/verify-no-vendor-cycles.sh
./hack/verify-openapi-spec.sh
./hack/verify-pkg-names.sh
./hack/verify-readonly-packages.sh
./hack/verify-spelling.sh
./hack/verify-staging-godeps.sh
./hack/verify-staging-meta-files.sh
./hack/verify-symbols.sh
./hack/verify-test-featuregates.sh
./test/cmd/apply.sh
./test/cmd/apps.sh
...
...
hack/verify-linkcheck.sh
View file @
57c51c74
...
...
@@ -18,7 +18,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
kube::golang::setup_env
...
...
@@ -38,7 +38,7 @@ mkdir -p "$OUTPUT"
APIROOT
=
"
${
KUBE_ROOT
}
/pkg/api/"
APISROOT
=
"
${
KUBE_ROOT
}
/pkg/apis/"
DOCROOT
=
"
${
KUBE_ROOT
}
/docs/"
ROOTS
=(
$APIROOT
$APISROOT
$DOCROOT
)
ROOTS
=(
"
$APIROOT
"
"
$APISROOT
"
"
$DOCROOT
"
)
found_invalid
=
false
for
root
in
"
${
ROOTS
[@]
}
"
;
do
"
${
linkcheck
}
"
"--root-dir=
${
root
}
"
2>
>(
tee
-a
"
${
OUTPUT
}
/error"
>
&2
)
&&
ret
=
0
||
ret
=
$?
...
...
@@ -54,7 +54,7 @@ done
if
[
${
found_invalid
}
=
true
]
;
then
echo
"Summary of invalid links:"
cat
${
OUTPUT
}
/error
cat
"
${
OUTPUT
}
/error"
exit
1
fi
...
...
hack/verify-pkg-names.sh
View file @
57c51c74
...
...
@@ -20,7 +20,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
kube::golang::verify_go_version
...
...
hack/verify-spelling.sh
View file @
57c51c74
...
...
@@ -17,7 +17,8 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
export
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
export
KUBE_ROOT
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
# Ensure that we find the binaries we build before anything else.
...
...
@@ -30,5 +31,5 @@ go install k8s.io/kubernetes/vendor/github.com/client9/misspell/cmd/misspell
# Spell checking
# All the skipping files are defined in hack/.spelling_failures
skipping_file
=
"
${
KUBE_ROOT
}
/hack/.spelling_failures"
failing_packages
=
$(
echo
`
cat
${
skipping_file
}
`
|
sed
"s| | -e |g
"
)
git ls-files |
grep
-v
-e
${
failing_packages
}
| xargs misspell
-i
"Creater,creater,ect"
-error
-o
stderr
failing_packages
=
$(
sed
"s| | -e |g"
"
${
skipping_file
}
"
)
git ls-files |
grep
-v
-e
"
${
failing_packages
}
"
| xargs misspell
-i
"Creater,creater,ect"
-error
-o
stderr
hack/verify-staging-godeps.sh
View file @
57c51c74
...
...
@@ -18,7 +18,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
readonly
branch
=
${
1
:-${
KUBE_VERIFY_GIT_BRANCH
:-
master
}}
...
...
@@ -32,4 +32,4 @@ if ! [[ ${KUBE_FORCE_VERIFY_CHECKS:-} =~ ^[yY]$ ]] && \
exit
0
fi
KUBE_VERBOSE
=
"
${
KUBE_VERBOSE
:-
3
}
"
KUBE_RUN_COPY_OUTPUT
=
N
${
KUBE_ROOT
}
/hack/update-staging-godeps.sh
-d
-f
"
$@
"
KUBE_VERBOSE
=
"
${
KUBE_VERBOSE
:-
3
}
"
KUBE_RUN_COPY_OUTPUT
=
N
"
${
KUBE_ROOT
}
/hack/update-staging-godeps.sh"
-d
-f
"
$@
"
hack/verify-symbols.sh
View file @
57c51c74
...
...
@@ -18,7 +18,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
kube::golang::setup_env
...
...
@@ -33,7 +33,7 @@ BADSYMBOLS=(
)
# b/c hyperkube binds everything simply check that for bad symbols
SYMBOLS
=
"
$(
nm
${
KUBE_OUTPUT_HOSTBIN
}
/hyperkube
)
"
SYMBOLS
=
"
$(
nm
"
${
KUBE_OUTPUT_HOSTBIN
}
/hyperkube"
)
"
RESULT
=
0
for
BADSYMBOL
in
"
${
BADSYMBOLS
[@]
}
"
;
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment