Skip to content

Fix linting

Fix linting #13015

Workflow file for this run

name: Lint
on:
push:
pull_request:
jobs:
editorconfig-checker:
runs-on: ubuntu-latest
container:
image: mstruebing/editorconfig-checker:v3.6.1@sha256:af556694c3eb0a16b598efbe84c1171d40dfb779fdac6f01b89baedde065556f
options: --user 0:0
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: editorconfig-checker
run: editorconfig-checker .
markdownlint:
runs-on: ubuntu-latest
container:
image: davidanson/markdownlint-cli2:v0.22.0@sha256:ea33f1f6a0f062f88a3dddfc49f6d6b5621648a93a0ff49a58bf8ac5a15330b9
options: --user 0:0
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: markdownlint
run: markdownlint-cli2 **.{md,markdown}
shellcheck:
runs-on: ubuntu-latest
container:
image: koalaman/shellcheck-alpine:v0.11.0@sha256:9955be09ea7f0dbf7ae942ac1f2094355bb30d96fffba0ec09f5432207544002
options: --user 0:0
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: install alpine packages
run: apk add --no-cache findutils
- name: shellcheck
run: find . -name '*.sh' -exec shellcheck {} +
shfmt:
runs-on: ubuntu-latest
container:
image: mvdan/shfmt:v3.13.0-alpine@sha256:25fc1e8cb4d9333ed07305c63fdf00e1bdf2d849ebad49afcf92950a75ad4e7d
options: --user 0:0
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: install alpine packages
run: apk add --no-cache findutils
- name: shfmt
run: find . -name '*.sh' -exec shfmt -d {} +
yamllint:
runs-on: ubuntu-latest
container:
image: peterdavehello/yamllint:1.37.0@sha256:bb8e9a2970f31503714447e2c309add8eb27ad57a66dee6fa2d37322415ed0ae
options: --user 0:0
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: yamllint
run: yamllint .