Skip to content

Commit

Permalink
Bump RuboCop to v0.86.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmaroli committed Jun 22, 2020
1 parent c250b2a commit 52a1db5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -88,6 +88,7 @@ Metrics/CyclomaticComplexity:
Exclude:
- lib/jekyll/utils.rb
- lib/jekyll/commands/serve.rb
Max: 11
Metrics/MethodLength:
CountComments: false
Max: 20
Expand Down Expand Up @@ -171,6 +172,8 @@ Style/PercentLiteralDelimiters:
"%w": "()"
"%W": "()"
"%x": "()"
Style/RedundantFetchBlock:
Enabled: false
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -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__)
Expand Down
2 changes: 0 additions & 2 deletions lib/jekyll/entry_filter.rb
Expand Up @@ -28,7 +28,6 @@ def relative_to_source(entry)
)
end

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

def included?(entry)
glob_include?(site.include, entry) ||
Expand Down
3 changes: 1 addition & 2 deletions lib/jekyll/filters.rb
Expand Up @@ -399,7 +399,6 @@ def sort_input(input, property, order)

# `where` filter helper
#
# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/PerceivedComplexity
def compare_property_vs_target(property, target)
case target
Expand All @@ -421,7 +420,7 @@ def compare_property_vs_target(property, target)

false
end
# rubocop:enable Metrics/CyclomaticComplexity

# rubocop:enable Metrics/PerceivedComplexity

def item_property(item, property)
Expand Down

0 comments on commit 52a1db5

Please sign in to comment.