From f4375daeb2ad2d8474b6814f8468b2fc2cfb8133 Mon Sep 17 00:00:00 2001 From: Ushitora Anqou Date: Tue, 14 Jan 2025 19:22:43 +0900 Subject: [PATCH] fix ct lint --- .github/workflows/helm-chart-test.yaml | 5 +-- charts/magout/values.yaml | 6 ++-- lintconf.yaml | 42 ++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 lintconf.yaml diff --git a/.github/workflows/helm-chart-test.yaml b/.github/workflows/helm-chart-test.yaml index ceeb697..eec0031 100644 --- a/.github/workflows/helm-chart-test.yaml +++ b/.github/workflows/helm-chart-test.yaml @@ -1,10 +1,7 @@ name: Lint and Test Charts on: - pull_request: - push: - branches: - - "master" + workflow_dispatch: jobs: lint-test: diff --git a/charts/magout/values.yaml b/charts/magout/values.yaml index 12ad1f4..8a57ef1 100644 --- a/charts/magout/values.yaml +++ b/charts/magout/values.yaml @@ -18,9 +18,9 @@ mastodonServer: envFrom: [] # CHANGE HERE resources: {} periodicRestart: {} - #periodicRestart: - # schedule: "0 0 * * *" - # timeZone: UTC + # periodicRestart: + # schedule: "0 0 * * *" + # timeZone: UTC web: replicas: 1 labels: {} diff --git a/lintconf.yaml b/lintconf.yaml new file mode 100644 index 0000000..9f06d4e --- /dev/null +++ b/lintconf.yaml @@ -0,0 +1,42 @@ +--- +rules: + braces: + min-spaces-inside: 0 + max-spaces-inside: 0 + min-spaces-inside-empty: -1 + max-spaces-inside-empty: -1 + brackets: + min-spaces-inside: 0 + max-spaces-inside: 0 + min-spaces-inside-empty: -1 + max-spaces-inside-empty: -1 + colons: + max-spaces-before: 0 + max-spaces-after: 1 + commas: + max-spaces-before: 0 + min-spaces-after: 1 + max-spaces-after: 1 + comments: + require-starting-space: false + min-spaces-from-content: -1 + document-end: disable + document-start: disable # No --- to start a file + empty-lines: + max: 2 + max-start: 0 + max-end: 0 + hyphens: + max-spaces-after: 1 + indentation: + spaces: consistent + indent-sequences: whatever # - list indentation will handle both indentation and without + check-multi-line-strings: false + key-duplicates: enable + line-length: disable # Lines can be any length + new-line-at-end-of-file: enable + new-lines: + type: unix + trailing-spaces: enable + truthy: + level: warning