Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
testing
puppet-icinga2_testing
Commits
b640ba7f
Commit
b640ba7f
authored
Dec 09, 2016
by
Markus Frosch
📣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rakefile: Define Rubocop task
parent
9e77346b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Rakefile
Rakefile
+3
-1
No files found.
Rakefile
View file @
b640ba7f
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)
RuboCop
::
RakeTask
.
new
# Alternative configuration until https://github.com/rodjek/puppet-lint/pull/397 gets merged
Rake
::
Task
[
:lint
].
clear
...
...
@@ -13,4 +15,4 @@ PuppetLint::RakeTask.new :lint do |config|
config
.
ignore_paths
=
PuppetLint
.
configuration
.
ignore_paths
end
task
:
all
=>
[
:validate
,
:lint
,
:spec
,
:rubocop
]
task
all
:
[
:validate
,
:lint
,
:spec
,
:rubocop
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment