Merge pull request #3655 from MikeMcQuaid/formula-cop-hash-match-array
formula_cop: match any values in hash match.
This commit is contained in:
		
						commit
						b29213a663
					
				@ -214,7 +214,7 @@ module RuboCop
 | 
			
		||||
      EOS
 | 
			
		||||
 | 
			
		||||
      def_node_search :dependency_name_hash_match?, <<~EOS
 | 
			
		||||
        (hash (pair ({str sym} %1) ({str sym array} _)))
 | 
			
		||||
        (hash (pair ({str sym} %1) (...)))
 | 
			
		||||
      EOS
 | 
			
		||||
 | 
			
		||||
      # To compare node with appropriate Ruby variable
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user