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
52368509
Unverified
Commit
52368509
authored
Apr 20, 2019
by
Christoph Blecker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix malformed JUNIT XML with shellcheck failures
parent
b1fea1bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
verify-shellcheck.sh
hack/verify-shellcheck.sh
+9
-0
No files found.
hack/verify-shellcheck.sh
View file @
52368509
...
@@ -123,6 +123,13 @@ else
...
@@ -123,6 +123,13 @@ else
fi
fi
fi
fi
# if KUBE_JUNIT_REPORT_DIR is set, disable colorized output.
# Colorized output causes malformed XML in the JUNIT report.
SHELLCHECK_COLORIZED_OUTPUT
=
"auto"
if
[[
-n
"
${
KUBE_JUNIT_REPORT_DIR
:-}
"
]]
;
then
SHELLCHECK_COLORIZED_OUTPUT
=
"never"
fi
# common arguments we'll pass to shellcheck
# common arguments we'll pass to shellcheck
SHELLCHECK_OPTIONS
=(
SHELLCHECK_OPTIONS
=(
# allow following sourced files that are not specified in the command,
# allow following sourced files that are not specified in the command,
...
@@ -131,6 +138,8 @@ SHELLCHECK_OPTIONS=(
...
@@ -131,6 +138,8 @@ SHELLCHECK_OPTIONS=(
"--external-sources"
"--external-sources"
# include our disabled lints
# include our disabled lints
"--exclude=
${
SHELLCHECK_DISABLED
}
"
"--exclude=
${
SHELLCHECK_DISABLED
}
"
# set colorized output
"--color=
${
SHELLCHECK_COLORIZED_OUTPUT
}
"
)
)
# lint each script, tracking failures
# lint each script, tracking failures
...
...
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