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

Implement --list-checks feature, to list the names of all available checks from the cli. #804

Merged
merged 3 commits into from
Mar 25, 2018

Conversation

xraystyle
Copy link
Contributor

I was attempting to set a control comment to ignore a particular lint check the other day and was having a difficult time figuring out what exactly the check name should be in the # lint:ignore:<check_name> comment. I ended up having to dig through the source code for the check in question to find the correct check name string to add to the comment, and thought it would be nice if there was an easier way to list these.

They're sort of listed on the Puppet Lint - Checks page, but one has to infer the name of the check by looking at the pattern of the cli options strings, i.e. the actual name of the check is --no-CHECK_NAME-check.

This provides a simple flag to list out the checks with some basic documentation at the cli. Also includes an update to the README mentioning the feature, and an rspec test to make sure all checks are listed. All tests passing.

@rodjek rodjek added this to the 2.3.4 milestone Mar 23, 2018
@rodjek rodjek force-pushed the feature/list_checks branch from ed93573 to b6b0d80 Compare March 25, 2018 23:00
@rodjek rodjek force-pushed the feature/list_checks branch from b6b0d80 to 1a2339c Compare March 25, 2018 23:12
@rodjek rodjek merged commit 2607e54 into rodjek:master Mar 25, 2018
@rodjek rodjek added the feature label Mar 25, 2018
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.

2 participants