eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.trojanSource

Module implementing checks for the presence of unicode bidirectional control characters in Python source files.

Global Attributes

BIDI_CHARACTERS

Classes

None

Functions

checkTrojanSource Function to check for the presence of unicode bidirectional control characters in Python source files.
getChecks Public method to get a dictionary with checks handled by this module.


checkTrojanSource

checkTrojanSource(reportError, context, _config)

Function to check for the presence of unicode bidirectional control characters in Python source files.

Those characters can be embedded in comments and strings to reorder source code characters in a way that changes its logic.

reportError (func)
function to be used to report errors
context (SecurityContext)
security context object
_config (dict)
dictionary with configuration data (unused)
Up


getChecks

getChecks()

Public method to get a dictionary with checks handled by this module.

Return:
dictionary containing checker lists containing checker function and list of codes
Return Type:
dict
Up