Skip to content

Commit

Permalink
Bump Rubocop to version 1.48.x (#9326)
Browse files Browse the repository at this point in the history
Merge pull request 9326
  • Loading branch information
waqarnazir committed Mar 26, 2023
1 parent 8c8c88e commit 6bedc7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .rubocop.yml
Expand Up @@ -368,7 +368,7 @@ Style/GuardClause:
Style/HashAsLastArrayItem:
Enabled: true
Style/HashConversion:
Enabled: true
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashExcept:
Expand All @@ -392,6 +392,8 @@ Style/MapCompactWithConditionalBlock:
Enabled: true
Style/MapToHash:
Enabled: true
Style/MinMaxComparison:
Enabled: true
Style/MixinUsage:
Exclude:
- test/helper.rb
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -23,7 +23,7 @@ group :test do
gem "nokogiri", "~> 1.7"
gem "rspec"
gem "rspec-mocks"
gem "rubocop", "~> 1.45.0"
gem "rubocop", "~> 1.48.0"
gem "rubocop-minitest"
gem "rubocop-performance"
gem "rubocop-rake"
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll/site.rb
Expand Up @@ -486,7 +486,7 @@ def load_theme_configuration(config)
# Returns nothing
def limit_posts!
if limit_posts.positive?
limit = posts.docs.length < limit_posts ? posts.docs.length : limit_posts
limit = [posts.docs.length, limit_posts].min
posts.docs = posts.docs[-limit, limit]
end
end
Expand Down

0 comments on commit 6bedc7e

Please sign in to comment.