yamllint: fix all yamllint truthy errors
Fix all thruthy errors detected by yamllint: yamllint -f parsable -c .yamllint $( find -regex '.*\.y[a]*ml' ) | \ grep '(truthy)' This only accepts true/false for boolean properties. Seems like python takes all sort of formats: https://github.com/yaml/pyyaml/blob/master/lib/yaml/constructor.py#L224-L235 But the current specs only mention "true" or "false" https://yaml.org/spec/1.2.2/#10212-boolean Which is the standard yamllint config. Excluding codeconv and workflow files, as some are using yes/no instead in the respective documentation. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
abe50cc929
commit
5c32300861
28 changed files with 37 additions and 37 deletions
|
@ -1,7 +1,7 @@
|
|||
type: seq
|
||||
sequence:
|
||||
- type: map
|
||||
required: no
|
||||
required: false
|
||||
mapping:
|
||||
"available":
|
||||
type: bool
|
||||
|
@ -52,6 +52,6 @@ sequence:
|
|||
required: false
|
||||
"fixtures":
|
||||
type: seq
|
||||
required: no
|
||||
required: false
|
||||
sequence:
|
||||
- type: str
|
||||
|
|
|
@ -11,7 +11,7 @@ type: seq
|
|||
matching: all
|
||||
sequence:
|
||||
- type: map
|
||||
required: yes
|
||||
required: true
|
||||
matching: all
|
||||
mapping:
|
||||
"scenarios":
|
||||
|
@ -19,13 +19,13 @@ sequence:
|
|||
required: true
|
||||
sequence:
|
||||
- type: str
|
||||
- unique: True
|
||||
- unique: true
|
||||
"platforms":
|
||||
required: true
|
||||
type: seq
|
||||
sequence:
|
||||
- type: str
|
||||
- unique: True
|
||||
- unique: true
|
||||
"comment":
|
||||
type: str
|
||||
required: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue