parent
							
								
									8c8c88eec0
								
							
						
					
					
						commit
						6bedc7e069
					
				| 
						 | 
				
			
			@ -368,7 +368,7 @@ Style/GuardClause:
 | 
			
		|||
Style/HashAsLastArrayItem:
 | 
			
		||||
  Enabled: true
 | 
			
		||||
Style/HashConversion:
 | 
			
		||||
  Enabled: true  
 | 
			
		||||
  Enabled: true
 | 
			
		||||
Style/HashEachMethods:
 | 
			
		||||
  Enabled: true
 | 
			
		||||
Style/HashExcept:
 | 
			
		||||
| 
						 | 
				
			
			@ -392,6 +392,8 @@ Style/MapCompactWithConditionalBlock:
 | 
			
		|||
  Enabled: true
 | 
			
		||||
Style/MapToHash:
 | 
			
		||||
  Enabled: true
 | 
			
		||||
Style/MinMaxComparison:
 | 
			
		||||
  Enabled: true
 | 
			
		||||
Style/MixinUsage:
 | 
			
		||||
  Exclude:
 | 
			
		||||
    - test/helper.rb
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								Gemfile
								
								
								
								
							
							
						
						
									
										2
									
								
								Gemfile
								
								
								
								
							| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -486,7 +486,7 @@ module Jekyll
 | 
			
		|||
    # 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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue