summaryrefslogtreecommitdiffstats
path: root/test/fixtures/formatting-before/fmt-1.yml
blob: 06781116bd1c2b0956912827f7f32c79d552db04 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---



# ^ too many newlines before
foo: bar        # This is a comment has extra spaces preceding it

fruits: # unindented sequence:
- apple
- orange
vegetables: # indented sequence:
  - onion
  - carrot

quoting:
  - 'that should have double quotes'
  - 'that should remain in single quotes'
  - 'a string with " inside'
  # next line has some undesired trailing spaces:
  - "a string with ' inside"    
  - can't be sure!
  # next line should be converted to use double quotes:
  - ['foo', 'bar']

inline-dictionary:
 - {foo: bar} # should add some spacing between curly braces and content
 - {  foo2: bar2  } # should reduce spacing between curly braces and content

# YAML 1.1 Boolean-hell: https://yaml.org/type/bool.html
booleans-true:
  preferred: true # YAML 1.2 compatible!
  answer-1.1: YES
  canonical-1.1: y
  canonical-upper-1.1: Y
  logical-1.1: True
  option-1.1: on
booleans-false:
  preferred: false # YAML 1.2 compatible!
  answer-1.1: NO
  canonical-1.1: n
  canonical-upper-1.1: N
  logical-1.1: False
  option-1.1: off


# ^ double newline should be removed
overly-indented-vault-value: !vault |
      $ANSIBLE_VAULT;1.1;AES256
      123466303630313

# this file also has 3 newlines at end-of-file instead of one