From f0cb75fab31443769878e806bc358b356509502d Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 09:30:21 +0200 Subject: [PATCH 1/4] add .yammlint --- .yamllint | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .yamllint diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..c311c97 --- /dev/null +++ b/.yamllint @@ -0,0 +1,11 @@ +--- +extends: default + +rules: + # 80 chars should be enough, but don't fail if a line is longer + line-length: + max: 80 + level: warning + allow-non-breakable-words: true + comments: + min-spaces-from-content: 1 From 3b8f731efa9ff360ff110cbed1ae3c8ca160f3a7 Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 10:38:46 +0200 Subject: [PATCH 2/4] add .drone.yml --- .drone.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b8e35cd --- /dev/null +++ b/.drone.yml @@ -0,0 +1,19 @@ +--- +kind: pipeline +type: docker +name: lint + +steps: + - name: ansible linting + image: cytopia/ansible-lint + + commands: + - ansible-lint + - name: markdown linting + image: 06kellyjac/markdownlint-cli + commands: + - markdownlint . + when: + status: + - success + - failure From 96a7aefa14c73c7f5957373708330556b04579d2 Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 10:54:24 +0200 Subject: [PATCH 3/4] add .markdownlint.yaml --- .markdownlint.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .markdownlint.yaml 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 From 94e9ac7edc36bba58434d27daba45c75cd919ac2 Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 11:02:59 +0200 Subject: [PATCH 4/4] add task role path to ansible-lint --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b8e35cd..cf05136 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: image: cytopia/ansible-lint commands: - - ansible-lint + - ansible-lint tasks/main.yml - name: markdown linting image: 06kellyjac/markdownlint-cli commands: