-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce shellcheck to lint shell scripts (#15169)
Issues fixed: * https://www.shellcheck.net/wiki/SC2145 * https://www.shellcheck.net/wiki/SC2027 * https://www.shellcheck.net/wiki/SC2034 * https://www.shellcheck.net/wiki/SC2046 * https://www.shellcheck.net/wiki/SC2124 * https://www.shellcheck.net/wiki/SC2164 * https://www.shellcheck.net/wiki/SC2294 * https://www.shellcheck.net/wiki/SC2059 * https://www.shellcheck.net/wiki/SC2086 * https://www.shellcheck.net/wiki/SC2295 * https://www.shellcheck.net/wiki/SC2002 * https://www.shellcheck.net/wiki/SC2005 * https://www.shellcheck.net/wiki/SC2006 Issues ignored: * https://www.shellcheck.net/wiki/SC2013 Co-authored-by: Oleh Prypin <[email protected]>
- Loading branch information
1 parent
0582376
commit c35461d
Showing
13 changed files
with
92 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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,25 @@ | ||
on: | ||
push: | ||
paths: | ||
- '**/*.{sh,bash,fish}' | ||
- './bin/*' | ||
- './scripts/git/pre-commit' | ||
- '.github/workflows/lint-shellcheck.yml' | ||
pull_request: | ||
paths: | ||
- '**/*.{sh,bash,fish}' | ||
- './bin/*' | ||
- './scripts/git/pre-commit' | ||
- '.github/workflows/lint-shellcheck.yml' | ||
|
||
name: "Lint Shellcheck" | ||
permissions: {} | ||
|
||
jobs: | ||
shellcheck: | ||
name: Shellcheck | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- run: shellcheck --version | ||
- uses: actions/checkout@v4 | ||
- run: make lint-shellcheck |
This file contains 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 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 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 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 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 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 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 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 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 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 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 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