Skip to content
Snippets Groups Projects

Correcting all the linting errors to help with future reviews

Open Nicolas Richart requested to merge linting-the-stacks into release/pinot-noir/rhel9.4
1 file
+ 16
4
Compare changes
  • Side-by-side
  • Inline
+ 16
4
@@ -281,19 +281,31 @@ post_cleaning:
@@ -281,19 +281,31 @@ post_cleaning:
cq:hadolint:
cq:hadolint:
<<: *code-climate
<<: *code-climate
script:
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:
cq:shellcheck:
<<: *code-climate
<<: *code-climate
script:
script:
 
# for gitlab
- |
- |
git ls-files . \
git ls-files . \
| xargs -r -n1 file \
| xargs -r -n1 file \
| awk -F: '/shell script/{print $1}' \
| awk -F: '/shell script/{print $1}' \
| xargs -r -n1 shellcheck -f json \
| xargs -r -n1 shellcheck -f json > gl-codequality.json
| tee -a gl-codequality.json | jq -C .
# for the users
 
- |
 
git ls-files . \
 
| xargs -r -n1 file \
 
| awk -F: '/shell script/{print $1}' \
 
| xargs -r -n1 shellcheck -f tty
cq:yamllint:
cq:yamllint:
<<: *code-climate
<<: *code-climate
script:
script:
- yamllint_codeclimate --standalone | tee gl-codequality.json | jq -C .
# for gitlab
 
- yamllint_codeclimate --standalone > gl-codequality.json
 
# for the users
 
- yamllint -f colored .
Loading