forked from exercism/rust
-
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.
finish minimal shell standardization efforts (exercism#1184)
* capture other documentation from issue discussion * space header * style and more reasons * simple file name linter * remove macOSisms * add to CI * lint a couple files * lint a couple files * fix incorrect path * convert check exercises tool * convert check exercises tool * Apply suggestions from code review Co-authored-by: Peter Goodspeed-Niklaus <[email protected]> * count ignores lint * verify difficulties lint * allow invalidation search to be empty Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>
- Loading branch information
1 parent
bb90986
commit 0d03b84
Showing
17 changed files
with
46 additions
and
22 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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Require that internal shell script file names use snake_case | ||
set -eo pipefail | ||
|
||
# find a list of files whose names do not match our convention | ||
errant_files=$(find bin/ _test/ -iname '*\.sh' -exec basename {} \; | grep '[^a-z_.]' || test 1) | ||
|
||
if [ -n "$errant_files" ]; then | ||
echo "These file names do not follow our snake case convention:" | ||
# find them again to print the whole relative path | ||
while IFS= read -r file_name; do | ||
find . -name "$file_name" | ||
done <<< "$errant_files" | ||
echo "Please correct them!" | ||
exit 1 | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
paasio has tests generated by macro. | ||
This breaks the count-ignores.sh script. | ||
This breaks the count_ignores.sh script. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
xorcism has tests generated by macro. | ||
This breaks the count-ignores.sh script. | ||
This breaks the count_ignores.sh script. |