Sha256: b680c3cd767dc943b609ee730df8db6f19f9e8cb92e36653ac38e51b2e41986c

Contents?: true

Size: 358 Bytes

Versions: 10

Compression:

Stored size: 358 Bytes

Contents

require 'rubocop'
require 'rubocop/rake_task'

desc 'Run RuboCop'
RuboCop::RakeTask.new(:rubocop) do |cop|
  next unless ENV['GENERATE_REPORTS']

  output = ENV['RUBOCOP_OUTPUT'] || 'artifacts/rubocop/index.html'
  puts "Writing RuboCop inspection report to #{output}"

  cop.verbose = false
  cop.formatters = ['html']
  cop.options = ['--out', output]
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
berkeley_library-logging-0.2.7 rakelib/rubocop.rake
berkeley_library-logging-0.2.6.2 rakelib/rubocop.rake
berkeley_library-logging-0.2.6.1 rakelib/rubocop.rake
berkeley_library-logging-0.2.6 rakelib/rubocop.rake
berkeley_library-logging-0.2.5 rakelib/rubocop.rake
berkeley_library-logging-0.2.4 rakelib/rubocop.rake
berkeley_library-logging-0.2.3 rakelib/rubocop.rake
berkeley_library-logging-0.2.2 rakelib/rubocop.rake
berkeley_library-logging-0.2.1 rakelib/rubocop.rake
berkeley_library-logging-0.2.0 rakelib/rubocop.rake