Rakefile in otp-0.0.10 vs Rakefile in otp-0.0.11
- old
+ new
@@ -4,6 +4,11 @@
Rake::TestTask.new(:test) do |test|
test.pattern = "test/**/test_*.rb"
test.verbose = true
end
-task :default => :test
+desc "Run rubocop"
+task :rubocop do
+ sh "rubocop lib -f html -o rubocop.html"
+end
+
+task :default => [:test, :rubocop]