Skip to content

syseleven/puppet-lint-absolute_classname-check

 
 

Repository files navigation

puppet-lint-absolute_classname-check

Build Status Gem Version Gem Downloads Coverage Status Gemnasium Donated by Camptocamp

A puppet-lint plugin to check that classes are included by their absolute name.

Installing

From the command line

$ gem install puppet-lint-absolute_classname-check

In a Gemfile

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

Checks

Relative class name inclusion

Including a class by a relative name might lead to unexpected results in Puppet 3. This plugin is not recommended for use with Puppet code that has dropped support for Puppet 3 (EOL 20161231).

What you have done

include foobar

What you should have done

include ::foobar

Disabling the check

To disable this check, you can add --no-relative_classname_inclusion-check to your puppet-lint command line.

$ puppet-lint --no-relative_classname_inclusion-check path/to/file.pp

Alternatively, if you’re calling puppet-lint via the Rake task, you should insert the following line to your Rakefile.

PuppetLint.configuration.send('disable_relative_classname_inclusion')

Transfer Notice

This plugin was originally authored by Camptocamp. The maintainer preferred that Puppet Community take ownership of the module for future improvement and maintenance. Existing pull requests and issues were transferred over, please fork and continue to contribute here instead of Camptocamp.

Previously: https://github.com/camptocamp/puppet-lint-absolute_classname-check

About

Puppet-lint plugin to check relative class name inclusions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%