Document FormulaAudit::ComponentsRedundancy.
				
					
				
			This commit is contained in:
		
							parent
							
								
									924fc47f0f
								
							
						
					
					
						commit
						69a0e3fb61
					
				@ -5,13 +5,14 @@ require "rubocops/extend/formula"
 | 
			
		||||
module RuboCop
 | 
			
		||||
  module Cop
 | 
			
		||||
    module FormulaAudit
 | 
			
		||||
      # This cop checks if redundant components are present and other component errors.
 | 
			
		||||
      # This cop checks if redundant components are present and for other component errors.
 | 
			
		||||
      #
 | 
			
		||||
      # - `url|checksum|mirror` should be inside `stable` block
 | 
			
		||||
      # - `head` and `head do` should not be simultaneously present
 | 
			
		||||
      # - `bottle :unneeded`/`:disable` and `bottle do` should not be simultaneously present
 | 
			
		||||
      # - `stable do` should not be present without a `head` or `devel` spec
 | 
			
		||||
 | 
			
		||||
      #
 | 
			
		||||
      # @api private
 | 
			
		||||
      class ComponentsRedundancy < FormulaCop
 | 
			
		||||
        HEAD_MSG = "`head` and `head do` should not be simultaneously present"
 | 
			
		||||
        BOTTLE_MSG = "`bottle :modifier` and `bottle do` should not be simultaneously present"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user