summaryrefslogtreecommitdiff
path: root/Rakefile
blob: f0f08fcc1f478e881263f8bd02e4e74a77a5d7b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'

Rake::Task[:lint].clear
PuppetLint::RakeTask.new :lint do |config|
  config.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"]
  config.disable_checks = ['80chars']
  config.fail_on_warnings = true
end

PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"]

desc "Lint metadata.json file"
task :metadata do
  sh "metadata-json-lint metadata.json"
end