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

branch
server
changeset 10704
27d21e5163b8
parent 10683
779cda568acb
child 10996
a3dc181d14e1
equal deleted inserted replaced
10680:306373ccf8fd 10704:27d21e5163b8
190 (checkProhibitedCalls, tuple(_prohibitedCalls)), 190 (checkProhibitedCalls, tuple(_prohibitedCalls)),
191 ], 191 ],
192 } 192 }
193 193
194 194
195 def checkProhibitedCalls(reportError, context, config): # noqa: U100 195 def checkProhibitedCalls(reportError, context, _config):
196 """ 196 """
197 Function to check for prohibited method calls. 197 Function to check for prohibited method calls.
198 198
199 @param reportError function to be used to report errors 199 @param reportError function to be used to report errors
200 @type func 200 @type func
201 @param context security context object 201 @param context security context object
202 @type SecurityContext 202 @type SecurityContext
203 @param config dictionary with configuration data 203 @param _config dictionary with configuration data (unused)
204 @type dict 204 @type dict
205 """ 205 """
206 nodeType = context.node.__class__.__name__ 206 nodeType = context.node.__class__.__name__
207 207
208 if nodeType == "Call": 208 if nodeType == "Call":

eric ide

mercurial