voxpupuli/puppet-lint-anchor-check

Name: puppet-lint-anchor-check

Owner: Vox Pupuli

Description: Puppet-lint plugin to check for anchor resources

Created: 2017-09-07 10:21:53.0

Updated: 2017-09-07 10:42:41.0

Pushed: 2017-09-09 10:33:42.0

Homepage:

Size: 10

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

puppet-lint-anchor-check

Build Status Gem Version Gem Downloads Coverage Status Dependency Status

A puppet-lint plugin to check that anchor resources are unused.

Installing
From the command line
m install puppet-lint-anchor-check
In a Gemfile
'puppet-lint-anchor-check', :require => false
Checks
anchor resource use

The anchor pattern should be replaced with the contain function.

What you have done
or { 'foo::begin': }
lass { 'foo::install': }
lass { 'foo::config': }
lass { 'foo::service': }
nchor { 'foo::end': }
What you should have done
ain 'foo::install'
ain 'foo::config'
ain 'foo::service'

s['foo::install']
lass['foo::config']
lass['foo::service']

Copyright

Copyright 2017 Alexander Fisher

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.