feat: add yamllint validation

This commit is contained in:
egarette@silique.fr 2025-04-27 09:27:04 +02:00
parent 1c06587ba9
commit c151d1829e
280 changed files with 875 additions and 262 deletions

View file

@ -22,6 +22,7 @@ from pathlib import Path
from typing import Optional
from ruamel.yaml import YAML, CommentedMap
from ruamel.yaml.representer import RoundTripRepresenter
from ruamel.yaml.tokens import CommentToken
from ruamel.yaml.error import CommentMark
from ruamel.yaml.comments import CommentedSeq
@ -44,6 +45,21 @@ from .__version__ import __version__
def _(text):
return text
# XXX explicit null
def represent_none(self, data):
return self.represent_scalar('tag:yaml.org,2002:null', 'null')
def represent_str(self, data):
if data == '':
return self.represent_scalar('tag:yaml.org,2002:null', "")
return self.represent_scalar('tag:yaml.org,2002:str', data)
RoundTripRepresenter.add_representer(type(None), represent_none)
RoundTripRepresenter.add_representer(str, represent_str)
# XXX
class RougailOutputFormatter:
output_name = 'formatter'
@ -112,7 +128,9 @@ class RougailOutputFormatter:
self.families = {None: CommentedMap()}
self.parse()
self.yaml.indent(mapping=2, sequence=4, offset=2)
self.yaml.explicit_start=True
self.yaml.version = '1.2'
self.yaml.explicit_start = True
self.yaml.explicit_end = True
self.default_flow_style = False
with BytesIO() as ymlfh:
self.yaml.dump(self.families[None], ymlfh)
@ -137,7 +155,9 @@ class RougailOutputFormatter:
self.families[None][version_name] = None
self.families[None].yaml_value_comment_extend(version_name, [CommentToken('\n\n', CommentMark(0)), None])
version = None
self.remaining = len(self.rougail.paths._data)
for path, obj in self.rougail.paths._data.items():
self.remaining -= 1
if version is None or version == '':
version = obj.version
if path == self.rougail.namespace:
@ -194,7 +214,16 @@ class RougailOutputFormatter:
elif not set(family) - {'description'}:
#
ret[name] = CommentedMap()
ret.yaml_add_eol_comment(family["description"] + '\n\n', name)
add_column = 3
path_len = path.count('.')
if self.rougail.namespace:
path_len -= 1
column = path_len * 2 + len(name) + add_column
if self.remaining:
description = family["description"] + '\n\n'
else:
description = family["description"]
ret.yaml_add_eol_comment(description, name, column=column)
else:
self.add_space(family)
ret[name] = family
@ -257,22 +286,35 @@ class RougailOutputFormatter:
# shorthand notation
default = variable.get('default')
ret[name] = default
add_column = 3
if isinstance(default, list):
ret[name] = CommentedSeq()
if not default:
add_column += 3
for d in default:
ret[name].append(d)
else:
ret[name] = default
if default is None:
ret[name] = ""
else:
ret[name] = default
add_column += len(str(default)) + 1
if "description" in variable:
description = variable["description"]
if not multi or not default:
if self.remaining and (not multi or not default):
description += "\n\n"
ret.yaml_add_eol_comment(description, name)
path_len = path.count('.')
if self.rougail.namespace:
path_len -= 1
column = path_len * 2 + len(name) + add_column
ret.yaml_add_eol_comment(description, name, column=column)
if multi and default:
self.add_space(ret)
else:
self.add_space(ret)
else:
if "default" in variable and variable["default"] is None:
variable["default"] = ""
ret[name] = variable
self.add_space(variable)
@ -295,7 +337,8 @@ class RougailOutputFormatter:
func = parent.yaml_key_comment_extend
else:
func = parent.yaml_value_comment_extend
func(param, [CommentToken(enter, CommentMark(0)), None])
if self.remaining:
func(param, [CommentToken(enter, CommentMark(0)), None])
def object_to_yaml(self, key, type_, value, multi, object_path):
if isinstance(value, list):

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
_version: 1.1
version: # a variable
version: # a variable
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
empty:
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
var1: no # a first variable
var1: no # a first variable
var2:
description: a second variable
@ -10,3 +11,4 @@ var2:
jinja: |-
{{ _.var1 }}
description: the value of var1
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
var1: # a first variable
var1: # a first variable
- no
- yes
- maybe
@ -15,3 +16,4 @@ var2:
{{ val }}
{% endfor %}
description: the value of _.var1
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -12,3 +13,4 @@ var2:
description: a second variable
default:
variable: _.var1
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
var1: # a variable
var1: # a variable
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
var2: # a variable
var2: # a variable
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
without_type: non # a variable
without_type: non # a variable
...

View file

@ -1,14 +1,16 @@
%YAML 1.2
---
version: 1.1
var1: true # the first variable
var1: true # the first variable
var2: true # the second variable
var2: true # the second variable
var3: true # the third variable
var3: true # the third variable
var4: false # the forth variable
var4: false # the forth variable
var5: false # the fifth variable
var5: false # the fifth variable
var6: false # the sixth variable
var6: false # the sixth variable
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -5,3 +6,4 @@ variable:
description: a variable
mandatory: false
default: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -26,7 +27,7 @@ var3:
var4:
description: the forth variable
choices:
-
- null
- b
- c
mandatory: false
@ -46,3 +47,4 @@ var6:
- 2
- 3
default: 1
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -11,3 +12,4 @@ var:
return_type: number
description: choices is 0 to 9
default: 9
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -12,3 +13,4 @@ var2:
description: the second variable
default:
variable: _.var1
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
var1: # a second variable
var1: # a second variable
- a
- b
- c
@ -11,3 +12,4 @@ var2:
choices:
variable: _.var1
default: a
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
var1: # a second variable
var1: # a second variable
- a
- b
- c
@ -16,3 +17,4 @@ var3:
description: a third variable
default:
variable: _.var2
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
var1: # a second variable
var1: # a second variable
- a
- b
- c
@ -18,3 +19,4 @@ family:
description: a third variable
default:
variable: __.var2
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -9,3 +10,4 @@ custom2:
description: the seconf variable
type: custom
default: value
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -5,3 +6,4 @@ variable:
description: a domain name variable
type: domainname
default: my.domain.name
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -7,3 +8,4 @@ variable:
params:
allow_ip: true
default: my.domain.name
...

View file

@ -1,14 +1,16 @@
%YAML 1.2
---
version: 1.1
var1: 0.0 # the first variable
var1: 0.0 # the first variable
var2: 0.0 # the second variable
var2: 0.0 # the second variable
var3: 0.0 # the third variable
var3: 0.0 # the third variable
var4: 10.1 # the forth variable
var4: 10.1 # the forth variable
var5: 10.1 # the fifth variable
var5: 10.1 # the fifth variable
var6: 10.1 # the sixth variable
var6: 10.1 # the sixth variable
...

View file

@ -1,14 +1,16 @@
%YAML 1.2
---
version: 1.1
var1: 0 # the first variable
var1: 0 # the first variable
var2: 0 # the second variable
var2: 0 # the second variable
var3: 0 # the third variable
var3: 0 # the third variable
var4: 10 # this forth variable
var4: 10 # this forth variable
var5: 10 # the fifth variable
var5: 10 # the fifth variable
var6: 10 # the sixth variable
var6: 10 # the sixth variable
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -14,3 +15,4 @@ variable3:
description: a port variable with integer default value
type: port
default: 8080
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -8,3 +9,4 @@ var:
- '#b2b2b2'
regexp: ^#(?:[0-9a-f]{3}){1,2}$
default: '#a1a1a1'
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -16,3 +17,4 @@ var2:
- '#b3b2b2'
default:
variable: _.var1
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -9,3 +10,4 @@ secret2:
description: the second variable
type: secret
default: value
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -25,3 +26,4 @@ secret3:
forbidden_char:
- $
default: value
...

View file

@ -1,14 +1,16 @@
%YAML 1.2
---
version: 1.1
var1: # the first variable
var1: # the first variable
var2: # the second variable
var2: # the second variable
var3: # the third variable
var3: # the third variable
var4: value # the forth variable
var4: value # the forth variable
var5: value # the fifth variable
var5: value # the fifth variable
var6: value # the sixth variable
var6: value # the sixth variable
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -9,3 +10,4 @@ var:
- quote"
- quote"'
default: quote'
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -16,3 +17,4 @@ var2:
Multi line
Help
With useful information
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -8,3 +9,4 @@ var1:
var2:
description: the second variable
help: message with "
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -16,3 +17,4 @@ var2:
Multi line
<Help>
With useful information
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
variable: quote" # a variable
variable: quote" # a variable
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
variable: quote'" # a variable
variable: quote'" # a variable
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
variable: quote\"\' # a variable
variable: quote\"\' # a variable
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
variable: quote' # a variable
variable: quote' # a variable
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -10,3 +11,4 @@ variable:
params:
test_information:
information: test_information
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -6,3 +7,4 @@ variable:
default:
type: namespace
mandatory: false
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -10,3 +11,4 @@ variable:
namespace:
type: namespace
mandatory: false
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -21,7 +22,7 @@ var3:
var4:
description: the forth variable
test:
-
- null
- test1
- test2
mandatory: false
@ -38,3 +39,4 @@ var6:
- test1
- test2
multi: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -15,3 +16,4 @@ variable2:
- val2
multi: true
mandatory: false
...

View file

@ -1,9 +1,10 @@
%YAML 1.2
---
version: 1.1
source_variable_1: val1 # the first source variable
source_variable_1: val1 # the first source variable
source_variable_2: val2 # the second source variable
source_variable_2: val2 # the second source variable
my_variable:
description: a variable
@ -12,3 +13,4 @@ my_variable:
- variable: _.source_variable_1
- variable: _.source_variable_2
default: val1
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -11,4 +12,5 @@ variable:
param1: string
param2: 1
param3: true
param4:
param4: null
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -11,3 +12,4 @@ var:
information:
information: test_information
variable: _.var
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
var1: # a first variable
var1: # a first variable
var2:
description: a second variable
@ -12,3 +13,4 @@ var2:
information:
information: test_information
variable: _.var1
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -8,3 +9,4 @@ my_calculated_variable:
optional: true
- variable: _.my_variable_unexists
optional: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -8,3 +9,4 @@ my_calculated_variable:
optional: true
- variable: _.my_variable
optional: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -6,3 +7,4 @@ my_calculated_variable:
default:
variable: _.my_variable
optional: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -10,3 +11,4 @@ my_calculated_variable:
default:
variable: _.my_variable
optional: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -28,3 +29,4 @@ var1:
mandatory: false
var2: no # a second variable
...

View file

@ -1,10 +1,12 @@
%YAML 1.2
---
version: 1.1
var1: # a first variable
var1: # a first variable
var2:
description: a second variable
default:
information: test_information
variable: _.var1
...

View file

@ -1,10 +1,12 @@
%YAML 1.2
---
version: 1.1
var1: # a first variable
var1: # a first variable
var2:
description: a second variable
default:
information: test_information
variable: _.var1
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -11,3 +12,4 @@ var:
return_type: number
description: choice for 0 to 9
default: 9
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -7,3 +8,4 @@ variable:
jinja: >-
no
description: return no
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
variable: rougail # a variable
variable: rougail # a variable
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -22,3 +23,4 @@ variable3:
params:
variable:
variable: rougail.variable
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
variable: value # a variable
variable: value # a variable
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
variable: value in extra # a variable
variable: value in extra # a variable
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -5,3 +6,4 @@ variable:
description: a variable
default:
variable: extra.variable
...

View file

@ -1,26 +1,28 @@
%YAML 1.2
---
version: 1.1
var1: # the first variable
var1: # the first variable
- true
var2: # the second variable
var2: # the second variable
- true
var3: # the third variable
var3: # the third variable
- true
var4: # the forth variable
var4: # the forth variable
- false
var5: # the fifth variable
var5: # the fifth variable
- false
var6: # the sixth variable
var6: # the sixth variable
- false
var7: # the seventh variable
var7: # the seventh variable
- true
var8: # the eighth variable
var8: # the eighth variable
- true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -11,3 +12,4 @@ custom2:
type: custom
default:
- value
...

View file

@ -1,26 +1,28 @@
%YAML 1.2
---
version: 1.1
var1: # the first variable
var1: # the first variable
- 0.0
var2: # the second variable
var2: # the second variable
- 0.0
var3: # the third variable
var3: # the third variable
- 0.0
var4: # the forth variable
var4: # the forth variable
- 10.1
var5: # the fifth variable
var5: # the fifth variable
- 10.1
var6: # the sixth variable
var6: # the sixth variable
- 10.1
var7: # the seventh variable
var7: # the seventh variable
- 0.0
var8: # the eighth variable
var8: # the eighth variable
- 0.0
...

View file

@ -1,26 +1,28 @@
%YAML 1.2
---
version: 1.1
var1: # the first variable
var1: # the first variable
- 0
var2: # the second variable
var2: # the second variable
- 0
var3: # the third variable
var3: # the third variable
- 0
var4: # the forth variable
var4: # the forth variable
- 10
var5: # the fifth variable
var5: # the fifth variable
- 10
var6: # the sixth variable
var6: # the sixth variable
- 10
var7: # the seventh variable
var7: # the seventh variable
- 0
var8: # the eighth variable
var8: # the eighth variable
- 0
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -5,5 +6,6 @@ var1:
description: the second variable
default:
- value
-
- null
empty: false
...

View file

@ -1,23 +1,25 @@
%YAML 1.2
---
version: 1.1
var1: [] # the first variable
var1: [] # the first variable
var2: [] # the second variable
var2: [] # the second variable
var3: [] # the third variable
var3: [] # the third variable
var4: # the forth variable
var4: # the forth variable
- value
var5: # the fifth variable
var5: # the fifth variable
- value
var6: # the sixth variable
var6: # the sixth variable
- value
var7: # the seventh variable
var7: # the seventh variable
- value
var8: # the eighth variable
var8: # the eighth variable
- value
...

View file

@ -1,5 +1,7 @@
%YAML 1.2
---
version: 1.1
variable: # a variable
variable: # a variable
- quote"
...

View file

@ -1,5 +1,7 @@
%YAML 1.2
---
version: 1.1
variable: # a variable
variable: # a variable
- quote'"
...

View file

@ -1,5 +1,7 @@
%YAML 1.2
---
version: 1.1
variable: # a variable
variable: # a variable
- quote'
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -13,3 +14,4 @@ variable:
params:
test_information:
information: test_information_list
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
variable1: # a first variable
variable1: # a first variable
- a
- b
- c
@ -10,3 +11,4 @@ variable2:
description: a second variable
choices:
variable: _.variable1
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -7,3 +8,4 @@ int:
min_number: 0
max_number: 100
default: 10
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -5,3 +6,4 @@ variable:
description: an auto save variable
default: no
auto_save: true
...

View file

@ -1,10 +1,12 @@
%YAML 1.2
---
version: 1.1
var1: no # a first variable
var1: no # a first variable
var2:
description: a second variable
default:
variable: _.var1
auto_save: true
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
var1: no # a first variable
var1: no # a first variable
var2:
description: a second variable
@ -16,3 +17,4 @@ var2:
_.var1 is yes
{% endif %}
description: only if the variable var1 has value "yes"
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -7,3 +8,4 @@ var:
auto_save: true
mandatory: false
hidden: true
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
var1: value # a first variable
var1: value # a first variable
var2:
description: a second variable
@ -16,3 +17,4 @@ var3:
{% if _.var1 == 'value' or _.var2 == 'blah' %}
value
{% endif %}
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
var1: value # a first variable
var1: value # a first variable
var2:
description: a second variable
@ -16,3 +17,4 @@ var3:
{% if _.var2 is propertyerror %}
value
{% endif %}
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
condition: no # a conditional variable
condition: no # a conditional variable
variable1:
description: a first variable
@ -20,3 +21,4 @@ variable2:
condition is yes
{% endif %}
description: if condition is egal to "yes"
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
condition: no # a condition
condition: no # a condition
var1:
description: a first variable
@ -28,3 +29,4 @@ var2:
condition is yes
{% endif %}
description: if condition is yes
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
condition: no # a conditional variable
condition: no # a conditional variable
variable1:
description: a first variable
@ -22,3 +23,4 @@ variable2:
condition is yes
{% endif %}
description: if condition is egal to "yes"
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
condition: no # a condition
condition: no # a condition
var1:
description: a first variable
@ -34,3 +35,4 @@ var2:
condition:
variable: _.condition
optional: true
...

View file

@ -1,9 +1,11 @@
%YAML 1.2
---
version: 1.1
condition: false # a condition
condition: false # a condition
variable:
description: a variable
disabled:
variable: _.condition
...

View file

@ -1,9 +1,11 @@
%YAML 1.2
---
version: 1.1
condition: true # a condition
condition: true # a condition
variable:
description: a variable
disabled:
variable: _.condition
...

View file

@ -1,10 +1,12 @@
%YAML 1.2
---
version: 1.1
condition: yes # a condition
condition: yes # a condition
variable:
description: a variable
disabled:
variable: _.condition
when: yes
...

View file

@ -1,10 +1,12 @@
%YAML 1.2
---
version: 1.1
condition: yes # a condition
condition: yes # a condition
variable:
description: a variable
disabled:
variable: _.condition
when_not: yes
...

View file

@ -1,10 +1,12 @@
%YAML 1.2
---
version: 1.1
condition: false # a condition
condition: false # a condition
variable:
description: a variable
multi: true
disabled:
variable: _.condition
...

View file

@ -1,10 +1,12 @@
%YAML 1.2
---
version: 1.1
condition: [] # a condition
condition: [] # a condition
variable:
description: a variable
multi: true
disabled:
variable: _.condition
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
condition: # a condition
condition: # a condition
- val1
- val2
@ -10,3 +11,4 @@ variable:
multi: true
disabled:
variable: _.condition
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
condition: no # the condition
condition: no # the condition
var1:
description: a first variable
@ -22,3 +23,4 @@ var2:
condition is yes
{% endif %}
description: if condition is yes
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
condition: no # a condition
condition: no # a condition
var1:
description: a first variable
@ -28,3 +29,4 @@ var2:
condition is yes
{% endif %}
description: if condition is yes
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
---
version: 1.1
condition: no # a condition
condition: no # a condition
var1:
description: a first variable
@ -28,3 +29,4 @@ var2:
condition is yes
{% endif %}
description: if condition is yes
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -10,3 +11,4 @@ int:
value is too high
{% endif %}
description: the max value is 100
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -14,3 +15,4 @@ var1:
default: oui
var2: no # A second variable
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -12,3 +13,4 @@ var1:
default:
- no
- yes
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -19,3 +20,4 @@ var1:
default:
- no
- yes
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -6,3 +7,4 @@ var1:
default:
- non
unique: false
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -6,3 +7,4 @@ variable:
default:
- non
unique: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
---
version: 1.1
@ -6,3 +7,4 @@ var:
mode: advanced
default: no
auto_save: true
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
---
version: 1.1
var: # Redefine description
var: # Redefine description
...

View file

@ -1,6 +1,8 @@
%YAML 1.2
---
version: 1.1
var:
redefine: true
description: Redefined
...

Some files were not shown because too many files have changed in this diff Show more