From a86acd9a18958b2f2d52b2ba39b716cfa64f7eca Mon Sep 17 00:00:00 2001 From: Gianpaolo Macario Date: Tue, 3 May 2022 08:41:10 +0200 Subject: [PATCH 1/3] Create .yaml-lint.yml Copied from https://github.com/github/super-linter/tree/main/TEMPLATES --- .github/linters/.yaml-lint.yml | 59 ++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/linters/.yaml-lint.yml diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml new file mode 100644 index 0000000..2aa49bd --- /dev/null +++ b/.github/linters/.yaml-lint.yml @@ -0,0 +1,59 @@ +--- +########################################### +# These are the rules used for # +# linting all the yaml files in the stack # +# NOTE: # +# You can disable line with: # +# # yamllint disable-line # +########################################### +rules: + braces: + level: warning + min-spaces-inside: 0 + max-spaces-inside: 0 + min-spaces-inside-empty: 1 + max-spaces-inside-empty: 5 + brackets: + level: warning + min-spaces-inside: 0 + max-spaces-inside: 0 + min-spaces-inside-empty: 1 + max-spaces-inside-empty: 5 + colons: + level: warning + max-spaces-before: 0 + max-spaces-after: 1 + commas: + level: warning + max-spaces-before: 0 + min-spaces-after: 1 + max-spaces-after: 1 + comments: disable + comments-indentation: disable + document-end: disable + document-start: + level: warning + present: true + empty-lines: + level: warning + max: 2 + max-start: 0 + max-end: 0 + hyphens: + level: warning + max-spaces-after: 1 + indentation: + level: warning + spaces: consistent + indent-sequences: true + check-multi-line-strings: false + key-duplicates: enable + line-length: + level: warning + max: 80 + allow-non-breakable-words: true + allow-non-breakable-inline-mappings: true + new-line-at-end-of-file: disable + new-lines: + type: unix + trailing-spaces: disable From ef0b84bee78b72e992ff93c920e4c1e51ae9aba4 Mon Sep 17 00:00:00 2001 From: Gianpaolo Macario Date: Tue, 3 May 2022 08:42:16 +0200 Subject: [PATCH 2/3] Try ignoring Helm templates --- .github/linters/.yaml-lint.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml index 2aa49bd..43d22eb 100644 --- a/.github/linters/.yaml-lint.yml +++ b/.github/linters/.yaml-lint.yml @@ -6,6 +6,11 @@ # You can disable line with: # # # yamllint disable-line # ########################################### + +# Ignore Helm templates +ignore: | + templates + rules: braces: level: warning From 8d5015dfb1d0b1090895a32344e7c5fa9ba25e21 Mon Sep 17 00:00:00 2001 From: Gianpaolo Macario Date: Tue, 3 May 2022 08:58:22 +0200 Subject: [PATCH 3/3] Do not lint Helm templates --- .github/workflows/linter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 9e80d18..26e4b1b 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -57,8 +57,8 @@ jobs: VALIDATE_ALL_CODEBASE: false DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Do not lint downloaded code - see https://github.com/github/super-linter - FILTER_REGEX_EXCLUDE: .*/download/.* + # Do not lint Helm templates - see https://github.com/github/super-linter + FILTER_REGEX_EXCLUDE: .*/templates/.* VALIDATE_JAVASCRIPT_STANDARD: false VALIDATE_TYPESCRIPT_STANDARD: false TYPESCRIPT_ES_CONFIG_FILE: .eslintrc.json