Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
goodviber committed Nov 8, 2024
1 parent cb51edb commit 9f9d41d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
name: Run rubocop
strategy:
matrix:
ruby-version: ['3.1']
ruby-version: ['3.2']
env:
BUNDLE_WITHOUT: release
steps:
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Style/EachWithObject:
Enabled: false

AllCops:
TargetRubyVersion: 3.1
TargetRubyVersion: 3.2
StyleGuide:
Enabled: true
EnforcedStyle: gemspec
Expand Down
8 changes: 4 additions & 4 deletions lib/dfe/analytics/testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ def webmock?
@test_mode == :webmock
end

def fake!(&block)
switch_test_mode(:fake, &block)
def fake!(&)
switch_test_mode(:fake, &)
end

def webmock!(&block)
switch_test_mode(:webmock, &block)
def webmock!(&)
switch_test_mode(:webmock, &)
end

private
Expand Down
2 changes: 1 addition & 1 deletion spec/dfe/analytics_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@

before do
allow(described_class.config).to receive(:user_identifier)
.and_return(->(user) { user.identifier })
.and_return(lambda(&:identifier))
end

it 'delegates to the provided proc' do
Expand Down
1 change: 1 addition & 0 deletions spec/dummy/config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# Be sure to restart your server when you modify this file.

# Define an application-wide content security policy
Expand Down
1 change: 1 addition & 0 deletions spec/dummy/config/initializers/inflections.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# Be sure to restart your server when you modify this file.

# Add new inflection rules using the following format. Inflections
Expand Down
1 change: 1 addition & 0 deletions spec/dummy/config/initializers/permissions_policy.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# Define an application-wide HTTP permissions policy. For further
# information see https://developers.google.com/web/updates/2018/06/feature-policy
#
Expand Down

0 comments on commit 9f9d41d

Please sign in to comment.