diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 3b269f6..8a90a15 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -25,6 +25,16 @@ steps: - event: push branch: renovate/* + yamllint: + image: pipelinecomponents/yamllint:0.31.1 + depends_on: [] + commands: + - yamllint . + when: + - event: pull_request + - event: push + branch: renovate/* + prettier: image: docker.io/woodpeckerci/plugin-prettier:0.1.0 depends_on: [] diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000..2b1f87c --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,19 @@ +extends: default + +rules: + comments: + require-starting-space: false + ignore-shebangs: true + min-spaces-from-content: 1 + braces: + min-spaces-inside: 1 + max-spaces-inside: 1 + document-start: + present: false + indentation: + spaces: 2 + indent-sequences: true + line-length: + max: 256 + new-lines: + type: unix