No release in over a year
A check for puppet-lint that validates no anchor resources are used
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3, < 5
 Project Readme

puppet-lint-anchor-check

License Test codecov Release RubyGem Version RubyGem Downloads Donated by Alexander Fisher

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

Installing

From the command line

$ gem install puppet-lint-anchor-check

In a Gemfile

gem 'puppet-lint-anchor-check', :require => false

Checks

anchor resource use

The anchor pattern should be replaced with the contain function.

What you have done

anchor { 'foo::begin': }
-> class { 'foo::install': }
-> class { 'foo::config': }
~> class { 'foo::service': }
-> anchor { 'foo::end': }

What you should have done

contain 'foo::install'
contain 'foo::config'
contain 'foo::service'

Class['foo::install']
-> Class['foo::config']
~> Class['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.

Release information

To make a new release, please do:

  • update the version in the gemspec file
  • Install gems with bundle install --with release --path .vendor
  • generate the changelog with bundle exec rake changelog
  • Check if the new version matches the closed issues/PRs in the changelog
  • Create a PR with it
  • After it got merged, push a tag. GitHub actions will do the actual release to rubygems and GitHub Packages