Yaml linter execution and config improved
Change-Id: Ib75425433640b98208428c1e5ebce82ba3b3cb18
This commit is contained in:
parent
bf31230c91
commit
b19aeca075
@ -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
|
5
tools/yamllint.sh
Executable file
5
tools/yamllint.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
workdir=$(dirname $0)
|
||||
yamllint -c $workdir/yamllint.yaml $(find . -not -path '*/\.*' -type f -name '*.yaml')
|
21
tools/yamllint.yaml
Normal file
21
tools/yamllint.yaml
Normal file
@ -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…
x
Reference in New Issue
Block a user