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