From bb42e6251ea3105dd92b7d0d1f97b7bb46588cbf Mon Sep 17 00:00:00 2001 From: ashmaroli Date: Mon, 6 Nov 2017 18:05:43 +0530 Subject: [PATCH] enable `Style/UnneededCapitalW` cop (#6526) Merge pull request 6526 --- .rubocop.yml | 2 -- lib/jekyll/commands/serve.rb | 2 +- lib/jekyll/converters/markdown.rb | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index e168064a..969c065f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -152,5 +152,3 @@ Style/SymbolArray: Enabled: false Style/TrailingCommaInLiteral: EnforcedStyleForMultiline: consistent_comma -Style/UnneededCapitalW: - Enabled: false diff --git a/lib/jekyll/commands/serve.rb b/lib/jekyll/commands/serve.rb index 53973b66..892749a8 100644 --- a/lib/jekyll/commands/serve.rb +++ b/lib/jekyll/commands/serve.rb @@ -85,7 +85,7 @@ module Jekyll :StartCallback => start_callback(opts["detach"]), :BindAddress => opts["host"], :Port => opts["port"], - :DirectoryIndex => %W( + :DirectoryIndex => %w( index.htm index.html index.rhtml diff --git a/lib/jekyll/converters/markdown.rb b/lib/jekyll/converters/markdown.rb index 857b6ecf..17d102ff 100644 --- a/lib/jekyll/converters/markdown.rb +++ b/lib/jekyll/converters/markdown.rb @@ -44,7 +44,7 @@ module Jekyll # are not in safe mode.) def valid_processors - %W(rdiscount kramdown redcarpet) + third_party_processors + %w(rdiscount kramdown redcarpet) + third_party_processors end # Public: A list of processors that you provide via plugins.