mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
add robocop
This commit is contained in:
parent
6a00ce8ebe
commit
48dc86b3af
2 changed files with 17 additions and 1 deletions
17
Rakefile
17
Rakefile
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue