Skip to content

Commit ab9781e

Browse files
authored
Make rubocop pass (#5946)
1 parent b8cc2d3 commit ab9781e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.rubocop.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Metrics/ClassLength:
7373
# A calculated magnitude based on number of assignments,
7474
# branches, and conditions.
7575
Metrics/AbcSize:
76-
Max: 85
76+
Max: 90
7777

7878
Metrics/ParameterLists:
7979
CountKeywordArgs: false
@@ -82,10 +82,10 @@ RSpec/AnyInstance:
8282
Enabled: false
8383

8484
Metrics/CyclomaticComplexity:
85-
Max: 18
85+
Max: 20
8686

8787
Metrics/PerceivedComplexity:
88-
Max: 18
88+
Max: 20
8989

9090
Rails/Exit:
9191
Exclude:

app/services/permissions_checker.rb

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
# frozen_string_literal: true
1818

19-
# rubocop:disable Metrics/CyclomaticComplexity
2019
class PermissionsChecker
2120
def initialize(current_user:, permission_names:, current_provider:, user_id: nil, friendly_id: nil, record_id: nil)
2221
@current_user = current_user
@@ -152,4 +151,3 @@ def current_provider_check
152151
true
153152
end
154153
end
155-
# rubocop:enable Metrics/CyclomaticComplexity

0 commit comments

Comments
 (0)