summaryrefslogtreecommitdiffstats
path: root/.yamllint
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2016-12-21 17:15:42 -0500
committerJason DeTiberus <jdetiber@redhat.com>2017-01-10 11:45:30 -0500
commitbe949e0a0a2420205aaf80de514432a76596a854 (patch)
treebe5edc6198f976215c1521a490d788f46b29e227 /.yamllint
parent9d316d3091b28820e3840c535fc9bc4b6603ed72 (diff)
downloadopenshift-be949e0a0a2420205aaf80de514432a76596a854.tar.gz
openshift-be949e0a0a2420205aaf80de514432a76596a854.tar.bz2
openshift-be949e0a0a2420205aaf80de514432a76596a854.tar.xz
openshift-be949e0a0a2420205aaf80de514432a76596a854.zip
More toxification
- Move pylint tests to tox - Move yamllint tests to tox - Create separate tox config (and setup.py) for root - bump ansible requirement - unify pylint config - add docs - remove git directory containing old testing tools - install python-six if not present for openshift-facts - add python-six as a dependency for openshift-ansible-utils
Diffstat (limited to '.yamllint')
-rw-r--r--.yamllint67
1 files changed, 67 insertions, 0 deletions
diff --git a/.yamllint b/.yamllint
new file mode 100644
index 000000000..573321a94
--- /dev/null
+++ b/.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