audit: restore check that was lost in #927
This audit check ensures that certain build dependencies are explicitly marked either as `:build` or `:run`. It seems to have been lost in #927. It was also adjusted in #1290.
This commit is contained in:
		
							parent
							
								
									89fd34b24e
								
							
						
					
					
						commit
						72f889fef0
					
				@ -415,6 +415,12 @@ class FormulaAuditor
 | 
			
		||||
            EOS
 | 
			
		||||
        when *BUILD_TIME_DEPS
 | 
			
		||||
          next if dep.build? || dep.run?
 | 
			
		||||
          problem <<-EOS.undent
 | 
			
		||||
            #{dep} dependency should be
 | 
			
		||||
              depends_on "#{dep}" => :build
 | 
			
		||||
            Or if it is indeed a runtime dependency
 | 
			
		||||
              depends_on "#{dep}" => :run
 | 
			
		||||
          EOS
 | 
			
		||||
        end
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user