https://github.com/intrepidpursuits/danger-puppet_lint
Danger plugin to report violations from Puppet-Lint
https://github.com/intrepidpursuits/danger-puppet_lint
Last synced: 8 months ago
JSON representation
Danger plugin to report violations from Puppet-Lint
- Host: GitHub
- URL: https://github.com/intrepidpursuits/danger-puppet_lint
- Owner: IntrepidPursuits
- License: mit
- Created: 2017-04-12T16:31:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-30T17:25:53.000Z (over 7 years ago)
- Last Synced: 2025-10-13T14:06:10.663Z (8 months ago)
- Language: Ruby
- Size: 17.6 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# danger-puppet_lint
[](https://travis-ci.org/IntrepidPursuits/danger-puppet_lint)
[](https://coveralls.io/github/IntrepidPursuits/danger-puppet_lint?branch=master)

A [Danger](http://danger.systems/) plugin that shows the static analysis output generated by [Puppet-Lint](https://puppet-lint.com).
To use this plugin, you need to generate a report file using [Puppet-Lint](https://puppet-lint.com) for this plugin to read.
## Installation
$ gem install danger-puppet_lint
## Usage
Somewhere in your build process, call puppet-lint and pipe it's output into a report file.
puppet-lint ./ > puppet.report
At a minimum, add this line to your `Dangerfile`:
danger-puppet_lint.report 'puppet.report'
You can also set a different project root if you need to
# Set a different project root
danger-puppet_lint.project_root = 'MyProject/NewRoot/'
## Development
1. Clone this repo
2. Run `bundle install` to setup dependencies.
3. Run `bundle exec rake spec` to run the tests.
4. Use `bundle exec guard` to automatically have tests run as you make changes.
5. Make your changes.