mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-28 22:17:12 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# example form https://yamllint.readthedocs.io/en/stable/development.html
|
||||
|
||||
from yamllint import (config, linter)
|
||||
|
||||
data = '''---
|
||||
- &anchor
|
||||
foo: bar
|
||||
- *anchor
|
||||
'''
|
||||
|
||||
yaml_config = config.YamlLintConfig("extends: default")
|
||||
for p in linter.run(data, yaml_config):
|
||||
print(p.desc, p.line, p.rule)
|
||||
Reference in New Issue
Block a user