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 rake tasks to validate and lint files and check with Travis #208

Merged
merged 1 commit into from Dec 18, 2013

Conversation

ghoneycutt
Copy link
Contributor

This patch adds the ability to validate syntax of manifests, templates,
and ruby files in lib/ via rake validate and the linting of manifests
with puppet-lint via rake lint. These two commands are chained with
running the spec tests in Travis to ensure there are no syntax or style
issues.

This patch adds the ability to validate syntax of manifests, templates,
and ruby files in lib/ via `rake validate` and the linting of manifests
with puppet-lint via `rake lint`. These two commands are chained with
running the spec tests in Travis to ensure there are no syntax or style
issues.
@jhoblitt
Copy link

👍 I'm a big fan of setting up Travis catching litning issues.

It might be worth considering the puppet-syntax gem as it has rake targets for manifest and erb validation. However, it would be another dep and doesn't have support for validating Ruby (shouldn't be hard to add).

@ghoneycutt
Copy link
Contributor Author

@jhoblitt I'll take a look at that. Can you merge this in meantime? I'm using it for my modules and it is working great and as you point out, does not need another dependency.

@jhoblitt
Copy link

@ghoneycutt I'm not a repo collab for this module.

zaphod42 added a commit that referenced this pull request Dec 18, 2013
Add rake tasks to validate and lint files and check with Travis
@zaphod42 zaphod42 merged commit 7dc0fb6 into puppetlabs:master Dec 18, 2013
@ghoneycutt ghoneycutt deleted the add_validation branch December 18, 2013 19:35
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.

None yet

4 participants