Skip to content

Commit 1aaa1db

Browse files
committed
Rubocop rake task
1 parent d2e1857 commit 1aaa1db

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ios_tests/Rakefile

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'rubygems'
22
require 'rake'
3+
require 'rubocop/rake_task'
34

45
task :default => :ios
56

@@ -45,3 +46,10 @@ desc 'Run bundle install'
4546
task :install do
4647
sh 'bundle install'
4748
end
49+
50+
desc 'Execute RuboCop static code analysis'
51+
RuboCop::RakeTask.new(:rubocop) do |t|
52+
t.patterns = %w(lib upload)
53+
t.options = %w(-D)
54+
t.fail_on_error = false
55+
end

0 commit comments

Comments
 (0)