Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix yaml[truthy] from all workflow files #371

Merged
merged 1 commit into from
Jun 10, 2023
Merged

Fix yaml[truthy] from all workflow files #371

merged 1 commit into from
Jun 10, 2023

Conversation

ThomasSanson
Copy link
Contributor

The yaml[truthy] rule was removed from the ansible-lint configuration file, so it is no longer necessary to exclude it from the workflows. This commit removes the yaml[truthy] exclusion from all workflow files.

@ThomasSanson
Copy link
Contributor Author

Hello @vitabaks,

I've been giving some thought to the files in the .github directory. Since these files are not part of Ansible, I'm wondering if it might be better to ignore them when running ansible-lint, and just use yamllint instead.

What are your thoughts on this? Do you think it would be a good idea, or is there a reason for including these files in ansible-lint that I may have missed?

Looking forward to your feedback.

@vitabaks
Copy link
Owner

That's right

ansible-lint needs to be performed only for playboys and ansible roles.

@@ -1,7 +1,7 @@
---
name: "Docker"

on:
on: # noqa yaml[truthy]
Copy link
Owner

Choose a reason for hiding this comment

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

I suggest removing this comments and simply excluding the .github directory from the ansible-lint checks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

The .github directory is excluded from linting to avoid unnecessary warnings and errors.
@vitabaks vitabaks merged commit 5d4ccfd into vitabaks:master Jun 10, 2023
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.

2 participants