Sha256: db6936d530c4139945162bd31177de9c60eab5cface502ccc43fa6b9fa130315
Contents?: true
Size: 537 Bytes
Versions: 4
Compression:
Stored size: 537 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(['--auto-correct']) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-marc-spec-0.1.3 | rakelib/rubocop.rake |
ruby-marc-spec-0.1.2 | rakelib/rubocop.rake |
ruby-marc-spec-0.1.1 | rakelib/rubocop.rake |
ruby-marc-spec-0.1.0 | rakelib/rubocop.rake |