https://github.com/petems/puppet-doc-lint
Check your puppet files for RDoc coverage
https://github.com/petems/puppet-doc-lint
Last synced: 3 months ago
JSON representation
Check your puppet files for RDoc coverage
- Host: GitHub
- URL: https://github.com/petems/puppet-doc-lint
- Owner: petems
- License: mit
- Created: 2014-02-07T16:45:45.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-23T13:37:34.000Z (over 9 years ago)
- Last Synced: 2025-04-23T03:15:55.648Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 329 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# DEPRECATED
This is now deprecated in favour of [Puppet Strings](https://github.com/puppetlabs/puppetlabs-strings)
# puppet-doc-lint
Lint your Puppet files for RDoc coverage
This project is heavily based on the [puppet-parse](https://github.com/johanek/puppet-parse) code base, go check it out! :smile:
## Assumptions
This assumes that you're formatting your documentation in Puppet with [RDoc formatting](http://rdoc.sourceforge.net/doc/).
For example _this_ will work:
```Rdoc
# == Class: foo
#
# This module manages foo
#
# === Parameters
#
# [*ensure*]
# Controls presence of package and stuff
#
# === Authors
#
# * Jane Doe
#
```_This_ will not:
```
# Class: foo
#
# This module manages foo
#
# Parameters:
# - $ensure
#
# Authors: Jane Doe
#
```## Installation
gem install puppet-doc-lint
## Usage
### By hand
You can report on one or more manifests by running
puppet-doc-lint
For example:
```
puppet-doc-lint ~/Projects/puppetlabs-firewall/manifests/linux/debian.pp
class firewall::linux::debian Parameters are ["ensure", "enable"]
class firewall::linux::debian Docs found are ["ensure", "enable"]
```### Rake task
** Currrently broken maybe? **
If you want to parse your entire modules directory, you can add
`require 'puppet-doc-lint/rake-task' to your Rakefile and then runrake parse
If you need to ignore certain paths from being parsed:
``` ruby
PuppetDocLint.configuration.ignore_paths = ["vendor/**/*.pp"]
```## Contributing
You can do any of these:
1. Create new Pull Request
2. Create an issue
3. Write me an email
4. Complain about how useless my code is on twitter