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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -10,3 +11,4 @@ var2:
jinja: |- jinja: |-
{{ _.var1 }} {{ _.var1 }}
description: the value of var1 description: the value of var1
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -15,3 +16,4 @@ var2:
{{ val }} {{ val }}
{% endfor %} {% endfor %}
description: the value of _.var1 description: the value of _.var1
...

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -12,3 +13,4 @@ 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 version: 1.1
@ -5,3 +6,4 @@ variable:
description: a variable description: a variable
mandatory: false mandatory: false
default: true default: true
...

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -16,3 +17,4 @@ var3:
description: a third variable description: a third variable
default: default:
variable: _.var2 variable: _.var2
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -18,3 +19,4 @@ family:
description: a third variable description: a third variable
default: default:
variable: __.var2 variable: __.var2
...

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -12,3 +13,4 @@ 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,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -12,3 +13,4 @@ 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 version: 1.1
@ -14,3 +15,4 @@ variable3:
description: a port variable with integer default value description: a port variable with integer default value
type: port type: port
default: 8080 default: 8080
...

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -12,3 +13,4 @@ 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 version: 1.1
@ -9,3 +10,4 @@ var:
- quote" - quote"
- quote"' - quote"'
default: quote' default: quote'
...

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -12,3 +13,4 @@ my_variable:
- variable: _.source_variable_1 - variable: _.source_variable_1
- variable: _.source_variable_2 - variable: _.source_variable_2
default: val1 default: val1
...

View file

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

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -12,3 +13,4 @@ var2:
information: information:
information: test_information information: test_information
variable: _.var1 variable: _.var1
...

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -8,3 +9,4 @@ var2:
default: default:
information: test_information information: test_information
variable: _.var1 variable: _.var1
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -8,3 +9,4 @@ var2:
default: default:
information: test_information information: test_information
variable: _.var1 variable: _.var1
...

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,6 @@
%YAML 1.2
--- ---
version: 1.1 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 version: 1.1
@ -5,3 +6,4 @@ variable:
description: a variable description: a variable
default: default:
variable: extra.variable variable: extra.variable
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -24,3 +25,4 @@ var7: # the seventh variable
var8: # the eighth variable var8: # the eighth variable
- true - true
...

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -24,3 +25,4 @@ var7: # the seventh variable
var8: # the eighth variable var8: # the eighth variable
- 0.0 - 0.0
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -24,3 +25,4 @@ var7: # the seventh variable
var8: # the eighth variable var8: # the eighth variable
- 0 - 0
...

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -21,3 +22,4 @@ var7: # the seventh variable
var8: # the eighth variable var8: # the eighth variable
- value - value
...

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -8,3 +9,4 @@ var2:
default: default:
variable: _.var1 variable: _.var1
auto_save: true auto_save: true
...

View file

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

View file

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

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -16,3 +17,4 @@ var3:
{% if _.var1 == 'value' or _.var2 == 'blah' %} {% if _.var1 == 'value' or _.var2 == 'blah' %}
value value
{% endif %} {% endif %}
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -16,3 +17,4 @@ var3:
{% if _.var2 is propertyerror %} {% if _.var2 is propertyerror %}
value value
{% endif %} {% endif %}
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -20,3 +21,4 @@ variable2:
condition is yes condition is yes
{% endif %} {% endif %}
description: if condition is egal to "yes" description: if condition is egal to "yes"
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -28,3 +29,4 @@ var2:
condition is yes condition is yes
{% endif %} {% endif %}
description: if condition is yes description: if condition is yes
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -22,3 +23,4 @@ variable2:
condition is yes condition is yes
{% endif %} {% endif %}
description: if condition is egal to "yes" description: if condition is egal to "yes"
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -34,3 +35,4 @@ var2:
condition: condition:
variable: _.condition variable: _.condition
optional: true optional: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -7,3 +8,4 @@ variable:
description: a variable description: a variable
disabled: disabled:
variable: _.condition variable: _.condition
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -7,3 +8,4 @@ variable:
description: a variable description: a variable
disabled: disabled:
variable: _.condition variable: _.condition
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -8,3 +9,4 @@ variable:
disabled: disabled:
variable: _.condition variable: _.condition
when: yes when: yes
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -8,3 +9,4 @@ variable:
disabled: disabled:
variable: _.condition variable: _.condition
when_not: yes when_not: yes
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -8,3 +9,4 @@ variable:
multi: true multi: true
disabled: disabled:
variable: _.condition variable: _.condition
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -8,3 +9,4 @@ variable:
multi: true multi: true
disabled: disabled:
variable: _.condition variable: _.condition
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -10,3 +11,4 @@ variable:
multi: true multi: true
disabled: disabled:
variable: _.condition variable: _.condition
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -22,3 +23,4 @@ var2:
condition is yes condition is yes
{% endif %} {% endif %}
description: if condition is yes description: if condition is yes
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -28,3 +29,4 @@ var2:
condition is yes condition is yes
{% endif %} {% endif %}
description: if condition is yes description: if condition is yes
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
version: 1.1 version: 1.1
@ -28,3 +29,4 @@ var2:
condition is yes condition is yes
{% endif %} {% endif %}
description: if condition is yes description: if condition is yes
...

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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