Skip to content

Commit

Permalink
fix(qa): Fix yamllint configuration incompatible with Ansible-lint
Browse files Browse the repository at this point in the history
```
WARNING  Found incompatible custom yamllint configuration (.yamllint), please either remove the file or edit it to comply with:
  - braces.max-spaces-inside must be 1
  - octal-values.forbid-implicit-octal must be true
  - octal-values.forbid-explicit-octal must be true.
```

Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
  • Loading branch information
brlin-tw committed Aug 27, 2024
1 parent eca2dfa commit 67515fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rules:
# https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.braces
braces:
min-spaces-inside: 0
max-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: -1
max-spaces-inside-empty: -1

Expand Down Expand Up @@ -123,8 +123,8 @@ rules:
# Use this rule to prevent values with octal numbers. In YAML, numbers that start with `0` are interpreted as octal, but this is not always wanted. For instance `010` is the city code of Beijing, and should not be converted to `8`.
# https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.octal_values
octal-values:
forbid-implicit-octal: false
forbid-explicit-octal: false
forbid-implicit-octal: true
forbid-explicit-octal: true

# Use this rule to forbid trailing spaces at the end of lines.
# https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.trailing_spaces
Expand Down

0 comments on commit 67515fc

Please sign in to comment.