Merge pull request #391 from GaboFDC/gf_fix_editorconfig

Editorconfig special case
This commit is contained in:
Lukas Gravley 2020-07-08 08:28:55 -05:00 committed by GitHub
commit 91ea28661e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -1187,7 +1187,6 @@ fi
######################## ########################
# EDITORCONFIG LINTING # # EDITORCONFIG LINTING #
######################## ########################
echo ed: "$VALIDATE_EDITORCONFIG"
if [ "$VALIDATE_EDITORCONFIG" == "true" ]; then if [ "$VALIDATE_EDITORCONFIG" == "true" ]; then
#################################### ####################################
# Lint the files with editorconfig # # Lint the files with editorconfig #

View file

@ -530,8 +530,11 @@ function GetValidationInfo() {
VALIDATE_EDITORCONFIG="false" VALIDATE_EDITORCONFIG="false"
fi fi
else else
# No linter flags were set - default all to true # No linter flags were set
VALIDATE_EDITORCONFIG="true" # special case checking for .editorconfig
if [ -f "$GITHUB_WORKSPACE/.editorconfig" ]; then
VALIDATE_EDITORCONFIG="true"
fi
fi fi
#################################### ####################################