From 3b580d7a5b1bd87194ebe49bc8cb08cfd7b0980f Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 21 Apr 2021 10:18:37 +0200 Subject: [PATCH] add linting CI --- .drone.yml | 14 ++++++++++++++ .markdownlint.yaml | 9 +++++++++ .yamllint | 9 +++++++++ 3 files changed, 32 insertions(+) create mode 100644 .drone.yml create mode 100644 .markdownlint.yaml create mode 100644 .yamllint diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..154ee8f --- /dev/null +++ b/.drone.yml @@ -0,0 +1,14 @@ +--- +kind: pipeline +type: docker +name: lint + +steps: + - name: yaml linting + image: pipelinecomponents/yamllint + commands: + - yamllint . + - name: markdown linting + image: 06kellyjac/markdownlint-cli + commands: + - markdownlint . -i themes diff --git a/.markdownlint.yaml b/.markdownlint.yaml new file mode 100644 index 0000000..a085265 --- /dev/null +++ b/.markdownlint.yaml @@ -0,0 +1,9 @@ +--- +# Default state for all rules +default: true +MD009: + strict: false + +MD013: false +MD033: false +MD024: false diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..69eeed3 --- /dev/null +++ b/.yamllint @@ -0,0 +1,9 @@ +extends: default + +ignore: themes/ + +rules: + # 80 chars should be enough, but don't fail if a line is longer + line-length: + max: 80 + level: warning