diff --git a/Rakefile b/Rakefile index 2995527..e4e1c91 100644 --- a/Rakefile +++ b/Rakefile @@ -1 +1,8 @@ require "bundler/gem_tasks" + +task default: [:lint] + +task lint: [:rubocop] + +require 'rubocop/rake_task' +RuboCop::RakeTask.new diff --git a/lita-tox.gemspec b/lita-tox.gemspec index 80687d9..84e60bc 100644 --- a/lita-tox.gemspec +++ b/lita-tox.gemspec @@ -21,4 +21,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler", "~> 1.10" spec.add_development_dependency "rake", "~> 10.0" + spec.add_development_dependency "rubocop", "~> 0.31" end