Skip to content

Commit bb9c0a4

Browse files
Copilota-schur
andcommitted
Fix linter issues: use parentheses for %w literals
Co-authored-by: a-schur <227858738+a-schur@users.noreply.github.com>
1 parent 2723b34 commit bb9c0a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

updater/lib/dependabot/dependency_group_engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ConfigurationError < StandardError; end
2727

2828
# Package managers that support the dependency-type option in group rules
2929
PACKAGE_MANAGERS_SUPPORTING_DEPENDENCY_TYPE = T.let(
30-
%w[bundler composer hex maven npm_and_yarn pip uv].freeze,
30+
%w(bundler composer hex maven npm_and_yarn pip uv).freeze,
3131
T::Array[String]
3232
)
3333

updater/spec/dependabot/dependency_group_engine_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@
494494
end
495495

496496
context "when dependency-type is used with a supported package manager" do
497-
%w[bundler composer hex maven npm_and_yarn pip uv].each do |package_manager|
497+
%w(bundler composer hex maven npm_and_yarn pip uv).each do |package_manager|
498498
context "with #{package_manager}" do
499499
let(:job) do
500500
instance_double(
@@ -515,7 +515,7 @@
515515
end
516516

517517
context "when dependency-type is used with an unsupported package manager" do
518-
%w[gradle go_modules cargo docker terraform].each do |package_manager|
518+
%w(gradle go_modules cargo docker terraform).each do |package_manager|
519519
context "with #{package_manager}" do
520520
let(:job) do
521521
instance_double(

0 commit comments

Comments
 (0)