2 require 'puppetlabs_spec_helper/rake_tasks'
3 require 'puppet-lint/tasks/puppet-lint'
4 PuppetLint.configuration.send('disable_80chars')
5 PuppetLint.configuration.relative = true
6 PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"]
8 desc "Run puppet in noop mode and check for syntax errors."
10 Dir['manifests/**/*.pp'].each do |manifest|
11 sh "puppet parser validate --noop #{manifest}"
13 Dir['spec/**/*.rb','lib/**/*.rb'].each do |ruby_file|
14 sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/
16 Dir['templates/**/*.erb'].each do |template|
17 sh "erb -P -x -T '-' #{template} | ruby -c"