voxpupuli/puppet-lint-classes_and_types_beginning_with_digits-check

Name: puppet-lint-classes_and_types_beginning_with_digits-check

Owner: Vox Pupuli

Description: A puppet-lint plugin to check for types and class names that begin with digits.

Created: 2015-03-12 17:57:32.0

Updated: 2016-06-22 14:10:48.0

Pushed: 2016-06-22 20:41:54.0

Homepage: null

Size: 15

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

puppet-lint-classes_and_types_beginning_with_digits-check

Build Status Gem Version Gem Downloads Coverage Status Gemnasium

A puppet-lint plugin to check for types and class names that begin with digits.

Installing
From the command line
m install puppet-lint-classes_and_types_beginning_with_digits-check
In a Gemfile
'puppet-lint-classes_and_types_beginning_with_digits-check', :require => false
Checks
Classes that begin with digits

In the future parser/Puppet 4.0.0 and higher, defined resource types and class names cannot begin with digits.

What you have done
s 10apache {}
What you should have done
s apache {}
Disabling the check

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

ppet-lint --no-classes_and_types_beginning_with_digits-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.

etLint.configuration.send('classes_and_types_beginning_with_digits')

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.