add robocop

This commit is contained in:
Christoph Hartmann 2015-09-03 19:25:43 +02:00
parent 6a00ce8ebe
commit 48dc86b3af
2 changed files with 17 additions and 1 deletions

View file

@ -1,5 +1,20 @@
require 'rake/testtask'
#!/usr/bin/env rake
# encoding: utf-8
require 'rake/testtask'
require 'rubocop/rake_task'
# Rubocop
desc 'Run Rubocop lint checks'
task :rubocop do
RuboCop::RakeTask.new
end
# lint the project
desc 'Run robocop linter'
task lint: [:rubocop]
# run tests
task :default => :test
Rake::TestTask.new do |t|
t.libs << 'test'

View file

@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rspec", "~> 3.3"
spec.add_development_dependency "rake", "~> 10"
spec.add_development_dependency "pry", "~> 0.10"
spec.add_development_dependency 'rubocop', '~> 0.33.0'
spec.add_dependency 'thor', '~> 0.19'
spec.add_dependency 'json', '~> 1.8'