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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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