fix or suppress all lint warnings

This commit is contained in:
Joshua Hoblitt 2013-11-01 18:52:59 -07:00
parent e3b8452055
commit b6e9b1c693
3 changed files with 7 additions and 3 deletions

View file

@ -1,2 +1,6 @@
require 'puppetlabs_spec_helper/rake_tasks'
require 'rspec-system/rake_task'
require 'puppet-lint/tasks/puppet-lint'
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_quoted_booleans')

View file

@ -103,7 +103,7 @@ define concat(
$use_warn_message = undef
}
$warnmsg_escaped = regsubst($use_warn_message, "'", "'\\\\''", 'G')
$warnmsg_escaped = regsubst($use_warn_message, '\'', '\'\\\'\'', 'G')
$warnflag = $warnmsg_escaped ? {
'' => '',
default => "-w '${warnmsg_escaped}'"

View file

@ -21,8 +21,8 @@ class concat::setup {
}
$script_name = $::kernel ? {
'windows' => "concatfragments.rb",
default => "concatfragments.sh"
'windows' => 'concatfragments.rb',
default => 'concatfragments.sh'
}
$script_path = "${concatdir}/bin/${script_name}"