Skip to content

Commit

Permalink
Bump RuboCop to v0.83.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmaroli committed May 11, 2020
1 parent 8403184 commit 11dd893
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ AllCops:
- script/**/*
- vendor/**/*
- tmp/**/*
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: false
Layout/HashAlignment:
EnforcedHashRocketStyle: table
Layout/IndentationWidth:
Expand Down Expand Up @@ -165,6 +167,8 @@ Style/RescueModifier:
Style/SafeNavigation:
Exclude:
- lib/jekyll/document.rb
Style/SlicingWithRange:
Enabled: false
Style/SignalException:
EnforcedStyle: only_raise
Style/StringLiterals:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down
1 change: 1 addition & 0 deletions lib/jekyll/entry_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions lib/jekyll/readers/collection_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class CollectionReader
SPECIAL_COLLECTIONS = %w(posts data).freeze

attr_reader :site, :content

def initialize(site)
@site = site
@content = {}
Expand Down
1 change: 1 addition & 0 deletions lib/jekyll/readers/data_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module Jekyll
class DataReader
attr_reader :site, :content

def initialize(site)
@site = site
@content = {}
Expand Down
1 change: 1 addition & 0 deletions lib/jekyll/readers/layout_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module Jekyll
class LayoutReader
attr_reader :site

def initialize(site)
@site = site
@layouts = {}
Expand Down
1 change: 1 addition & 0 deletions lib/jekyll/readers/page_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module Jekyll
class PageReader
attr_reader :site, :dir, :unfiltered_content

def initialize(site, dir)
@site = site
@dir = dir
Expand Down
1 change: 1 addition & 0 deletions lib/jekyll/readers/post_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module Jekyll
class PostReader
attr_reader :site, :unfiltered_content

def initialize(site)
@site = site
end
Expand Down
1 change: 1 addition & 0 deletions lib/jekyll/readers/static_file_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module Jekyll
class StaticFileReader
attr_reader :site, :dir, :unfiltered_content

def initialize(site, dir)
@site = site
@dir = dir
Expand Down
1 change: 1 addition & 0 deletions lib/jekyll/readers/theme_assets_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module Jekyll
class ThemeAssetsReader
attr_reader :site

def initialize(site)
@site = site
end
Expand Down
1 change: 1 addition & 0 deletions lib/jekyll/theme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Jekyll
class Theme
extend Forwardable
attr_reader :name

def_delegator :gemspec, :version, :version

def initialize(name)
Expand Down

0 comments on commit 11dd893

Please sign in to comment.