cask style: fix --fix
				
					
				
			This commit is contained in:
		
							parent
							
								
									9f4b4a1699
								
							
						
					
					
						commit
						aa8003103e
					
				@ -36,18 +36,21 @@ module Hbc
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      def rubocop_args
 | 
			
		||||
        fix? ? autocorrect_args : default_args
 | 
			
		||||
        fix? ? autocorrect_args : normal_args
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      def default_args
 | 
			
		||||
        [
 | 
			
		||||
          "--require", "rubocop-cask",
 | 
			
		||||
          "--force-default-config",
 | 
			
		||||
          "--format", "simple",
 | 
			
		||||
          "--parallel"
 | 
			
		||||
          "--format", "simple"
 | 
			
		||||
        ]
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      def normal_args
 | 
			
		||||
        default_args + ["--parallel"]
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      def autocorrect_args
 | 
			
		||||
        default_args + ["--auto-correct"]
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user