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

puppet-lint-module_reference-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-module_reference-check

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Puppet lint module reference check

This checks whether used modules are properly referenced in the comments by these rules:

  • All internal prefixed with profile:: or role:: based on the Puppet role/profile concept) modules have to be referenced using a @see tag
  • All component modules have to be referenced like the following
    • All used classes and defined types need to be gathered in a comma-separated list of regexps in a @ref tag
    • The full module name (vendor-module) has to be referenced in a @note tag
    • At minimum one @see tag with a reference to the puppet forge page of the component module
    • Example:
      # @ref apache.*,a2mod
      # @note puppetlabs-apache
      # @see https://forge.puppet.com/modules/puppetlabs/apache
      
  • Modules referenced by features (using our own role::include_features function) have to be referenced with @see
  • The module references have to be sorted alphabetically and grouped by this:
    • component module
    • internal modules
    • modules referenced by features

Note: This check can only detect component module usage with the class and include keywords, but supports reference comments to undetectable components modules as well.

Usage

To use the plugin, add the following line to the Gemfile:

gem 'puppet-lint-module_reference-check'

FAQs

Package last updated on 03 Jun 2022

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