Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

puppet-lint-array_formatting-check

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppet-lint-array_formatting-check

  • 0.11.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

puppet-lint array formatting check

Gem Version

A new check for puppet-lint that ensures array formatting conforms to the Puppet Style Guide on arrays; namely that each element should be on a separate line.

It will take an array formatted as

$packages = [ 'vim', 'sl', 'bind-utils', ]

and ensure that it's formatted as

$packages = [
  'vim',
  'sl',
  'bind-utils',
]

In the name of readability, it'll ignore arrays with one element.

$my_short_package_list = [ 'emacs', ] 

Installation

To use this plugin, add the following line to your Gemfile

gem 'puppet-lint-array_formatting-check'

and then run bundle install.

You can also install it at a user level using

gem install --user-install puppet-lint-array_formatting-check

or at a system level using

sudo gem install puppet-lint-array_formatting-check

Usage

This plugin provides a new check to puppet-lint.

array-formatting

--fix support: Yes

This check will raise warnings for every element in an array that should be on its own line

WARNING: expected newline before element on line 3

It will also raise warnings on extra (unnecessary) newlines in arrays

WARNING: unexpected newline on line 4

Author

Adam Manzer

FAQs

Package last updated on 12 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc