-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix shellcheck problems. fix error getting config name from a service
- Loading branch information
Showing
7 changed files
with
348 additions
and
246 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,24 @@ | ||
name: On push to main | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'src/*' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
shellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Install shellcheck | ||
run: sudo apt-get install -y bash shellcheck | ||
- name: Analyse with shellcheck | ||
run: | | ||
cd src | ||
shellcheck -V | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# .shellcheckrc | ||
|
||
# https://github.com/koalaman/shellcheck/wiki/Optional | ||
enable=add-default-case | ||
enable=avoid-nullary-conditions | ||
# enable=check-unassigned-uppercase | ||
enable=deprecate-which | ||
enable=require-variable-braces | ||
|
||
# SC2039: In POSIX sh, 'local' is undefined. | ||
disable=SC2039 | ||
|
||
# TODO: Try to fix and enable SC3001 | ||
# SC3001 (warning): In POSIX sh, process substitution is undefined. | ||
disable=SC3001 | ||
|
||
# SC3037 (warning): In POSIX sh, echo flags are undefined. | ||
disable=SC3037 | ||
|
||
# SC3043 (warning): In POSIX sh, 'local' is undefined. | ||
disable=SC3043 | ||
|
||
# SC3046 (warning): In POSIX sh, 'source' in place of '.' is undefined. | ||
disable=SC3046 | ||
|
||
# SC3051 (warning): In POSIX sh, 'source' in place of '.' is undefined. | ||
disable=SC3051 | ||
|
||
# SC3057 (warning): In POSIX sh, string indexing is undefined. | ||
disable=SC3057 |
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
Oops, something went wrong.