summaryrefslogtreecommitdiffstats
path: root/examples/yamllint
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:06:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:06:49 +0000
commit2fe34b6444502079dc0b84365ce82dbc92de308e (patch)
tree8fedcab52bbbc3db6c5aa909a88a7a7b81685018 /examples/yamllint
parentInitial commit. (diff)
downloadansible-lint-2fe34b6444502079dc0b84365ce82dbc92de308e.tar.xz
ansible-lint-2fe34b6444502079dc0b84365ce82dbc92de308e.zip
Adding upstream version 6.17.2.upstream/6.17.2
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/line-length.yml4
-rw-r--r--examples/yamllint/multi-document.yaml4
-rw-r--r--examples/yamllint/skipped-rule.yml3
-rw-r--r--examples/yamllint/valid.yml0
5 files changed, 20 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/line-length.yml b/examples/yamllint/line-length.yml
new file mode 100644
index 0000000..80e81b9
--- /dev/null
+++ b/examples/yamllint/line-length.yml
@@ -0,0 +1,4 @@
+---
+- name: Task example
+ debug:
+ msg: "This is a very long text that is used in order to verify the rule that checks for very long lines. We do hope it was long enough to go over the line limit."
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/skipped-rule.yml b/examples/yamllint/skipped-rule.yml
new file mode 100644
index 0000000..e63f91b
--- /dev/null
+++ b/examples/yamllint/skipped-rule.yml
@@ -0,0 +1,3 @@
+---
+- test: skipped_rule # noqa name
+- other: aaa
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