scripts: compliance: add support for YAMLLint

Add a YAMLLint compliance check that uses the yamllint package to report
linting error on YAML files.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2022-12-30 15:34:10 +00:00 committed by Carles Cufí
commit 9d3681c10c
4 changed files with 50 additions and 1 deletions

16
.yamllint Normal file
View file

@ -0,0 +1,16 @@
# SPDX-License-Identifier: Apache-2.0
extends: default
rules:
line-length:
max: 100
comments:
min-spaces-from-content: 1
indentation:
spaces: 2
indent-sequences: consistent
document-start:
present: false
truthy:
check-keys: false