Skip to content

Commit cfcc0c5

Browse files
authored
Relax Rubocop Dependency (#8831)
Merge pull request 8831
1 parent 8d324d9 commit cfcc0c5

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ group :test do
2323
gem "nokogiri", "~> 1.7"
2424
gem "rspec"
2525
gem "rspec-mocks"
26-
gem "rubocop", "~> 1.18.3"
26+
gem "rubocop", "~> 1.22.0"
2727
gem "rubocop-minitest"
2828
gem "rubocop-performance"
2929
gem "rubocop-rake"

test/test_collections.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ class TestCollections < JekyllUnitTest
130130
assert @site.collections["methods"].docs.is_a? Array
131131
@site.collections["methods"].docs.each do |doc|
132132
assert doc.is_a? Jekyll::Document
133+
# rubocop:disable Style/WordArray
133134
assert_includes %w(
134135
_methods/configuration.md
135136
_methods/sanitized_path.md
@@ -142,6 +143,7 @@ class TestCollections < JekyllUnitTest
142143
_methods/3940394-21-9393050-fifif1323-test.md
143144
_methods/trailing-dots...md
144145
), doc.relative_path
146+
# rubocop:enable Style/WordArray
145147
end
146148
end
147149

test/test_site.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ def generate(site)
241241
@site.process
242242
# exclude files in symlinked directories here and insert them in the
243243
# following step when not on Windows.
244+
# rubocop:disable Style/WordArray
244245
sorted_pages = %w(
245246
%#\ +.md
246247
.htaccess
@@ -268,6 +269,7 @@ def generate(site)
268269
test-styles.scss
269270
trailing-dots...md
270271
)
272+
# rubocop:enable Style/WordArray
271273
unless Utils::Platforms.really_windows?
272274
# files in symlinked directories may appear twice
273275
sorted_pages.push("main.css.map", "main.scss", "symlinked-file").sort!

0 commit comments

Comments
 (0)