forked from bstopp/puppet-aem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
33 lines (28 loc) · 906 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-syntax/tasks/puppet-syntax'
require 'rubocop/rake_task'
exclude_paths = [
'spec/fixtures/**/*',
'vendor/**/*',
'pkg/**/*'
]
task :default => [:spec, :lint, :rubocop]
PuppetLint.configuration.fail_on_warnings = true
PuppetLint.configuration.send('relative')
PuppetLint.configuration.send('disable_80chars')
#PuppetLint.configuration.send('disable_documentation')
PuppetLint.configuration.send('disable_variable_scope')
#PuppetLint.configuration.send('disable_single_quote_string_with_variables')
PuppetLint.configuration.ignore_paths = exclude_paths
PuppetSyntax.exclude_paths = exclude_paths
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = [
'lib/**/*.rb',
'spec/acceptance/**/*.rb',
'spec/classes/**/*.rb',
'spec/defines/**/*.rb',
'spec/files/**/*.rb',
'spec/unit/**/*.rb',
'spec/*.rb'
]
end