Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -D -E -S as rubocop options #137

Merged
merged 1 commit into from
May 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion moduleroot/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ require 'voxpupuli/release/rake_tasks'
require 'rubocop/rake_task'
require 'puppet-strings/rake_tasks'

RuboCop::RakeTask.new
RuboCop::RakeTask.new(:rubocop) do |task|
# only show the files with failures
task.formatters = ['files']
# don't abort rake on failure
task.fail_on_error = false
# These make the rubocop experience maybe slightly less terrible
task.options = ['-D', '-S', '-E']
end

PuppetLint.configuration.log_format = '%{path}:%{linenumber}:%{check}:%{KIND}:%{message}'
PuppetLint.configuration.fail_on_warnings = true
Expand Down