Skip to content

Commit 502bcf4

Browse files
committed
Add RuboCop rake tasks.
1 parent 03e06dd commit 502bcf4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
require "bundler/gem_tasks"
44
require "rake/testtask"
5+
require "rubocop/rake_task"
56

67
Rake::TestTask.new do |t|
78
t.libs << "lib"
89
t.libs << "test"
910
t.pattern = "test/**/*_test.rb"
1011
end
1112

12-
task default: :test
13+
RuboCop::RakeTask.new
14+
15+
task default: %i[rubocop test]

0 commit comments

Comments
 (0)