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

View File

@ -23,7 +23,7 @@ group :test do
gem "nokogiri", "~> 1.7"
gem "rspec"
gem "rspec-mocks"
gem "rubocop", "~> 0.85.0"
gem "rubocop", "~> 0.86.0"
gem "rubocop-performance"
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__)

View File

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

View File

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