@@ -106,74 +106,6 @@ S603.py:21:1: S603 `subprocess` call: check for execution of untrusted input
10610623 | # Literals are fine , they ' re trusted.
107107 |
108108
109- S603 .py :24 :1 : S603 ` subprocess` call : check for execution of untrusted input
110- |
111- 23 | # Literals are fine , they ' re trusted.
112- 24 | run (" true" )
113- | ^^^ S603
114- 25 | Popen ([" true" ])
115- 26 | Popen (" true" , shell = False )
116- |
117-
118- S603 .py :25 :1 : S603 ` subprocess` call : check for execution of untrusted input
119- |
120- 23 | # Literals are fine , they ' re trusted.
121- 24 | run (" true" )
122- 25 | Popen ([" true" ])
123- | ^^^^^ S603
124- 26 | Popen (" true" , shell = False )
125- 27 | call (" true" , shell = False )
126- |
127-
128- S603 .py :26 :1 : S603 ` subprocess` call : check for execution of untrusted input
129- |
130- 24 | run (" true" )
131- 25 | Popen ([" true" ])
132- 26 | Popen (" true" , shell = False )
133- | ^^^^^ S603
134- 27 | call (" true" , shell = False )
135- 28 | check_call (" true" , shell = False )
136- |
137-
138- S603 .py :27 :1 : S603 ` subprocess` call : check for execution of untrusted input
139- |
140- 25 | Popen ([" true" ])
141- 26 | Popen (" true" , shell = False )
142- 27 | call (" true" , shell = False )
143- | ^^^^ S603
144- 28 | check_call (" true" , shell = False )
145- 29 | check_output (" true" , shell = False )
146- |
147-
148- S603 .py :28 :1 : S603 ` subprocess` call : check for execution of untrusted input
149- |
150- 26 | Popen (" true" , shell = False )
151- 27 | call (" true" , shell = False )
152- 28 | check_call (" true" , shell = False )
153- | ^^^^^^^^^^ S603
154- 29 | check_output (" true" , shell = False )
155- 30 | run (" true" , shell = False )
156- |
157-
158- S603 .py :29 :1 : S603 ` subprocess` call : check for execution of untrusted input
159- |
160- 27 | call (" true" , shell = False )
161- 28 | check_call (" true" , shell = False )
162- 29 | check_output (" true" , shell = False )
163- | ^^^^^^^^^^^^ S603
164- 30 | run (" true" , shell = False )
165- |
166-
167- S603 .py :30 :1 : S603 ` subprocess` call : check for execution of untrusted input
168- |
169- 28 | check_call (" true" , shell = False )
170- 29 | check_output (" true" , shell = False )
171- 30 | run (" true" , shell = False )
172- | ^^^ S603
173- 31 |
174- 32 | # Not through assignments though .
175- |
176-
177109S603 .py :34 :1 : S603 ` subprocess` call : check for execution of untrusted input
178110 |
17911132 | # Not through assignments though .
@@ -184,36 +116,10 @@ S603.py:34:1: S603 `subprocess` call: check for execution of untrusted input
18411636 | # Instant named expressions are fine .
185117 |
186118
187- S603 .py :37 :1 : S603 ` subprocess` call : check for execution of untrusted input
188- |
189- 36 | # Instant named expressions are fine .
190- 37 | run (c := " true" )
191- | ^^^ S603
192- 38 |
193- 39 | # But non - instant are not .
194- |
195-
196119S603 .py :41 :1 : S603 ` subprocess` call : check for execution of untrusted input
197120 |
19812139 | # But non - instant are not .
19912240 | (e := " echo" )
20012341 | run (e )
201124 | ^^^ S603
202125 |
203-
204- S603 .py :46 :1 : S603 ` subprocess` call : check for execution of untrusted input
205- |
206- 44 | # https :// github.com/astral-sh/ruff/issues/17798
207- 45 | # Tuple literals are trusted
208- 46 | check_output ((" literal" , " cmd" , " using" , " tuple" ), text = True )
209- | ^^^^^^^^^^^^ S603
210- 47 | Popen ((" literal" , " cmd" , " using" , " tuple" ))
211- |
212-
213- S603 .py :47 :1 : S603 ` subprocess` call : check for execution of untrusted input
214- |
215- 45 | # Tuple literals are trusted
216- 46 | check_output ((" literal" , " cmd" , " using" , " tuple" ), text = True )
217- 47 | Popen ((" literal" , " cmd" , " using" , " tuple" ))
218- | ^^^^^ S603
219- |
0 commit comments