Skip to content

Commit 209b91e

Browse files
committed
Add rubocop rake task
1 parent 2cd4a5c commit 209b91e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ namespace :spec do
2323
end
2424
end
2525

26+
require 'rubocop/rake_task'
27+
RuboCop::RakeTask.new
28+
2629
require 'rdoc/task'
2730
Rake::RDocTask.new do |rdoc|
2831
version = File.exist?('VERSION') ? File.read('VERSION') : ""
@@ -33,7 +36,7 @@ Rake::RDocTask.new do |rdoc|
3336
rdoc.rdoc_files.include('lib/**/*.rb')
3437
end
3538

36-
task :default => :spec
39+
task :default => [:spec, :rubocop]
3740

3841
task :fix_permissions do
3942
File.umask 0022

0 commit comments

Comments
 (0)