src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/prohibitedImports.py

branch
eric7
changeset 11147
dee6e106b4d3
parent 11136
437db2f032fd
equal deleted inserted replaced
11146:59e04f7003e9 11147:dee6e106b4d3
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",
45 "Crypto.Signature", 45 "Crypto.Signature",
46 "Crypto.Util", 46 "Crypto.Util",
47 ], 47 ],
48 "H", 48 "H",
49 ), 49 ),
50 "S414": (["pyghmi"], "H"), 50 "S-414": (["pyghmi"], "H"),
51 } 51 }
52 52
53 53
54 def getChecks(): 54 def getChecks():
55 """ 55 """

eric ide

mercurial