fix or suppress all lint warnings
This commit is contained in:
parent
e3b8452055
commit
b6e9b1c693
3 changed files with 7 additions and 3 deletions
4
Rakefile
4
Rakefile
|
@ -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')
|
||||
|
|
|
@ -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}'"
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue