|
| 1 | +# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-yaml/.yamllint.yml |
| 2 | +# See: https://yamllint.readthedocs.io/en/stable/configuration.html |
| 3 | +# The code style defined in this file is the official standardized style to be used in all Arduino tooling projects and |
| 4 | +# should not be modified. |
| 5 | +# Note: Rules disabled solely because they are redundant to Prettier are marked with a "Prettier" comment. |
| 6 | + |
| 7 | +rules: |
| 8 | + braces: |
| 9 | + level: error |
| 10 | + forbid: non-empty |
| 11 | + min-spaces-inside: -1 # Prettier |
| 12 | + max-spaces-inside: -1 # Prettier |
| 13 | + min-spaces-inside-empty: -1 # Prettier |
| 14 | + max-spaces-inside-empty: -1 # Prettier |
| 15 | + brackets: |
| 16 | + level: error |
| 17 | + forbid: non-empty |
| 18 | + min-spaces-inside: -1 # Prettier |
| 19 | + max-spaces-inside: -1 # Prettier |
| 20 | + min-spaces-inside-empty: -1 # Prettier |
| 21 | + max-spaces-inside-empty: -1 # Prettier |
| 22 | + colons: disable # Prettier |
| 23 | + commas: disable # Prettier |
| 24 | + comments: disable # Prettier |
| 25 | + comments-indentation: disable # Prettier |
| 26 | + document-end: disable # Prettier |
| 27 | + document-start: disable |
| 28 | + empty-lines: disable # Prettier |
| 29 | + empty-values: disable |
| 30 | + hyphens: disable # Prettier |
| 31 | + indentation: disable # Prettier |
| 32 | + key-duplicates: disable # Prettier |
| 33 | + key-ordering: disable |
| 34 | + line-length: |
| 35 | + level: warning |
| 36 | + max: 120 |
| 37 | + allow-non-breakable-words: true |
| 38 | + allow-non-breakable-inline-mappings: true |
| 39 | + new-line-at-end-of-file: disable # Prettier |
| 40 | + new-lines: disable # Prettier |
| 41 | + octal-values: |
| 42 | + level: warning |
| 43 | + forbid-implicit-octal: true |
| 44 | + forbid-explicit-octal: false |
| 45 | + quoted-strings: disable |
| 46 | + trailing-spaces: disable # Prettier |
| 47 | + truthy: |
| 48 | + level: error |
| 49 | + allowed-values: |
| 50 | + - "true" |
| 51 | + - "false" |
| 52 | + - "on" # Used by GitHub Actions as a workflow key. |
| 53 | + check-keys: true |
| 54 | + |
| 55 | +yaml-files: |
| 56 | + # Source: https://github.com/ikatyang/linguist-languages/blob/master/data/YAML.json (used by Prettier) |
| 57 | + - ".clang-format" |
| 58 | + - ".clang-tidy" |
| 59 | + - ".gemrc" |
| 60 | + - ".yamllint" |
| 61 | + - "glide.lock" |
| 62 | + - "*.yml" |
| 63 | + - "*.mir" |
| 64 | + - "*.reek" |
| 65 | + - "*.rviz" |
| 66 | + - "*.sublime-syntax" |
| 67 | + - "*.syntax" |
| 68 | + - "*.yaml" |
| 69 | + - "*.yaml-tmlanguage" |
| 70 | + - "*.yaml.sed" |
| 71 | + - "*.yml.mysql" |
| 72 | + |
| 73 | +ignore: | |
| 74 | + /.git/ |
| 75 | + .clang-format |
| 76 | + __pycache__/ |
0 commit comments