Skip to content

Commit 38d0f9d

Browse files
committed
Update target rubocop version
1 parent 52f4a2a commit 38d0f9d

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
ruby_version: '2.7'
3737
steps: ['setup', 'solidusio_extensions/run-tests-solidus-older']
3838
lint-code:
39-
executor: solidusio_extensions/sqlite
39+
executor:
40+
name: solidusio_extensions/sqlite
41+
ruby_version: '3.0'
4042
steps: ['setup', 'solidusio_extensions/lint-code']
4143

4244
workflows:

.rubocop.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
inherit_from:
22
- https://relaxed.ruby.style/rubocop.yml
33

4+
Gemspec/RequiredRubyVersion:
5+
Enabled: false
46
Layout/EmptyLinesAroundAttributeAccessor:
57
Enabled: true
68
Layout/SpaceAroundMethodCallOperator:
@@ -42,7 +44,7 @@ Gemspec/DeprecatedAttributeAssignment:
4244
Enabled: false
4345

4446
AllCops:
45-
TargetRubyVersion: 2.5
47+
TargetRubyVersion: 3.0
4648
Exclude:
4749
- tmp/**/*
4850
- "vendor/**/*"
@@ -55,4 +57,3 @@ Style/FrozenStringLiteralComment:
5557
- "**/bin/*"
5658
- "**/exe/*"
5759
- "spec/**/*"
58-

lib/solidus_dev_support/rubocop.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module SolidusDevSupport
44
module RuboCop
5-
CONFIG_PATH = "#{__dir__}/rubocop/config.yml"
5+
CONFIG_PATH = "#{__dir__}/rubocop/config.yml".freeze
66

77
def self.inject_defaults!
88
config = ::RuboCop::ConfigLoader.load_file(CONFIG_PATH)

spec/features/create_extension_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def sh(*args)
162162
if $DEBUG || ENV['DEBUG']
163163
warn '~' * 80
164164
warn "$ #{command}"
165-
warn output.to_s
165+
warn output
166166
warn "$ #{command} ~~~~> EXIT STATUS: #{status.exitstatus}"
167167
end
168168

0 commit comments

Comments
 (0)