Revert "audit (strict): check for use double-quotes."
This reverts commit 8fe14451842dea92bca04116ba043421b4f44a6b. Conflicts: Library/Homebrew/cmd/audit.rb
This commit is contained in:
		
							parent
							
								
									1ee1e2ca3c
								
							
						
					
					
						commit
						9e335fa0b8
					
				@ -558,12 +558,6 @@ class FormulaAuditor
 | 
				
			|||||||
        problem "Use `system #{good_system}` instead of `system #{bad_system}` "
 | 
					        problem "Use `system #{good_system}` instead of `system #{bad_system}` "
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if line =~ /^[^#"]*('[^']*')/
 | 
					 | 
				
			||||||
        bad_quotes = $1
 | 
					 | 
				
			||||||
        good_quotes = bad_quotes.gsub "'", "\""
 | 
					 | 
				
			||||||
        problem "use double-quotes for `#{good_quotes}` instead of `#{bad_quotes}`"
 | 
					 | 
				
			||||||
      end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      if line =~ /(require ["']formula["'])/
 | 
					      if line =~ /(require ["']formula["'])/
 | 
				
			||||||
        problem "`#{$1}` is now unnecessary"
 | 
					        problem "`#{$1}` is now unnecessary"
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user