Skip to content

Remove empty .ansible-lint#442

Merged
jklare merged 1 commit into
mainfrom
remove-empty-ansible-lint
Jun 3, 2026
Merged

Remove empty .ansible-lint#442
jklare merged 1 commit into
mainfrom
remove-empty-ansible-lint

Conversation

@ideaship

@ideaship ideaship commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

What

Remove the repository's .ansible-lint, which contained only an empty
YAML document (---, parsing to null).

Why

The file has no effect on linting. The OSISM ansible-lint container
merges the per-repo .ansible-lint with the image's baseline config,
and merging null with the baseline yields the baseline — so this file
changed nothing.

The current image masks the empty file by overwriting
/zuul/.ansible-lint with the merged config at lint time. A planned
read-only rewrite of the ansible-lint image no longer writes into the
mount, so it would instead lint this empty file and trip the
non-skippable schema[ansible-lint-config] rule, turning CI red for no
real reason. Removing the vestigial file keeps linting green and
behaviourally identical under both the old and the new image.

Rollout note

This should merge before (or together with) the read-only ansible-lint
image change so CI stays green.

🤖 Generated with Claude Code

The .ansible-lint file contained only an empty YAML document ("---",
which parses to null) and had no effect on linting. The OSISM
ansible-lint container merges the per-repo .ansible-lint with the
image's baseline config; merging null with the baseline yields the
baseline, so this file changed nothing.

The current ansible-lint image masks the empty file by overwriting
/zuul/.ansible-lint with the merged config at lint time. The upcoming
read-only image no longer writes into the mount, so it would instead
lint this empty file and trip the non-skippable
schema[ansible-lint-config] rule, turning CI red for no real reason.
Removing the vestigial file keeps linting green and identical in
behaviour under both the old and new image.

AI-assisted: Claude Code
Signed-off-by: Roger Luethi <luethi@osism.tech>
@ideaship ideaship moved this from Ready to In review in Human Board Jun 3, 2026
@ideaship ideaship marked this pull request as ready for review June 3, 2026 12:57
@ideaship ideaship requested a review from jklare June 3, 2026 12:57

@jklare jklare left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jklare jklare merged commit 47e2925 into main Jun 3, 2026
3 checks passed
@jklare jklare deleted the remove-empty-ansible-lint branch June 3, 2026 13:01
@github-project-automation github-project-automation Bot moved this from In review to Done in Human Board Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants