summaryrefslogtreecommitdiffstats
path: root/examples/yamllint
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:56 +0000
commitd964cec5e6aa807b75c7a4e7cdc5f11e54b2eda2 (patch)
tree794bc3738a00b5e599f06d1f2f6d79048d87ff8e /examples/yamllint
parentInitial commit. (diff)
downloadansible-lint-upstream.tar.xz
ansible-lint-upstream.zip
Adding upstream version 6.13.1.upstream/6.13.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/yamllint')
-rw-r--r--examples/yamllint/invalid.yml9
-rw-r--r--examples/yamllint/multi-document.yaml4
-rw-r--r--examples/yamllint/valid.yml0
3 files changed, 13 insertions, 0 deletions
diff --git a/examples/yamllint/invalid.yml b/examples/yamllint/invalid.yml
new file mode 100644
index 0000000..44e4072
--- /dev/null
+++ b/examples/yamllint/invalid.yml
@@ -0,0 +1,9 @@
+# missing document-start
+foo: ...
+foo: ... # <-- key-duplicates
+bar: ... # <-- wrong comment indentation
+
+# next line has trailing-spaces:
+other: aaa
+
+# ^ empty-lines
diff --git a/examples/yamllint/multi-document.yaml b/examples/yamllint/multi-document.yaml
new file mode 100644
index 0000000..e3d8805
--- /dev/null
+++ b/examples/yamllint/multi-document.yaml
@@ -0,0 +1,4 @@
+---
+foo: ...
+---
+bar: ...
diff --git a/examples/yamllint/valid.yml b/examples/yamllint/valid.yml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/yamllint/valid.yml