mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-20 14:26:57 -06:00
Add rubocop task to Rakefile
This commit is contained in:
parent
d3ba0471e0
commit
2148e6d43a
1 changed files with 7 additions and 1 deletions
8
Rakefile
8
Rakefile
|
|
@ -1,5 +1,6 @@
|
|||
require 'rake/testtask'
|
||||
require 'rspec/core/rake_task'
|
||||
require 'rubocop/rake_task'
|
||||
|
||||
Rake::TestTask.new do |t|
|
||||
t.name = 'minitest'
|
||||
|
|
@ -9,8 +10,13 @@ end
|
|||
|
||||
RSpec::Core::RakeTask.new(:spec)
|
||||
|
||||
RuboCop::RakeTask.new do |t|
|
||||
t.name = 'rubocop'
|
||||
t.options = ['--force-exclusion']
|
||||
end
|
||||
|
||||
task :test => [:minitest, :spec]
|
||||
task :default => :test
|
||||
task :default => [:test, :rubocop]
|
||||
|
||||
task :console do
|
||||
sh 'irb -Ilib -rvendor/homebrew-fork/global -rhbc'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue