Skip to content

Commit 211d619

Browse files
committed
Rubocop fixes
1 parent a8ee1a8 commit 211d619

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

app/models/better_together/geography/locatable_location.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,9 @@ def location_attributes=(attrs) # rubocop:todo Metrics/CyclomaticComplexity, Met
6868
validate :at_least_one_location_source, unless: :marked_for_destruction?
6969

7070
def self.permitted_attributes(id: false, destroy: false) # rubocop:todo Metrics/MethodLength
71-
# rubocop:todo Layout/LineLength
7271
super + %i[
7372
name locatable_id locatable_type location_id location_type
7473
] + [
75-
# rubocop:enable Layout/LineLength
7674
{
7775
# Permit nested attributes for either Address or Building. We merge
7876
# both permitted attribute lists so the params hash allows keys for

app/policies/better_together/address_policy.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ class AddressPolicy < ContactDetailPolicy
55
# Inherits from ContactDetailPolicy
66

77
class Scope < ContactDetailPolicy::Scope # rubocop:todo Style/Documentation
8-
# rubocop:todo Lint/CopDirectiveSyntax
98
def resolve # rubocop:todo Metrics/AbcSize, Metrics/MethodLength
10-
# rubocop:enable Lint/CopDirectiveSyntax
119
base_scope = scope.includes(:contact_detail)
1210

1311
# Build a scope that filters out addresses with no meaningful address components

spec/support/better_together/capybara_feature_helpers.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ def capybara_login_as_user
4646
# rubocop:todo Metrics/AbcSize
4747
def capybara_sign_in_user(email, password) # rubocop:todo Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/MethodLength, Metrics/PerceivedComplexity
4848
# If we've already signed in this user in the current session, skip re-authentication.
49-
# rubocop:todo Layout/LineLength
50-
if defined?(@capybara_signed_in_user_email) && @capybara_signed_in_user_email == email && (page.has_selector?('#user-nav') || page.has_link?('Log Out') || page.has_content?(email))
51-
# rubocop:enable Layout/LineLength
49+
if defined?(@capybara_signed_in_user_email) && @capybara_signed_in_user_email == email && (page.has_selector?('#user-nav') || page.has_link?('Log Out') || page.has_content?(email)) # rubocop:disable Layout/LineLength
5250
# double-check UI shows a signed-in user to avoid stale memo
5351
return
5452
end

0 commit comments

Comments
 (0)