Bump RuboCop to v0.83.x

This commit is contained in:
Ashwin Maroli 2020-05-11 18:21:16 +05:30
parent 8403184b14
commit 11dd893416
11 changed files with 14 additions and 1 deletions

View File

@ -21,6 +21,8 @@ AllCops:
- script/**/*
- vendor/**/*
- tmp/**/*
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: false
Layout/HashAlignment:
EnforcedHashRocketStyle: table
Layout/IndentationWidth:
@ -165,6 +167,8 @@ Style/RescueModifier:
Style/SafeNavigation:
Exclude:
- lib/jekyll/document.rb
Style/SlicingWithRange:
Enabled: false
Style/SignalException:
EnforcedStyle: only_raise
Style/StringLiterals:

View File

@ -27,7 +27,7 @@ group :test do
gem "nokogiri", "~> 1.7"
gem "rspec"
gem "rspec-mocks"
gem "rubocop", "~> 0.82.0"
gem "rubocop", "~> 0.83.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

@ -3,6 +3,7 @@
module Jekyll
class EntryFilter
attr_reader :site
SPECIAL_LEADING_CHAR_REGEX = %r!\A#{Regexp.union([".", "_", "#", "~"])}!o.freeze
def initialize(site, base_directory = nil)

View File

@ -5,6 +5,7 @@ module Jekyll
SPECIAL_COLLECTIONS = %w(posts data).freeze
attr_reader :site, :content
def initialize(site)
@site = site
@content = {}

View File

@ -3,6 +3,7 @@
module Jekyll
class DataReader
attr_reader :site, :content
def initialize(site)
@site = site
@content = {}

View File

@ -3,6 +3,7 @@
module Jekyll
class LayoutReader
attr_reader :site
def initialize(site)
@site = site
@layouts = {}

View File

@ -3,6 +3,7 @@
module Jekyll
class PageReader
attr_reader :site, :dir, :unfiltered_content
def initialize(site, dir)
@site = site
@dir = dir

View File

@ -3,6 +3,7 @@
module Jekyll
class PostReader
attr_reader :site, :unfiltered_content
def initialize(site)
@site = site
end

View File

@ -3,6 +3,7 @@
module Jekyll
class StaticFileReader
attr_reader :site, :dir, :unfiltered_content
def initialize(site, dir)
@site = site
@dir = dir

View File

@ -3,6 +3,7 @@
module Jekyll
class ThemeAssetsReader
attr_reader :site
def initialize(site)
@site = site
end

View File

@ -4,6 +4,7 @@ module Jekyll
class Theme
extend Forwardable
attr_reader :name
def_delegator :gemspec, :version, :version
def initialize(name)