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 #
########################
echo ed: "$VALIDATE_EDITORCONFIG"
if [ "$VALIDATE_EDITORCONFIG" == "true" ]; then
####################################
# Lint the files with editorconfig #

View file

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