-
Notifications
You must be signed in to change notification settings - Fork 14
Add language-specific linting and shellcheck to format.sh #5689
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,4 +33,5 @@ TODO=( | |
| utils/interfaces/schemas/serve.sh | ||
| build.sh | ||
| format.sh | ||
| *node_modules* | ||
| ) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This came from running |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,8 +9,8 @@ function has() { | |
| shift | ||
|
|
||
| local e | ||
| for e; do [[ "${e}" == "${needle}" ]] && return 0; done | ||
|
|
||
| # shellcheck disable=SC2053 # explicitly allow glob matching | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed glob matching to ignore |
||
| for e in "$@"; do [[ $needle == $e ]] && return 0; done | ||
| return 1 | ||
| } | ||
|
|
||
|
|
@@ -43,7 +43,7 @@ function lint() { | |
| files+=("$f") | ||
| done < <( find utils -name '*.sh'; ls -1 -- *.sh ) | ||
|
|
||
| shellcheck "${files[@]}" | ||
| ./venv/bin/shellcheck "${files[@]}" | ||
| } | ||
|
|
||
| function root() { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.