mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Add some whitespaces for readability
This commit is contained in:
		
							parent
							
								
									306bc34019
								
							
						
					
					
						commit
						48d0089d23
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -49,6 +49,7 @@ module Ameba::Rule::Performance
 | 
			
		|||
      it "allows to configure object_call_names" do
 | 
			
		||||
        rule = Rule::Performance::AnyAfterFilter.new
 | 
			
		||||
        rule.filter_names = %w(select)
 | 
			
		||||
 | 
			
		||||
        expect_no_issues rule, <<-CRYSTAL
 | 
			
		||||
          [1, 2, 3].reject { |e| e > 2 }.any?
 | 
			
		||||
          CRYSTAL
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -47,6 +47,7 @@ module Ameba::Rule::Performance
 | 
			
		|||
      it "allows to configure `call_names`" do
 | 
			
		||||
        rule = ChainedCallWithNoBang.new
 | 
			
		||||
        rule.call_names = %w(uniq)
 | 
			
		||||
 | 
			
		||||
        expect_no_issues rule, <<-CRYSTAL
 | 
			
		||||
          [1, 2, 3].select { |e| e > 2 }.reverse
 | 
			
		||||
          CRYSTAL
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue