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

branch
eric7
changeset 9278
36448ca469c2
parent 9274
86fab0c74430
child 9325
8157eb19aba5
equal deleted inserted replaced
9277:471c5a263d53 9278:36448ca469c2
8 """ 8 """
9 9
10 import collections 10 import collections
11 import os 11 import os
12 12
13 # TODO: update to bandit v1.7.4 13
14 def generateCheckersDict(): 14 def generateCheckersDict():
15 """ 15 """
16 Function to generate the dictionary with checkers. 16 Function to generate the dictionary with checkers.
17 17
18 Checker modules are searched for inside this package. Each module 18 Checker modules are searched for inside this package. Each module
21 with the check function and associated message codes. 21 with the check function and associated message codes.
22 22
23 @return dictionary containing list of tuples with checker data 23 @return dictionary containing list of tuples with checker data
24 @rtype dict 24 @rtype dict
25 """ 25 """
26 # TODO: update to bandit v1.7.4
26 checkersDict = collections.defaultdict(list) 27 checkersDict = collections.defaultdict(list)
27 28
28 checkersDirectory = os.path.dirname(__file__) 29 checkersDirectory = os.path.dirname(__file__)
29 checkerModules = [ 30 checkerModules = [
30 os.path.splitext(m)[0] 31 os.path.splitext(m)[0]

eric ide

mercurial