From df16eee7121786fa4967726746c89b0f33fe5c10 Mon Sep 17 00:00:00 2001 From: kleph Date: Wed, 25 Mar 2020 13:34:41 +0100 Subject: [PATCH] [CI] Add som linters (yaml, docker and markdown) --- .drone.yml | 22 ++++++++++++++++++++++ .yamllint | 9 +++++++++ 2 files changed, 31 insertions(+) create mode 100644 .yamllint diff --git a/.drone.yml b/.drone.yml index 397ce79..06a8c85 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,23 @@ +--- +kind: pipeline +name: lint + +steps: +- name: yaml lint + image: cytopia/yamllint + commands: + - yamllint . + +- name: docker lint + image: hadolint/hadolint + commands: + - hadolint Dockerfile # ignore pinning version in pip + +- name: markdown lint + image: pipelinecomponents/markdownlint:latest + commands: + - mdl --style all --warnings . + --- kind: pipeline name: build @@ -16,6 +36,8 @@ steps: event: exclude: - pull_request +depends_on: +- lint --- deploy_commands_alias: diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..9fb2ded --- /dev/null +++ b/.yamllint @@ -0,0 +1,9 @@ +--- +extends: default + +rules: + indentation: + indent-sequences: consistent + line-length: + max: 170 + level: warning