Bump RuboCop to v0.83.x
This commit is contained in:
parent
8403184b14
commit
11dd893416
|
@ -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:
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -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__)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -5,6 +5,7 @@ module Jekyll
|
|||
SPECIAL_COLLECTIONS = %w(posts data).freeze
|
||||
|
||||
attr_reader :site, :content
|
||||
|
||||
def initialize(site)
|
||||
@site = site
|
||||
@content = {}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
module Jekyll
|
||||
class DataReader
|
||||
attr_reader :site, :content
|
||||
|
||||
def initialize(site)
|
||||
@site = site
|
||||
@content = {}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
module Jekyll
|
||||
class LayoutReader
|
||||
attr_reader :site
|
||||
|
||||
def initialize(site)
|
||||
@site = site
|
||||
@layouts = {}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
module Jekyll
|
||||
class PageReader
|
||||
attr_reader :site, :dir, :unfiltered_content
|
||||
|
||||
def initialize(site, dir)
|
||||
@site = site
|
||||
@dir = dir
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
module Jekyll
|
||||
class PostReader
|
||||
attr_reader :site, :unfiltered_content
|
||||
|
||||
def initialize(site)
|
||||
@site = site
|
||||
end
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
module Jekyll
|
||||
class StaticFileReader
|
||||
attr_reader :site, :dir, :unfiltered_content
|
||||
|
||||
def initialize(site, dir)
|
||||
@site = site
|
||||
@dir = dir
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
module Jekyll
|
||||
class ThemeAssetsReader
|
||||
attr_reader :site
|
||||
|
||||
def initialize(site)
|
||||
@site = site
|
||||
end
|
||||
|
|
|
@ -4,6 +4,7 @@ module Jekyll
|
|||
class Theme
|
||||
extend Forwardable
|
||||
attr_reader :name
|
||||
|
||||
def_delegator :gemspec, :version, :version
|
||||
|
||||
def initialize(name)
|
||||
|
|
Loading…
Reference in New Issue