|
3 | 3 | extends: default |
4 | 4 |
|
5 | 5 | rules: |
6 | | - braces: |
7 | | - min-spaces-inside: 0 |
8 | | - max-spaces-inside: 1 |
| 6 | + comments: |
| 7 | + # https://github.com/prettier/prettier/issues/6780 |
| 8 | + min-spaces-from-content: 1 |
9 | 9 | level: error |
10 | | - brackets: |
11 | | - max-spaces-inside: 1 |
| 10 | + # https://github.com/adrienverge/yamllint/issues/384 |
| 11 | + comments-indentation: false |
| 12 | + document-start: disable |
| 13 | + # We are adding an extra space inside braces as that's how prettier does it |
| 14 | + # and we are trying not to fight other linters. |
| 15 | + line-length: |
| 16 | + max: 160 |
| 17 | + # TODO: See how we can fix this going forward |
| 18 | + ignore: |
| 19 | + - /extensions/molecule/**/intended/structured_configs/ |
| 20 | + - /changelogs/fragments_backup/ |
| 21 | + braces: |
| 22 | + min-spaces-inside: 0 # yamllint defaults to 0 |
| 23 | + max-spaces-inside: 1 # yamllint defaults to 0 |
12 | 24 | level: error |
| 25 | + octal-values: |
| 26 | + forbid-implicit-octal: true # yamllint defaults to false |
| 27 | + forbid-explicit-octal: true # yamllint defaults to false |
| 28 | + ####################################################################### |
| 29 | + # AVD Extra checks as compared to default ansible-lint configuration # |
| 30 | + # in most cases we are stricter so this is not conflicting except # |
| 31 | + # for the indentation rule where we are more flexible. # |
| 32 | + ####################################################################### |
13 | 33 | colons: |
14 | 34 | max-spaces-after: -1 |
15 | 35 | level: error |
16 | 36 | commas: |
17 | 37 | max-spaces-after: -1 |
18 | 38 | level: error |
19 | | - comments: |
20 | | - # prettier compatibility |
21 | | - min-spaces-from-content: 1 |
| 39 | + brackets: |
| 40 | + max-spaces-inside: 1 |
22 | 41 | level: error |
23 | | - comments-indentation: false |
24 | | - document-start: disable |
25 | 42 | empty-lines: |
26 | 43 | max: 1 |
27 | 44 | level: error |
28 | 45 | hyphens: |
29 | 46 | level: error |
30 | 47 | key-duplicates: |
31 | 48 | forbid-duplicated-merge-keys: true |
32 | | - line-length: |
33 | | - max: 160 |
34 | | - ignore: |
35 | | - - /extensions/molecule/**/intended/structured_configs/ |
36 | | - - /extensions/molecule/**/intended/structured_configs/cvp/ |
37 | | - - /examples/**/intended/structured_configs/cvp/ |
38 | | - - /changelogs/fragments_backup/ |
39 | | - - /tests/inventory/**/expected_output |
40 | 49 | new-lines: |
41 | 50 | type: unix |
42 | 51 | indentation: |
43 | 52 | level: error |
| 53 | + # NOTE: Here we diverge from the ansible-lint default configuration |
| 54 | + # and this is causing issues when running ansible-lint without |
| 55 | + # out custom configuration. |
44 | 56 | indent-sequences: consistent |
45 | | - octal-values: |
46 | | - forbid-implicit-octal: true |
47 | | - forbid-explicit-octal: true |
|
0 commit comments