From 71aa3ac1f1f8111dd7d1f74b3a75546cefe65151 Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 09:30:19 +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 86c22798c0db8b95047f47387bdfb6987166b93c Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 10:38:43 +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 1e95ee9bdfd7f7d3dfb361a1261f0957cfb6da6c Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 10:54:19 +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 78c81b7321ee54322bf174adea2472efb48a3baa Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 22 Apr 2021 11:02:57 +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: