Skip to content

fix(lint): actually allow empty YAML values in yamllint config - #124

Merged
Leechael merged 1 commit into
mainfrom
fix/yamllint-empty-values
Sep 12, 2026
Merged

Leechael merged 1 commit into
mainfrom
fix/yamllint-empty-values

Conversation

@Leechael

Copy link
Copy Markdown
Contributor

Summary

.yamllint says empty values should be allowed (named volumes and networks in docker-compose use them), but the rule was set to enable. yamllint disables empty-values by default, so enable turned the check on. Every compose file in the repo reported errors; dev.sh swallows the yamllint exit code, so CI stayed green while GitHub attached the errors as failure annotations to unrelated PR diffs (see #123, #122).

Change

  • .yamllint: empty-values: disable, matching the existing comment.
  • CLOUDFORMATION_EXAMPLE.yaml: remove trailing space after the empty Default:. This was the only finding not caused by the config.

Verification

Same file set as dev.sh lint (*.yml / *.yaml, .git* paths excluded):

  • before: 11 errors across 5 files, all empty-values plus one trailing-spaces
  • after: 0

The comment in .yamllint says empty values are allowed because they
are common in docker-compose files (named volumes, networks), but the
rule was set to `enable`. yamllint disables empty-values by default,
so `enable` turned the check on and every compose file in the repo
reported errors. dev.sh swallows the yamllint exit code, so CI stayed
green while GitHub surfaced the errors as failure annotations on
unrelated PR diffs.

Set the rule to `disable` to match the stated intent, and drop the
trailing space on the empty CloudFormation `Default:` value, which was
the only non-empty-values finding.

Claude-Session: https://claude.ai/code/session_01Ap9Smra9D3ZLPUeKDkDYQJ
@Leechael
Leechael merged commit d506980 into main Sep 12, 2026
6 checks passed
@Leechael
Leechael deleted the fix/yamllint-empty-values branch September 12, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant