mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 06:01:05 -05:00
switch to repo clone vs npm
This commit is contained in:
parent
a82c5fe6cb
commit
70bf36d8f8
2 changed files with 9 additions and 4 deletions
|
@ -57,8 +57,13 @@ RUN npm -g --no-cache install \
|
||||||
prettier \
|
prettier \
|
||||||
eslint-config-prettier \
|
eslint-config-prettier \
|
||||||
@typescript-eslint/eslint-plugin \
|
@typescript-eslint/eslint-plugin \
|
||||||
@typescript-eslint/parser \
|
@typescript-eslint/parser
|
||||||
dockerfilelint
|
|
||||||
|
####################################
|
||||||
|
# Install dockerfilelint from repo #
|
||||||
|
####################################
|
||||||
|
|
||||||
|
RUN git clone https://github.com/replicatedhq/dockerfilelint.git && cd /dockerfilelint && npm install
|
||||||
|
|
||||||
# I think we could fix this with path but not sure the language...
|
# I think we could fix this with path but not sure the language...
|
||||||
# https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md
|
# https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md
|
||||||
|
|
|
@ -39,7 +39,7 @@ DOCKER_LINTER_RULES="$DEFAULT_RULES_LOCATION/$DOCKER_FILE_NAME" # Path to th
|
||||||
# Linter array for information prints #
|
# Linter array for information prints #
|
||||||
#######################################
|
#######################################
|
||||||
LINTER_ARRAY=("jsonlint" "yamllint" "xmllint" "markdownlint" "shellcheck"
|
LINTER_ARRAY=("jsonlint" "yamllint" "xmllint" "markdownlint" "shellcheck"
|
||||||
"pylint" "perl" "rubocop" "coffeelint" "eslint" "standard" "ansible-lint" "node_modules/dockerfilelint/bin/dockerfilelint")
|
"pylint" "perl" "rubocop" "coffeelint" "eslint" "standard" "ansible-lint" "/dockerfilelint/bin/dockerfilelint")
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# GitHub ENV Vars #
|
# GitHub ENV Vars #
|
||||||
|
@ -1947,7 +1947,7 @@ LintDockerFiles()
|
||||||
# Name of the linter #
|
# Name of the linter #
|
||||||
######################
|
######################
|
||||||
LINTER_NAME="dockerfilelint"
|
LINTER_NAME="dockerfilelint"
|
||||||
LINTER_PATH="/node_modules/dockerfilelint/bin/dockerfilelint"
|
LINTER_PATH="/dockerfilelint/bin/dockerfilelint"
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
# Validate we have shellcheck installed #
|
# Validate we have shellcheck installed #
|
||||||
|
|
Loading…
Reference in a new issue