forked from reviewdog/action-languagetool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(maint) Add ability for files to check to continue a space
This change adds the ability to still run files that include a space in their filename through language server. Without this change, any file that contains a space in their name makes the action fail.
- Loading branch information
1 parent
445dede
commit ee88f40
Showing
2 changed files
with
10 additions
and
0 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 |
---|---|---|
|
@@ -39,6 +39,9 @@ set -o noglob | |
FILES="$(git ls-files | ghglob ${INPUT_PATTERNS})" | ||
Check warning on line 39 in entrypoint.sh GitHub Actions / runner / shellcheck
Check failure on line 39 in entrypoint.sh GitHub Actions / runner / shellcheck
|
||
set +o noglob | ||
|
||
# To manage whitespaces in filepath | ||
IFS=$(echo -en "\n\b") | ||
Check warning on line 43 in entrypoint.sh GitHub Actions / runner / shellcheck
|
||
|
||
run_langtool() { | ||
for FILE in ${FILES}; do | ||
echo "Checking ${FILE}..." >&2 | ||
|
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,7 @@ | ||
It doesn't works on an unix environment. | ||
|
||
It maybe helpful in the future if Austin Energy goes combined cycle. | ||
|
||
It still possible for Tom to build a similar chart. | ||
|
||
You can do that if need. |