a
This commit is contained in:
Stephan Schnabel 2025-06-17 23:18:14 +02:00
parent 67a1be76e6
commit c16bfddb0d
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
13 changed files with 364 additions and 369 deletions

View file

@ -17,24 +17,24 @@ fi
COMMAND="yamllint"
if [[ -n "${PLUGIN_CONFIG_FILE:-}" ]]; then
COMMAND="$COMMAND --config-file=$PLUGIN_CONFIG"
COMMAND+=" --config-file=$PLUGIN_CONFIG"
fi
COMMAND="$COMMAND --format=${PLUGIN_FORMAT:-colored}"
COMMAND+="--format=${PLUGIN_FORMAT:-colored}"
if [[ "${PLUGIN_STRICT:-true}" == "true" ]]; then
COMMAND="$COMMAND --strict"
COMMAND+=" --strict"
fi
if [[ "${PLUGIN_NO_WARNINGS:-}" == "true" ]]; then
COMMAND="$COMMAND --no-warnings"
COMMAND+=" --no-warnings"
fi
COMMAND="$COMMAND $(pwd)"
COMMAND+=" $(pwd)"
# custom args, e.g. docker run --rm --volume=$(pwd):$(pwd) --workdir=$(pwd) --env=CI=test kokuwaio/yamllint --format=json
if [[ -n "${1:-}" ]]; then
COMMAND="$COMMAND $*"
COMMAND+=" $*"
fi
##
## evecute command
## execute command
##
echo "$COMMAND"