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

branch
server
changeset 10704
27d21e5163b8
parent 10683
779cda568acb
child 11090
f5f5f5803935
equal deleted inserted replaced
10680:306373ccf8fd 10704:27d21e5163b8
48 or mode & stat.S_IXGRP 48 or mode & stat.S_IXGRP
49 or mode & stat.S_IXOTH 49 or mode & stat.S_IXOTH
50 ) 50 )
51 51
52 52
53 def checkFilePermissions(reportError, context, config): # noqa: U100 53 def checkFilePermissions(reportError, context, _config):
54 """ 54 """
55 Function to check for setting too permissive file permissions. 55 Function to check for setting too permissive file permissions.
56 56
57 @param reportError function to be used to report errors 57 @param reportError function to be used to report errors
58 @type func 58 @type func
59 @param context security context object 59 @param context security context object
60 @type SecurityContext 60 @type SecurityContext
61 @param config dictionary with configuration data 61 @param _config dictionary with configuration data (unused)
62 @type dict 62 @type dict
63 """ 63 """
64 if "chmod" in context.callFunctionName and context.callArgsCount == 2: 64 if "chmod" in context.callFunctionName and context.callArgsCount == 2:
65 mode = context.getCallArgAtPosition(1) 65 mode = context.getCallArgAtPosition(1)
66 66

eric ide

mercurial