Skip to content

Commit

Permalink
🏗 Check dot files and directories for invalid whitespaces (#33927)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsimha committed Apr 21, 2021
1 parent 49cbd17 commit 7fff4a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/maybe_gracefully_halt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi
if [[ $CIRCLE_JOB == Experiment* ]]; then
# Extract the experiment name from the job name in `config.yml`.
EXP=$(echo $CIRCLE_JOB | awk '{print $2}')

# Extract the commit SHA. For PR jobs, this is written to .CIRCLECI_MERGE_COMMIT.
if [[ -f /tmp/restored-workspace/.CIRCLECI_MERGE_COMMIT ]]; then
COMMIT_SHA="$(cat /tmp/restored-workspace/.CIRCLECI_MERGE_COMMIT)"
Expand All @@ -58,4 +58,4 @@ if [[ $CIRCLE_JOB == Experiment* ]]; then
circleci-agent step halt
exit 0
fi
fi
fi
2 changes: 1 addition & 1 deletion build-system/tasks/check-invalid-whitespaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function runCheck(filesToCheck) {
* Checks multiple kinds of files for invalid whitespaces.
*/
function checkInvalidWhitespaces() {
const filesToCheck = getFilesToCheck(invalidWhitespaceGlobs);
const filesToCheck = getFilesToCheck(invalidWhitespaceGlobs, {dot: true});
if (filesToCheck.length == 0) {
return;
}
Expand Down

0 comments on commit 7fff4a5

Please sign in to comment.