Skip to content
Snippets Groups Projects
Commit 12c4db36 authored by Nicolas Richart's avatar Nicolas Richart Committed by Nicolas Richart
Browse files

Changing linter for readability

parent 080e3a2b
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !34. Comments created here will be created in the context of that merge request.
......@@ -281,19 +281,31 @@ post_cleaning:
cq:hadolint:
<<: *code-climate
script:
- hadolint --format codeclimate dockerfiles/**/Dockerfile | tee gl-codequality.json | jq -C .
# for gitlab
- hadolint --format codeclimate dockerfiles/**/Dockerfile > gl-codequality.json
# for the users
- hadolint --format tty dockerfiles/**/Dockerfile
cq:shellcheck:
<<: *code-climate
script:
# for gitlab
- |
git ls-files . \
| xargs -r -n1 file \
| awk -F: '/shell script/{print $1}' \
| xargs -r -n1 shellcheck -f json \
| tee -a gl-codequality.json | jq -C .
| xargs -r -n1 shellcheck -f json > gl-codequality.json
# for the users
- |
git ls-files . \
| xargs -r -n1 file \
| awk -F: '/shell script/{print $1}' \
| xargs -r -n1 shellcheck -f tty
cq:yamllint:
<<: *code-climate
script:
- yamllint_codeclimate --standalone | tee gl-codequality.json | jq -C .
# for gitlab
- yamllint_codeclimate --standalone > gl-codequality.json
# for the users
- yamllint -f colored .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment