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

(SDK-240) Adds puppet-lint validation subcommand #71

Merged
merged 6 commits into from
Jun 9, 2017

Conversation

bmjen
Copy link
Contributor

@bmjen bmjen commented Jun 9, 2017

In addition to getting the base puppet-lint validation subcommand working,
there are a lot of other plumbing changes included here. A layer of abstraction
was added here to be able to genericize the validation commands to
"Metadata", "Puppet", and "Ruby" with their respective generic validators.
These generic validators will be able to manage subvalidations that can be
created to handle the actual tools.

e.g. PuppetValidator is a wrapper that includes validation invocation for
PuppetLint and PuppetParser.

RubyValidator was created for consistency and future tools integrations
despite only having rubocop currently as the lone validator.

Requires #70

bmjen and others added 5 commits June 8, 2017 14:43
In addition to getting the base puppet-lint validation subcommand working,
there are a lot of other plumbing changes included here. A layer of abstraction
was added here to be able to genericize the validation commands to
"Metadata", "Puppet", and "Ruby" with their respective generic validators.
These generic validators will be able to manage subvalidations that can be
created to handle the actual tools.

e.g. PuppetValidator is a wrapper that includes validation invocation for
PuppetLint and PuppetParser.

RubyValidator was created for consistency and future tools integrations
despite only having rubocop currently as the lone validator.
@rodjek
Copy link
Contributor

rodjek commented Jun 9, 2017

Pushed a commit to fix up the existing tests so that I can rebase the rubocop integration onto this and take advantage of your refactoring :)

Copy link
Contributor

@scotje scotje left a comment

Choose a reason for hiding this comment

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

I pushed a commit with a small refactoring and a couple really minor fixes, otherwise looks good!

@bmjen bmjen merged commit f8dd312 into puppetlabs:master Jun 9, 2017
@bmjen bmjen deleted the validators branch June 9, 2017 21:00
@DavidS DavidS added the feature label Jun 16, 2017
@DavidS DavidS changed the title (SDK-240) Adds puppet-lint validation subcommand & other plumbing (SDK-240) Adds puppet-lint validation subcommand Jun 16, 2017
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.

4 participants