Skip to content

Commit 185309a

Browse files
committed
Upgrade Rubocop to 0.25.0 for Travis builds
Change-Id: I556b5ad4c9d92f2d1c21f04648930a01b353a942 Reviewed-on: http://gerrit.causes.com/42207 Tested-by: jenkins <jenkins@causes.com> Reviewed-by: Shane da Silva <shane.dasilva@brigade.com>
1 parent 0894465 commit 185309a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/overcommit/hook/pre_commit/rails_schema_up_to_date.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Overcommit::Hook::PreCommit
22
# Check to see whether the schema file is in line with the migrations
33
class RailsSchemaUpToDate < Base
4-
def run # rubocop:disable CyclomaticComplexity
4+
def run # rubocop:disable CyclomaticComplexity, PerceivedComplexity
55
if migration_files.any? && schema_files.none?
66
return :fail, "It looks like you're adding a migration, but did not update the schema file"
77
elsif migration_files.none? && schema_files.any?

overcommit.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ Gem::Specification.new do |s|
3030

3131
s.add_development_dependency 'image_optim', '~> 0.14.0'
3232
s.add_development_dependency 'rspec', '~> 3.0'
33-
s.add_development_dependency 'rubocop', '0.24.1' # Pin for Travis builds
33+
s.add_development_dependency 'rubocop', '0.25.0' # Pin for Travis builds
3434
end

0 commit comments

Comments
 (0)