Bump RuboCop to v0.86.x

This commit is contained in:
Ashwin Maroli 2020-06-22 20:02:29 +05:30
parent c250b2abd3
commit 52a1db530a
4 changed files with 5 additions and 5 deletions

View File

@ -88,6 +88,7 @@ Metrics/CyclomaticComplexity:
Exclude: Exclude:
- lib/jekyll/utils.rb - lib/jekyll/utils.rb
- lib/jekyll/commands/serve.rb - lib/jekyll/commands/serve.rb
Max: 11
Metrics/MethodLength: Metrics/MethodLength:
CountComments: false CountComments: false
Max: 20 Max: 20
@ -171,6 +172,8 @@ Style/PercentLiteralDelimiters:
"%w": "()" "%w": "()"
"%W": "()" "%W": "()"
"%x": "()" "%x": "()"
Style/RedundantFetchBlock:
Enabled: false
Style/RedundantRegexpCharacterClass: Style/RedundantRegexpCharacterClass:
Enabled: true Enabled: true
Style/RedundantRegexpEscape: Style/RedundantRegexpEscape:

View File

@ -23,7 +23,7 @@ group :test do
gem "nokogiri", "~> 1.7" gem "nokogiri", "~> 1.7"
gem "rspec" gem "rspec"
gem "rspec-mocks" gem "rspec-mocks"
gem "rubocop", "~> 0.85.0" gem "rubocop", "~> 0.86.0"
gem "rubocop-performance" gem "rubocop-performance"
gem "test-dependency-theme", :path => File.expand_path("test/fixtures/test-dependency-theme", __dir__) gem "test-dependency-theme", :path => File.expand_path("test/fixtures/test-dependency-theme", __dir__)
gem "test-theme", :path => File.expand_path("test/fixtures/test-theme", __dir__) gem "test-theme", :path => File.expand_path("test/fixtures/test-theme", __dir__)

View File

@ -28,7 +28,6 @@ module Jekyll
) )
end end
# rubocop:disable Metrics/CyclomaticComplexity
def filter(entries) def filter(entries)
entries.reject do |e| entries.reject do |e|
# Reject this entry if it is just a "dot" representation. # Reject this entry if it is just a "dot" representation.
@ -51,7 +50,6 @@ module Jekyll
special?(e) || backup?(e) special?(e) || backup?(e)
end end
end end
# rubocop:enable Metrics/CyclomaticComplexity
def included?(entry) def included?(entry)
glob_include?(site.include, entry) || glob_include?(site.include, entry) ||

View File

@ -399,7 +399,6 @@ module Jekyll
# `where` filter helper # `where` filter helper
# #
# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/PerceivedComplexity # rubocop:disable Metrics/PerceivedComplexity
def compare_property_vs_target(property, target) def compare_property_vs_target(property, target)
case target case target
@ -421,7 +420,7 @@ module Jekyll
false false
end end
# rubocop:enable Metrics/CyclomaticComplexity
# rubocop:enable Metrics/PerceivedComplexity # rubocop:enable Metrics/PerceivedComplexity
def item_property(item, property) def item_property(item, property)