| 1 | # Copyright 2025 The go-yaml Project Contributors |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | extends: default |
| 5 | |
| 6 | ignore: /**/testdata/ # ignore testdata files that are not relevant for linting |
| 7 | |
| 8 | rules: |
| 9 | brackets: |
| 10 | min-spaces-inside: 0 |
| 11 | max-spaces-inside: 1 # allow us to use space in brackets |
| 12 | document-start: |
| 13 | present: false |
| 14 | indentation: |
| 15 | spaces: 2 |
| 16 | indent-sequences: false # make sure there is no indentation for sequences |
| 17 | truthy: |
| 18 | check-keys: false # there is a problem with the "on" key in GitHub Actions |
| 19 | quoted-strings: |
| 20 | check-keys: true # by default, only values are checked |
| 21 | quote-type: single |
| 22 | required: only-when-needed |