Skip to content

Commit 21a68f4

Browse files
committed
Enable the allow-non-breakable-inline-mappings rule for yamllint
1 parent 0867685 commit 21a68f4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.yamllint

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ rules:
88
# this behavior.
99
comments-indentation: disable
1010

11+
# yamllint does not allow inline mappings that exceed the line length by
12+
# default. There are many scenarios where the inline mapping may be a key,
13+
# hash, or other long value that would exceed the line length but cannot
14+
# reasonably be broken across lines.
15+
line-length:
16+
# This rule implies the allow-non-breakable-words rule
17+
allow-non-breakable-inline-mappings: true
18+
1119
# yamllint doesn't like when we use yes and no for true and false,
1220
# but that's pretty standard in Ansible.
1321
truthy: disable

0 commit comments

Comments
 (0)