forked from alan-turing-institute/data-safe-haven
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.yamllint.yaml
25 lines (25 loc) · 852 Bytes
/
.yamllint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
# Some rules here are added for compatibility with ansible-lint
# https://ansible.readthedocs.io/projects/lint/rules/yaml/
extends: default
rules:
# Restrict acceptable spaces inside brackets
braces:
min-spaces-inside: 0
max-spaces-inside: 1
# Remove requirement for comments to start with '# ' as this breaks cloud-init
comments:
min-spaces-from-content: 1
require-starting-space: false
# Don't force comments to be indented like content
comments-indentation: false
# Remove requirement to start with '---' as this breaks cloud-init
document-start: disable
# Allow longer lines
line-length:
max: 400
# Forbid non-quoted octal values
# https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.octal_values
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true