Sha256: 2ecffb8267978b5a211b0c28bae4d407c4a37fcbd885df1b7a968b5489ff587e

Contents?: true

Size: 542 Bytes

Versions: 36

Compression:

Stored size: 542 Bytes

Contents

require 'rubocop'
require 'rubocop/rake_task'

desc 'Run rubocop with HTML output'
RuboCop::RakeTask.new(:rubocop) do |cop|
  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

desc 'Run RuboCop with auto-correct, and output results to console'
task :ra do
  # b/c we want console output, we can't just use `rubocop:auto_correct`
  RuboCop::CLI.new.run(['--safe-auto-correct'])
end

Version data entries

36 entries across 36 versions & 6 rubygems

Version Path
berkeley_library-av-core-0.4.2 rakelib/rubocop.rake
berkeley_library-tind-0.7.2 rakelib/rubocop.rake
berkeley_library-util-0.1.9 rakelib/rubocop.rake
berkeley_library-util-0.1.8 rakelib/rubocop.rake
berkeley_library-util-0.1.7 rakelib/rubocop.rake
berkeley_library-util-0.1.6 rakelib/rubocop.rake
berkeley_library-av-core-0.4.1 rakelib/rubocop.rake
berkeley_library-tind-0.7.1 rakelib/rubocop.rake
berkeley_library-av-core-0.4.0 rakelib/rubocop.rake
typesafe_enum-0.3.1 rakelib/rubocop.rake
berkeley_library-tind-0.7.0 rakelib/rubocop.rake
berkeley_library-util-0.1.5 rakelib/rubocop.rake
berkeley_library-util-0.1.4 rakelib/rubocop.rake
berkeley_library-alma-0.0.7.1 rakelib/rubocop.rake
berkeley_library-util-0.1.3 rakelib/rubocop.rake
berkeley_library-alma-0.0.7 rakelib/rubocop.rake
berkeley_library-alma-0.0.6 rakelib/rubocop.rake
berkeley_library-util-0.1.2 rakelib/rubocop.rake
berkeley_library-alma-0.0.5 rakelib/rubocop.rake
berkeley_library-tind-0.6.0 rakelib/rubocop.rake