Skip to content

Commit 5b5bacd

Browse files
committed
style: fix Rubocop offenses
1 parent 65f346c commit 5b5bacd

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.rubocop_todo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Metrics/BlockLength:
2020
# Offense count: 3
2121
# Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
2222
# URISchemes: http, https
23-
Metrics/LineLength:
23+
Layout/LineLength:
2424
Exclude:
2525
- 'spec/jekyll_redirect_from/generator_spec.rb'
2626
- 'spec/jekyll_redirect_from/redirect_page_spec.rb'

spec/integrations_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
end
1818

1919
context "multiple redirect froms" do
20-
%w(help contact let-there/be/light-he-said geepers/mccreepin).each do |redirect|
20+
["help", "contact", "let-there/be/light-he-said", "geepers/mccreepin"].each do |redirect|
2121
context "the #{redirect} redirect" do
2222
let(:relative_path) { "#{redirect}.html" }
2323

spec/spec_helper.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ def config
4242
"authors" => {},
4343
},
4444
"url" => "http://jekyllrb.com",
45-
"plugins" => [
46-
"jekyll-redirect-from",
47-
"jekyll-sitemap",
48-
],
45+
"plugins" => %w(jekyll-redirect-from jekyll-sitemap),
4946
"defaults" => [{
5047
"scope" => { "path" => "" },
5148
"values" => { "layout" => "layout" },

0 commit comments

Comments
 (0)