14 # |
14 # |
15 # SPDX-License-Identifier: Apache-2.0 |
15 # SPDX-License-Identifier: Apache-2.0 |
16 # |
16 # |
17 |
17 |
18 _prohibitedImports = { |
18 _prohibitedImports = { |
19 "S401": (["telnetlib"], "H"), |
19 "S-401": (["telnetlib"], "H"), |
20 "S402": (["ftplib"], "H"), |
20 "S-402": (["ftplib"], "H"), |
21 "S403": (["pickle", "cPickle", "dill", "shelve"], "L"), |
21 "S-403": (["pickle", "cPickle", "dill", "shelve"], "L"), |
22 "S404": (["subprocess"], "L"), |
22 "S-404": (["subprocess"], "L"), |
23 "S405": (["xml.etree.cElementTree", "xml.etree.ElementTree"], "L"), |
23 "S-405": (["xml.etree.cElementTree", "xml.etree.ElementTree"], "L"), |
24 "S406": (["xml.sax"], "L"), |
24 "S-406": (["xml.sax"], "L"), |
25 "S407": (["xml.dom.expatbuilder"], "L"), |
25 "S-407": (["xml.dom.expatbuilder"], "L"), |
26 "S408": (["xml.dom.minidom"], "L"), |
26 "S-408": (["xml.dom.minidom"], "L"), |
27 "S409": (["xml.dom.pulldom"], "L"), |
27 "S-409": (["xml.dom.pulldom"], "L"), |
28 "S411": (["xmlrpc"], "H"), |
28 "S-411": (["xmlrpc"], "H"), |
29 "S412": ( |
29 "S-412": ( |
30 [ |
30 [ |
31 "wsgiref.handlers.CGIHandler", |
31 "wsgiref.handlers.CGIHandler", |
32 "twisted.web.twcgi.CGIScript", |
32 "twisted.web.twcgi.CGIScript", |
33 "twisted.web.twcgi.CGIDirectory", |
33 "twisted.web.twcgi.CGIDirectory", |
34 ], |
34 ], |
35 "H", |
35 "H", |
36 ), |
36 ), |
37 "S413": ( |
37 "S-413": ( |
38 [ |
38 [ |
39 "Crypto.Cipher", |
39 "Crypto.Cipher", |
40 "Crypto.Hash", |
40 "Crypto.Hash", |
41 "Crypto.IO", |
41 "Crypto.IO", |
42 "Crypto.Protocol", |
42 "Crypto.Protocol", |