mirror of
				https://github.com/koalaman/shellcheck.git
				synced 2025-11-04 18:28:23 +08:00 
			
		
		
		
	SC2029: Add false positive test
This change adds a test case for a valid command that gets falsely flagged with SC2029.
This commit is contained in:
		@@ -482,6 +482,7 @@ checkInteractiveSu = CommandCheck (Basename "su") f
 | 
			
		||||
prop_checkSshCmdStr1 = verify checkSshCommandString "ssh host \"echo $PS1\""
 | 
			
		||||
prop_checkSshCmdStr2 = verifyNot checkSshCommandString "ssh host \"ls foo\""
 | 
			
		||||
prop_checkSshCmdStr3 = verifyNot checkSshCommandString "ssh \"$host\""
 | 
			
		||||
prop_checkSshCmdStr4 = verifyNot checkSshCommandString "ssh -i key \"$host\""
 | 
			
		||||
checkSshCommandString = CommandCheck (Basename "ssh") (f . arguments)
 | 
			
		||||
  where
 | 
			
		||||
    nonOptions =
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user