puppet-lint-4.3.0/0000755000004100000410000000000014762674414014046 5ustar www-datawww-datapuppet-lint-4.3.0/bin/0000755000004100000410000000000014762674414014616 5ustar www-datawww-datapuppet-lint-4.3.0/bin/puppet-lint0000755000004100000410000000022314762674414017022 0ustar www-datawww-data#!/usr/bin/env ruby $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'puppet-lint' exit PuppetLint::Bin.new(ARGV).run puppet-lint-4.3.0/lib/0000755000004100000410000000000014762674414014614 5ustar www-datawww-datapuppet-lint-4.3.0/lib/puppet-lint/0000755000004100000410000000000014762674414017075 5ustar www-datawww-datapuppet-lint-4.3.0/lib/puppet-lint/configuration.rb0000644000004100000410000000737614762674414022306 0ustar www-datawww-data# Public: A singleton class to store the running configuration of # puppet-lint. class PuppetLint::Configuration # Internal: Add helper methods for a new check to the # PuppetLint::Configuration object. # # check - The String name of the check. # # Returns nothing. # # Signature # # _enabled? # disable_ # enable_ def self.add_check(check) # Public: Determine if the named check is enabled. # # Returns true if the check is enabled, otherwise return false. define_method(:"#{check}_enabled?") do settings["#{check}_disabled"] != true end # Public: Disable the named check. # # Returns nothing. define_method(:"disable_#{check}") do settings["#{check}_disabled"] = true end # Public: Enable the named check. # # Returns nothing. define_method(:"enable_#{check}") do settings["#{check}_disabled"] = false end end # Public: Catch situations where options are being set for the first time # and create the necessary methods to get & set the option in the future. # # args - An Array of values to set the option to. # method - The String name of the option. # block - Unused. # # Returns nothing. # # Signature # #