From 8cba7f9c8ad591b2c2ebef8f0978343ab3a14ead Mon Sep 17 00:00:00 2001 From: pat-s Date: Sun, 28 Apr 2024 21:48:07 +0000 Subject: [PATCH] Add yamllint (#321) Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/321 Reviewed-by: crapStone Co-authored-by: pat-s Co-committed-by: pat-s --- .woodpecker/lint.yml | 10 ++++++++++ .yamllint.yaml | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .yamllint.yaml 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