No commit activity in last 3 years
No release in over 3 years
A puppet-lint plugin to check that code in manifests have spaces after each comma except in end of line.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

puppet-lint plugin to check for lack of space after a comma in manifets

Note, this is code is a simple proof-of-concept code based on the puppet-lint plugin development tutorial.

Installation

To use this plugin, add the following like to the Gemfile in your Puppet code base and run bundle install.

gem 'puppet-lint-space_after_comma-check'

Usage

This plugin provides a new check to puppet-lint.

space_after_comma

This check will raise a warning for any files that don't have space after comma except at the end of line and after semi-column (;). According to puppet style guide, semi-column is accepted after comma in the cases when multiple resources in one block is used. For example in the File definition: https://docs.puppet.com/puppet/4.9/style_guide.html#multiple-resources

WARNING: expected space after comma on line 56