0 Examples, 0 Failures

This commit is contained in:
Nate Riffe
2014-12-14 07:13:39 -06:00
parent 11fbd51d21
commit bf7f5f93fc
3 changed files with 22 additions and 9 deletions
+15 -9
View File
@@ -1,15 +1,21 @@
# ex: syntax=ruby ts=2 ts=2 si et
require 'puppet-lint/tasks/puppet-lint'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new :spec do |t|
t.pattern = 'spec/*/*_spec.rb'
end
Rake::Task[:lint].clear
PuppetLint::RakeTask.new :lint do |config|
config.fail_on_warnings
config.ignore_paths = [ 'pkg/**/*.pp' ]
config.disable_checks = [
'80chars',
'class_parameter_defaults',
'documentation',
'autoloader_layout'
]
config.fail_on_warnings
config.ignore_paths = [ 'pkg/**/*', 'spec/**/*' ]
config.disable_checks = [
'80chars',
'class_parameter_defaults',
'documentation',
'autoloader_layout'
]
end
task :default => [ :lint ]
task :default => [ :spec, :lint ]