--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/prohibitedCalls.py Sun Feb 23 12:42:47 2025 +0100 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/prohibitedCalls.py Mon Feb 24 15:11:18 2025 +0100 @@ -21,7 +21,7 @@ import AstUtilities _prohibitedCalls = { - "S301": ( + "S-301": ( [ "pickle.loads", "pickle.load", @@ -38,8 +38,8 @@ ], "M", ), - "S302": (["marshal.load", "marshal.loads"], "M"), - "S303": ( + "S-302": (["marshal.load", "marshal.loads"], "M"), + "S-303": ( [ "Crypto.Hash.MD2.new", "Crypto.Hash.MD4.new", @@ -54,7 +54,7 @@ ], "M", ), - "S304": ( + "S-304": ( [ "Crypto.Cipher.ARC2.new", "Crypto.Cipher.ARC4.new", @@ -75,11 +75,11 @@ ], "H", ), - "S305": (["cryptography.hazmat.primitives.ciphers.modes.ECB"], "M"), - "S306": (["tempfile.mktemp"], "M"), - "S307": (["eval"], "M"), - "S308": (["django.utils.safestring.mark_safe"], "M"), - "S310": ( + "S-305": (["cryptography.hazmat.primitives.ciphers.modes.ECB"], "M"), + "S-306": (["tempfile.mktemp"], "M"), + "S-307": (["eval"], "M"), + "S-308": (["django.utils.safestring.mark_safe"], "M"), + "S-310": ( [ "urllib.request.urlopen", "urllib.request.urlretrieve", @@ -92,7 +92,7 @@ ], "", ), - "S311": ( + "S-311": ( [ "random.Random", "random.random", @@ -106,8 +106,8 @@ ], "L", ), - "S312": (["telnetlib.Telnet"], "H"), - "S313": ( + "S-312": (["telnetlib.Telnet"], "H"), + "S-313": ( [ "xml.etree.cElementTree.parse", "xml.etree.cElementTree.iterparse", @@ -116,7 +116,7 @@ ], "M", ), - "S314": ( + "S-314": ( [ "xml.etree.ElementTree.parse", "xml.etree.ElementTree.iterparse", @@ -125,16 +125,16 @@ ], "M", ), - "S315": (["xml.sax.expatreader.create_parser"], "M"), - "S316": ( + "S-315": (["xml.sax.expatreader.create_parser"], "M"), + "S-316": ( ["xml.dom.expatbuilder.parse", "xml.dom.expatbuilder.parseString"], "M", ), - "S317": (["xml.sax.parse", "xml.sax.parseString", "xml.sax.make_parser"], "M"), - "S318": (["xml.dom.minidom.parse", "xml.dom.minidom.parseString"], "M"), - "S319": (["xml.dom.pulldom.parse", "xml.dom.pulldom.parseString"], "M"), - "S321": (["ftplib.FTP"], "H"), - "S323": (["ssl._create_unverified_context"], "M"), + "S-317": (["xml.sax.parse", "xml.sax.parseString", "xml.sax.make_parser"], "M"), + "S-318": (["xml.dom.minidom.parse", "xml.dom.minidom.parseString"], "M"), + "S-319": (["xml.dom.pulldom.parse", "xml.dom.pulldom.parseString"], "M"), + "S-321": (["ftplib.FTP"], "H"), + "S-323": (["ssl._create_unverified_context"], "M"), }