Commit 0659bdca authored by Phil's avatar Phil

Added yamllint and refactored the gitlab-ci

parent 12fe06a0
---
image: python:alpine
before_script:
- pip install mkdocs
- pip install mkdocs-material
- pip install yamllint
pages:
script:
- pip install mkdocs
- pip install mkdocs-material
- mkdocs build
- mv site public
artifacts:
......@@ -18,5 +15,6 @@ pages:
lint_yaml_files:
script:
- default config
- find . -type f -name '*.yml*' | sed 's|\./||g' | egrep -v '(\.kitchen/|\[warning\]|\.molecule/)' | xargs yamllint -f parsable
...
---
extends: default
rules:
line-length:
max: 120
level: warning
document-start:
present: true
document-end:
present: true
key-duplicates: enable
trailing-spaces: enable
new-line-at-end-of-file: disable
hyphens:
max-spaces-after: 1
empty-lines:
max: 2
max-start: 0
max-end: 0
commas:
max-spaces-before: 0
min-spaces-after: 1
max-spaces-after: 1
colons:
max-spaces-before: 0
max-spaces-after: 1
brackets:
min-spaces-inside: 0
max-spaces-inside: 0
braces:
min-spaces-inside: 0
max-spaces-inside: 0
...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment