github.com/freiheit-com/kuberpult@v1.24.2-0.20240328135542-315d5630abe6/charts/kuberpult/ci/lintconf.yaml (about)

     1  # This file is part of kuberpult.
     2  
     3  # Kuberpult is free software: you can redistribute it and/or modify
     4  # it under the terms of the Expat(MIT) License as published by
     5  # the Free Software Foundation.
     6  
     7  # Kuberpult is distributed in the hope that it will be useful,
     8  # but WITHOUT ANY WARRANTY; without even the implied warranty of
     9  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    10  # MIT License for more details.
    11  
    12  # You should have received a copy of the MIT License
    13  # along with kuberpult. If not, see <https://directory.fsf.org/wiki/License:Expat>.
    14  
    15  # Copyright 2023 freiheit.com
    16  # This file is part of kuberpult.
    17  
    18  # Kuberpult is free software: you can redistribute it and/or modify
    19  # it under the terms of the Expat(MIT) License as published by
    20  # the Free Software Foundation.
    21  
    22  # Kuberpult is distributed in the hope that it will be useful,
    23  # but WITHOUT ANY WARRANTY; without even the implied warranty of
    24  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    25  # MIT License for more details.
    26  
    27  # You should have received a copy of the MIT License
    28  # along with kuberpult. If not, see <https://directory.fsf.org/wiki/License:Expat>.
    29  
    30  # Copyright 2023 freiheit.com
    31  ---
    32  rules:
    33    braces:
    34      min-spaces-inside: 0
    35      max-spaces-inside: 0
    36      min-spaces-inside-empty: -1
    37      max-spaces-inside-empty: -1
    38    brackets:
    39      min-spaces-inside: 0
    40      max-spaces-inside: 0
    41      min-spaces-inside-empty: -1
    42      max-spaces-inside-empty: -1
    43    colons:
    44      max-spaces-before: 0
    45      max-spaces-after: 1
    46    commas:
    47      max-spaces-before: 0
    48      min-spaces-after: 1
    49      max-spaces-after: 1
    50    comments:
    51      require-starting-space: true
    52      min-spaces-from-content: 2
    53    document-end: disable
    54    document-start: disable           # No --- to start a file
    55    empty-lines:
    56      max: 2
    57      max-start: 0
    58      max-end: 0
    59    hyphens:
    60      max-spaces-after: 1
    61    indentation:
    62      spaces: consistent
    63      indent-sequences: whatever      # - list indentation will handle both indentation and without
    64      check-multi-line-strings: false
    65    key-duplicates: enable
    66    line-length: disable              # Lines can be any length
    67    new-line-at-end-of-file: enable
    68    new-lines:
    69      type: unix
    70    trailing-spaces: enable
    71    truthy:
    72      level: warning