aboutsummaryrefslogtreecommitdiffhomepage
path: root/.yamllint.yml
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2018-12-20 01:50:27 -0500
committerGitHub <noreply@github.com>2018-12-20 01:50:27 -0500
commitd58696271f166b50faa2705fdda6337c1ffb493c (patch)
tree031334f41175d9a4ddfc9c0769b911f775360f26 /.yamllint.yml
parentc760a03786a2247c14129dfd22c0e0fe1357f094 (diff)
parent8273b06f4eb706a6e52d9806c30660c9bd6707d1 (diff)
downloadansible-rabbitmq-d58696271f166b50faa2705fdda6337c1ffb493c.tar.gz
ansible-rabbitmq-d58696271f166b50faa2705fdda6337c1ffb493c.tar.zst
ansible-rabbitmq-d58696271f166b50faa2705fdda6337c1ffb493c.zip
Merge pull request #20 from mrlesmithjr/refactoring-code
Refactoring code
Diffstat (limited to '.yamllint.yml')
-rw-r--r--.yamllint.yml58
1 files changed, 58 insertions, 0 deletions
diff --git a/.yamllint.yml b/.yamllint.yml
new file mode 100644
index 0000000..9c7cac4
--- /dev/null
+++ b/.yamllint.yml
@@ -0,0 +1,58 @@
1---
2extends: default
3
4rules:
5 braces:
6 # Defaults
7 # min-spaces-inside: 0
8 # max-spaces-inside: 0
9
10 # Keeping 0 min-spaces to not error on empty collection definitions
11 min-spaces-inside: 0
12 # Allowing one space inside braces to improve code readability
13 max-spaces-inside: 1
14
15 brackets:
16 # Defaults
17 # min-spaces-inside: 0
18 # max-spaces-inside: 0
19
20 # Keeping 0 min-spaces to not error on empty collection definitions
21 min-spaces-inside: 0
22 # Allowing one space inside braces to improve code readability
23 max-spaces-inside: 1
24
25 colons:
26 # Defaults
27 # max-spaces-before: 0
28 # max-spaces-after: 1
29
30 max-spaces-before: 0
31 # Allowing more than one space for code readability
32 max-spaces-after: -1
33
34 comments:
35 # Defaults
36 # level: warning
37 # require-starting-space: true
38 # min-spaces-from-content: 2
39
40 # Disabling to allow for code comment blocks and #!/usr/bin/ansible-playbook
41 require-starting-space: false
42
43 indentation:
44 # Defaults
45 # spaces: consistent
46 # indent-sequences: true
47 # check-multi-line-strings: false
48
49 # Requiring 2 space indentation
50 spaces: 2
51 # Requiring consistent indentation within a file, either indented or not
52 indent-sequences: consistent
53
54 # Disabling due to copious amounts of long lines in the code which would
55 # require a code style change to resolve
56 line-length: disable
57
58 truthy: disable