Skip to content

Commit 7fb54b5

Browse files
committed
Make yamllint more forgiving and exclude only k8s templates
- Remove extensive file exclusions, keep only k8s templates - Increase line length limit to 400 chars (GitHub Actions friendly) - Allow flexible colon spacing (max-spaces-after: -1) - Disable document-start requirement This provides linting value while handling infrastructure patterns. Signed-off-by: vanzan01 <[email protected]>
1 parent c3f9d60 commit 7fb54b5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/linters/.yamllint.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ extends: relaxed
1919

2020
rules:
2121
line-length:
22-
max: 200 # Very lenient for existing files
22+
max: 400 # Very forgiving for GitHub Actions and infrastructure files
2323
indentation: disable # Disable indentation checking for existing files
2424
comments: disable # Disable comment formatting checks
2525
brackets: disable # Disable bracket spacing checks
26+
colons:
27+
max-spaces-after: -1 # Allow any number of spaces after colon
28+
max-spaces-before: 0
29+
document-start: disable # Many files don't have ---
2630
truthy:
2731
allowed-values: ['true', 'false', 'on', 'off', 'yes', 'no']

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,4 @@ repos:
103103
description: check YAML files with yamllint
104104
args: [--config-file=.github/linters/.yamllint.yml]
105105
files: \.ya?ml$
106+
exclude: ^.*k8s-.*\.ya?ml$

0 commit comments

Comments
 (0)