Commit 18ee731d authored by Markus Frosch's avatar Markus Frosch
Browse files

Rakefile: Define Rubocop task

parent 334b777f
Pipeline #183 passed with stage
in 34 seconds
require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
require 'rubocop/rake_task'
ENV['SPEC_OPTS'] = '--format documentation' unless ENV['SPEC_OPTS']
PuppetSyntax.exclude_paths = ['vendor/**/*.*']
PuppetLint.configuration.ignore_paths = %w(spec/**/*.pp pkg/**/*.pp vendor/**/*.pp)
# Alternative configuration until gets merged
......@@ -13,4 +15,4 @@ :lint do |config|
config.ignore_paths = PuppetLint.configuration.ignore_paths
task :all => [:validate, :lint, :spec, :rubocop]
task all: [:validate, :lint, :spec, :rubocop]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment