Bump RuboCop to v0.68.x (#7637)

Merge pull request 7637
This commit is contained in:
Ashwin Maroli 2019-04-30 18:14:08 +05:30 committed by jekyllbot
parent ced4404a5e
commit a5cac26766
4 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,7 @@
--- ---
require: require:
- rubocop-performance
- ./rubocop/jekyll - ./rubocop/jekyll
Jekyll/NoPutsAllowed: Jekyll/NoPutsAllowed:
@ -23,9 +24,9 @@ Layout/AlignHash:
EnforcedHashRocketStyle: table EnforcedHashRocketStyle: table
Layout/IndentationWidth: Layout/IndentationWidth:
Severity: error Severity: error
Layout/IndentArray: Layout/IndentFirstArrayElement:
EnforcedStyle: consistent EnforcedStyle: consistent
Layout/IndentHash: Layout/IndentFirstHashElement:
EnforcedStyle: consistent EnforcedStyle: consistent
Layout/MultilineMethodCallIndentation: Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented EnforcedStyle: indented

View File

@ -26,9 +26,8 @@ group :test do
gem "nokogiri", "~> 1.7" gem "nokogiri", "~> 1.7"
gem "rspec" gem "rspec"
gem "rspec-mocks" gem "rspec-mocks"
# Temporary lock on RuboCop version for Windows since Pysch-3.1.0 is not available gem "rubocop", "~> 0.68.0"
# for use on Ruby 2.6-mingw32 platforms gem "rubocop-performance"
gem "rubocop", Gem.win_platform? ? "~> 0.64.0" : "~> 0.66.0"
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__)
gem "test-theme-symlink", :path => File.expand_path("test/fixtures/test-theme-symlink", __dir__) gem "test-theme-symlink", :path => File.expand_path("test/fixtures/test-theme-symlink", __dir__)

View File

@ -199,10 +199,10 @@ module Jekyll
new_config = read_config_file(config_file) new_config = read_config_file(config_file)
configuration = Utils.deep_merge_hashes(configuration, new_config) configuration = Utils.deep_merge_hashes(configuration, new_config)
end end
rescue ArgumentError => err rescue ArgumentError => e
Jekyll.logger.warn "WARNING:", "Error reading configuration. " \ Jekyll.logger.warn "WARNING:", "Error reading configuration. " \
"Using defaults (and options)." "Using defaults (and options)."
warn err warn e
end end
configuration.backwards_compatibilize.add_default_collections configuration.backwards_compatibilize.add_default_collections

View File

@ -196,8 +196,8 @@ class JekyllUnitTest < Minitest::Test
rescue Errno::EACCES rescue Errno::EACCES
skip "Permission denied for creating a symlink to #{target.inspect} " \ skip "Permission denied for creating a symlink to #{target.inspect} " \
"on this machine".magenta "on this machine".magenta
rescue NotImplementedError => error rescue NotImplementedError => e
skip error.to_s.magenta skip e.to_s.magenta
end end
end end