github.com/openconfig/goyang@v1.4.5/.github/linters/.yaml-lint.yml (about)

     1  ---
     2  ###########################################
     3  # These are the rules used for            #
     4  # linting all the yaml files in the stack #
     5  # NOTE:                                   #
     6  # You can disable line with:              #
     7  # # yamllint disable-line                 #
     8  ###########################################
     9  rules:
    10    braces:
    11      level: warning
    12      min-spaces-inside: 0
    13      max-spaces-inside: 0
    14      min-spaces-inside-empty: 1
    15      max-spaces-inside-empty: 5
    16    brackets:
    17      level: warning
    18      min-spaces-inside: 0
    19      max-spaces-inside: 0
    20      min-spaces-inside-empty: 1
    21      max-spaces-inside-empty: 5
    22    colons:
    23      level: warning
    24      max-spaces-before: 0
    25      max-spaces-after: 1
    26    commas:
    27      level: warning
    28      max-spaces-before: 0
    29      min-spaces-after: 1
    30      max-spaces-after: 1
    31    comments: disable
    32    comments-indentation: disable
    33    document-end: disable
    34    document-start:
    35      level: warning
    36      present: true
    37    empty-lines:
    38      level: warning
    39      max: 2
    40      max-start: 0
    41      max-end: 0
    42    hyphens:
    43      level: warning
    44      max-spaces-after: 1
    45    indentation:
    46      level: warning
    47      spaces: consistent
    48      indent-sequences: true
    49      check-multi-line-strings: false
    50    key-duplicates: enable
    51    line-length:
    52      level: warning
    53      max: 120
    54      allow-non-breakable-words: true
    55      allow-non-breakable-inline-mappings: true
    56    new-line-at-end-of-file: disable
    57    new-lines:
    58      type: unix
    59    trailing-spaces: disable