summaryrefslogtreecommitdiffstats
path: root/git/.yamllint
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2016-12-09 14:40:43 -0500
committerRussell Teague <rteague@redhat.com>2016-12-12 13:54:24 -0500
commitbe97433dd559a3bdae4baedda20a7f17bd47450b (patch)
tree6f89b1ec06c19a9de87a5d1108d8ba9b6f069f34 /git/.yamllint
parentbf3fa6162880e2dff9c23d42ceb2197e071ba570 (diff)
downloadopenshift-be97433dd559a3bdae4baedda20a7f17bd47450b.tar.gz
openshift-be97433dd559a3bdae4baedda20a7f17bd47450b.tar.bz2
openshift-be97433dd559a3bdae4baedda20a7f17bd47450b.tar.xz
openshift-be97433dd559a3bdae4baedda20a7f17bd47450b.zip
YAML Linting
* Added checks to make ci for yaml linting * Modified y(a)ml files to pass lint checks
Diffstat (limited to 'git/.yamllint')
-rw-r--r--git/.yamllint67
1 files changed, 67 insertions, 0 deletions
diff --git a/git/.yamllint b/git/.yamllint
new file mode 100644
index 000000000..573321a94
--- /dev/null
+++ b/git/.yamllint
@@ -0,0 +1,67 @@
+# -*- mode: yaml -*-
+# vim:ts=2:sw=2:ai:si:syntax=yaml
+#
+# yamllint configuration directives
+# Project Homepage: https://github.com/adrienverge/yamllint
+#
+# Overriding rules in files:
+# http://yamllint.readthedocs.io/en/latest/disable_with_comments.html
+---
+extends: default
+
+# Rules documentation: http://yamllint.readthedocs.io/en/latest/rules.html
+rules:
+
+ braces:
+ # Defaults
+ # min-spaces-inside: 0
+ # max-spaces-inside: 0
+
+ # Keeping 0 min-spaces to not error on empty collection definitions
+ min-spaces-inside: 0
+ # Allowing one space inside braces to improve code readability
+ max-spaces-inside: 1
+
+ brackets:
+ # Defaults
+ # min-spaces-inside: 0
+ # max-spaces-inside: 0
+
+ # Keeping 0 min-spaces to not error on empty collection definitions
+ min-spaces-inside: 0
+ # Allowing one space inside braces to improve code readability
+ max-spaces-inside: 1
+
+ comments:
+ # Defaults
+ # level: warning
+ # require-starting-space: true
+ # min-spaces-from-content: 2
+
+ # Disabling to allow for code comment blocks and #!/usr/bin/ansible-playbook
+ require-starting-space: false
+
+ indentation:
+ # Defaults
+ # spaces: consistent
+ # indent-sequences: true
+ # check-multi-line-strings: false
+
+ # Requiring 2 space indentation
+ spaces: 2
+ # Requiring consistent indentation within a file, either indented or not
+ indent-sequences: consistent
+
+ # Disabling due to copious amounts of long lines in the code which would
+ # require a code style change to resolve
+ line-length: disable
+ # Defaults
+ # max: 80
+ # allow-non-breakable-words: true
+ # allow-non-breakable-inline-mappings: false
+
+ # Disabling due to copious amounts of truthy warnings in the code which would
+ # require a code style change to resolve
+ truthy: disable
+ # Defaults
+ # level: warning