mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 05:02:15 -05:00
Don't use linter rules path
This commit is contained in:
parent
69d5c91cb1
commit
8884ea722b
1 changed files with 2 additions and 8 deletions
|
@ -75,12 +75,6 @@ function GetValidationInfo() {
|
||||||
VALIDATE_EDITORCONFIG=$(echo "$VALIDATE_EDITORCONFIG" | awk '{print tolower($0)}')
|
VALIDATE_EDITORCONFIG=$(echo "$VALIDATE_EDITORCONFIG" | awk '{print tolower($0)}')
|
||||||
VALIDATE_HTML=$(echo "$VALIDATE_HTML" | awk '{print tolower($0)}')
|
VALIDATE_HTML=$(echo "$VALIDATE_HTML" | awk '{print tolower($0)}')
|
||||||
|
|
||||||
#############################
|
|
||||||
# Editorconfig special case #
|
|
||||||
#############################
|
|
||||||
LINTER_RULES_PATH="${LINTER_RULES_PATH:-.github/linters}" # Linter Path Directory
|
|
||||||
EDITORCONFIG_FILE_NAME='.editorconfig'
|
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
# Determine if any linters were explicitly set #
|
# Determine if any linters were explicitly set #
|
||||||
################################################
|
################################################
|
||||||
|
@ -491,8 +485,8 @@ function GetValidationInfo() {
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# No linter flags were set
|
# No linter flags were set
|
||||||
# special case cehcking for .editorconfig
|
# special case checking for .editorconfig
|
||||||
if [ -f "$GITHUB_WORKSPACE/$LINTER_RULES_PATH/$EDITORCONFIG_FILE_NAME" ]; then
|
if [ -f "$GITHUB_WORKSPACE/.editorconfig" ]; then
|
||||||
VALIDATE_EDITORCONFIG="true"
|
VALIDATE_EDITORCONFIG="true"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue