diff --git a/lib/linter.sh b/lib/linter.sh index 19741f47..779dc37b 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1187,7 +1187,6 @@ fi ######################## # EDITORCONFIG LINTING # ######################## -echo ed: "$VALIDATE_EDITORCONFIG" if [ "$VALIDATE_EDITORCONFIG" == "true" ]; then #################################### # Lint the files with editorconfig # diff --git a/lib/validation.sh b/lib/validation.sh index 807ff9b1..8782e326 100755 --- a/lib/validation.sh +++ b/lib/validation.sh @@ -530,8 +530,11 @@ function GetValidationInfo() { VALIDATE_EDITORCONFIG="false" fi else - # No linter flags were set - default all to true - VALIDATE_EDITORCONFIG="true" + # No linter flags were set + # special case checking for .editorconfig + if [ -f "$GITHUB_WORKSPACE/.editorconfig" ]; then + VALIDATE_EDITORCONFIG="true" + fi fi ####################################