Yaml linter execution and config improved
Change-Id: I0cf1d4a02d5018134bf783c4c666aeace3c4f4bf
This commit is contained in:
parent
b5985cec79
commit
7d633af3ab
|
@ -9,10 +9,10 @@ service:
|
||||||
readiness: "true"
|
readiness: "true"
|
||||||
liveness: "true"
|
liveness: "true"
|
||||||
volumes:
|
volumes:
|
||||||
- name: rabbitmq-logs
|
- name: rabbitmq-logs
|
||||||
path: "/var/log/ccp/rabbitmq"
|
path: "/var/log/ccp/rabbitmq"
|
||||||
type: host
|
type: host
|
||||||
readOnly: False
|
readOnly: False
|
||||||
pre:
|
pre:
|
||||||
- name: chown-logs-dir
|
- name: chown-logs-dir
|
||||||
command: "sudo /bin/chown rabbitmq: /var/log/ccp/rabbitmq"
|
command: "sudo /bin/chown rabbitmq: /var/log/ccp/rabbitmq"
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
### Temp yaml syntax checker script.
|
|
||||||
set -e
|
|
||||||
for file in $(find . -name '*.yaml'); do
|
|
||||||
yamllint -d relaxed $file
|
|
||||||
done
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
workdir=$(dirname $0)
|
||||||
|
yamllint -c $workdir/yamllint.yaml $(find . -not -path '*/\.*' -type f -name '*.yaml')
|
|
@ -0,0 +1,21 @@
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
braces:
|
||||||
|
max-spaces-inside: 1
|
||||||
|
comments:
|
||||||
|
level: error
|
||||||
|
comments-indentation:
|
||||||
|
level: warning
|
||||||
|
document-end:
|
||||||
|
present: no
|
||||||
|
document-start:
|
||||||
|
level: error
|
||||||
|
present: no
|
||||||
|
empty-lines:
|
||||||
|
max: 1
|
||||||
|
max-start: 0
|
||||||
|
max-end: 0
|
||||||
|
line-length:
|
||||||
|
level: warning
|
||||||
|
max: 120
|
Loading…
Reference in New Issue