summaryrefslogtreecommitdiffstats
path: root/examples/yamllint
diff options
context:
space:
mode:
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