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

Add ability to use use sub-rule matches on skip or warn lists #2251

Merged
merged 4 commits into from Jul 27, 2022

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Jul 27, 2022

You can now add entries like yaml[document-start] to the skip_list or warn_list, instead of adding the entire rule, allowing you to have more granular filtering.

Closes: #2248
Closes: #1794

You can now add entries like `yaml[document-start]` to the skip_list
or warn_list, instead of adding the entire rule, allowing you to have
more granular filtering.

Closes: ansible#2248
Closes: ansible#1794
Copy link
Member

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

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

Nice! A couple minor rewording suggestions.

.ansible-lint Outdated Show resolved Hide resolved
src/ansiblelint/app.py Outdated Show resolved Hide resolved
src/ansiblelint/rules/yaml.md Outdated Show resolved Hide resolved
ssbarnea and others added 3 commits July 27, 2022 16:48
Co-authored-by: Jacob Floyd <cognifloyd@gmail.com>
Co-authored-by: Jacob Floyd <cognifloyd@gmail.com>
Co-authored-by: Jacob Floyd <cognifloyd@gmail.com>
@ssbarnea ssbarnea merged commit 1a9c031 into ansible:main Jul 27, 2022
@ssbarnea ssbarnea deleted the fix/schemas branch July 27, 2022 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

yamllint config with 'level': 'warning', will trigger fatal violation
2 participants