-
Notifications
You must be signed in to change notification settings - Fork 38
ENT-12601: Added workflow to lint shell scripts #1879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
53c6e7d
Fixed broken comment after autoformatting
larsewi 382acc5
shellcheck.yml: added workflow to lint shell scripts
larsewi 994ad24
functions: fixed shellcheck issues
larsewi 4d3d207
compile-options: fixed shellcheck issues
larsewi b1b2724
build-environment-check: fixed shellcheck issues
larsewi c9f3d9e
clean-results: fixed shellcheck issues
larsewi 6e5a823
detect-environment: fixed shellcheck issues
larsewi 35690e0
install-dependencies: fixed shellcheck issues
larsewi 05af5b3
package: fixed shellcheck issues
larsewi ba573ef
package-msi: fixed shellcheck issues
larsewi 75d39dd
prepare-results: fixed shellcheck issues
larsewi efceee8
prepare-testmachine: fixed shellcheck issues
larsewi bee99ed
produce-debug-symbols: fixed shellcheck issues
larsewi 756df99
test: fixed shellcheck issues
larsewi 07d5ac7
test-chroot: fixed shellcheck issues
larsewi f989e40
test-on-testmachine: fixed shellcheck issues
larsewi 9838b67
transfer-to-buildmachine: fixed shellcheck issues
larsewi 1d4594a
transfer-to-windowsmachine: fixed shellcheck issues
larsewi bf88257
test-on-thismachine: fixed shellcheck issues
larsewi e6c9457
test-on-windows: fixed shellcheck issues
larsewi e87966f
transfer-results: fixed shellcheck issues
larsewi 6fad303
transfer-to-testmachine: fixed shellcheck issues
larsewi 698716b
unpack-tarballs: fixed shellcheck issues
larsewi 175164a
check-scripts.sh: added script to check linting and formatting
larsewi 7383aa8
compile: fixed shellcheck issues
larsewi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name: shellcheck | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: [master] | ||
|
|
||
| jobs: | ||
| check: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install dependencies | ||
| run: sudo apt install shellcheck | ||
| - name: Lint sources with shellcheck | ||
| run: | | ||
| # Recursively find all shell scripts in the build-scripts directory with a shebang | ||
| grep -Erl '^(#!/(bin|usr/bin)/(env )?(sh|bash))' build-scripts/ | while read -r file; do | ||
| shellcheck --external-sources --source-path=build-scripts "$file" | ||
| done | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.