Skip to content

Commit f675dd2

Browse files
committed
Fix lint failures
1 parent feb6468 commit f675dd2

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

.rubocop.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ inherit_gem:
1010
inherit_from:
1111
.rubocop_todo.yml
1212

13-
require:
14-
- rubocop-rails
13+
plugins:
1514
- rubocop-performance
16-
- standard
1715
- standard-rails
1816
- standard-performance
1917

18+
require:
19+
- rubocop-rails
20+
- standard
21+
2022
AllCops:
2123
Exclude:
2224
- "vendor/**/*"

app/services/partners/update_family.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Partners
44
module UpdateFamily
55
extend ServiceObjectErrorsMixin
6-
# rubocop:disable Rails::SkipsModelValidations
6+
# rubocop:disable Rails/SkipsModelValidations
77
def self.archive(family)
88
if family.children.exists?
99
ActiveRecord::Base.transaction do
@@ -16,6 +16,6 @@ def self.archive(family)
1616
end
1717
self
1818
end
19-
# rubocop:enable Rails::SkipsModelValidations
19+
# rubocop:enable Rails/SkipsModelValidations
2020
end
2121
end

spec/services/organization_update_service_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@
9595
before do
9696
organization.update!(enable_individual_requests: false)
9797
# Want to have an invalid email on purpose
98-
# rubocop:disable Rails::SkipsModelValidations
98+
# rubocop:disable Rails/SkipsModelValidations
9999
partner_one.update_columns(email: "not/an_email")
100-
# rubocop:enable Rails::SkipsModelValidations
100+
# rubocop:enable Rails/SkipsModelValidations
101101
end
102102

103103
it "updates the organization and returns true" do
@@ -113,9 +113,9 @@
113113
before do
114114
organization.update!(enable_individual_requests: false)
115115
# Want to have an invalid email on purpose
116-
# rubocop:disable Rails::SkipsModelValidations
116+
# rubocop:disable Rails/SkipsModelValidations
117117
profile.update_columns(pick_up_email: "not/an/email")
118-
# rubocop:enable Rails::SkipsModelValidations
118+
# rubocop:enable Rails/SkipsModelValidations
119119
end
120120

121121
it "returns false" do

spec/services/partner_profile_update_service_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@
100100

101101
before do
102102
# Want to have an invalid email on purpose
103-
# rubocop:disable Rails::SkipsModelValidations
103+
# rubocop:disable Rails/SkipsModelValidations
104104
partner.update_columns(email: "not/an_email")
105-
# rubocop:enable Rails::SkipsModelValidations
105+
# rubocop:enable Rails/SkipsModelValidations
106106
end
107107

108108
it "returns failure" do

0 commit comments

Comments
 (0)