Class PuppetLint::Checks
In: lib/puppet-lint/checks.rb
Parent: Object

Internal: Various methods that orchestrate the actions of the puppet-lint check plugins.

Methods

enabled_checks   load_data   manifest   new   run  

Attributes

problems  [RW]  Public: Get an Array of problem Hashes.

Public Class methods

Public: Initialise a new PuppetLint::Checks object.

Public Instance methods

Internal: Get a list of checks that have not been disabled.

Returns an Array of String check names.

Internal: Tokenise the manifest code and prepare it for checking.

path - The path to the file as passed to puppet-lint as a String. content - The String manifest code to be checked.

Returns nothing.

Internal: Render the fixed manifest.

Returns the manifest as a String.

Internal: Run the lint checks over the manifest code.

fileinfo - A Hash containing the following:

  :fullpath - The expanded path to the file as a String.
  :filename - The name of the file as a String.
  :path     - The original path to the file as passed to puppet-lint as
              a String.

data - The String manifest code to be checked.

Returns an Array of problem Hashes.

[Validate]