|
| 1 | +# -*- mode: yaml -*- |
| 2 | +# vim:ts=2:sw=2:ai:si:syntax=yaml |
| 3 | +# |
| 4 | +# yamllint configuration directives |
| 5 | +# Project Homepage: https://github.com/adrienverge/yamllint |
| 6 | +# |
| 7 | +# Overriding rules in files: |
| 8 | +# http://yamllint.readthedocs.io/en/latest/disable_with_comments.html |
| 9 | +--- |
| 10 | +extends: default |
| 11 | + |
| 12 | +# Rules documentation: http://yamllint.readthedocs.io/en/latest/rules.html |
| 13 | +rules: |
| 14 | + |
| 15 | + braces: |
| 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 | + brackets: |
| 26 | + # Defaults |
| 27 | + # min-spaces-inside: 0 |
| 28 | + # max-spaces-inside: 0 |
| 29 | + |
| 30 | + # Keeping 0 min-spaces to not error on empty collection definitions |
| 31 | + min-spaces-inside: 0 |
| 32 | + # Allowing one space inside braces to improve code readability |
| 33 | + max-spaces-inside: 1 |
| 34 | + |
| 35 | + comments: |
| 36 | + # Defaults |
| 37 | + # level: warning |
| 38 | + # require-starting-space: true |
| 39 | + # min-spaces-from-content: 2 |
| 40 | + |
| 41 | + # Disabling to allow for code comment blocks and #!/usr/bin/ansible-playbook |
| 42 | + require-starting-space: false |
| 43 | + |
| 44 | + indentation: |
| 45 | + # Defaults |
| 46 | + # spaces: consistent |
| 47 | + # indent-sequences: true |
| 48 | + # check-multi-line-strings: false |
| 49 | + |
| 50 | + # Requiring 2 space indentation |
| 51 | + spaces: 2 |
| 52 | + # Requiring consistent indentation within a file, either indented or not |
| 53 | + indent-sequences: consistent |
| 54 | + |
| 55 | + # Disabling due to copious amounts of long lines in the code which would |
| 56 | + # require a code style change to resolve |
| 57 | + line-length: disable |
| 58 | + # Defaults |
| 59 | + # max: 80 |
| 60 | + # allow-non-breakable-words: true |
| 61 | + # allow-non-breakable-inline-mappings: false |
| 62 | + |
| 63 | + # Disabling due to copious amounts of truthy warnings in the code which would |
| 64 | + # require a code style change to resolve |
| 65 | + truthy: disable |
| 66 | + # Defaults |
| 67 | + # level: warning |
| 68 | + |
0 commit comments