|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.blackListCalls</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.blackListCalls</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing checks for blacklisted methods and functions. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>_blacklists</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 <tr><td>None</td></tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 |
|
40 <table> |
|
41 |
|
42 <tr> |
|
43 <td><a href="#checkBlacklist">checkBlacklist</a></td> |
|
44 <td>Function to check for blacklisted method calls.</td> |
|
45 </tr> |
|
46 <tr> |
|
47 <td><a href="#getChecks">getChecks</a></td> |
|
48 <td>Public method to get a dictionary with checks handled by this module.</td> |
|
49 </tr> |
|
50 </table> |
|
51 <hr /> |
|
52 <hr /> |
|
53 <a NAME="checkBlacklist" ID="checkBlacklist"></a> |
|
54 <h2>checkBlacklist</h2> |
|
55 <b>checkBlacklist</b>(<i>reportError, context, config</i>) |
|
56 |
|
57 <p> |
|
58 Function to check for blacklisted method calls. |
|
59 </p> |
|
60 <dl> |
|
61 |
|
62 <dt><i>reportError</i> (func)</dt> |
|
63 <dd> |
|
64 function to be used to report errors |
|
65 </dd> |
|
66 <dt><i>context</i> (SecurityContext)</dt> |
|
67 <dd> |
|
68 security context object |
|
69 </dd> |
|
70 <dt><i>config</i> (dict)</dt> |
|
71 <dd> |
|
72 dictionary with configuration data |
|
73 </dd> |
|
74 </dl> |
|
75 <div align="right"><a href="#top">Up</a></div> |
|
76 <hr /> |
|
77 <hr /> |
|
78 <a NAME="getChecks" ID="getChecks"></a> |
|
79 <h2>getChecks</h2> |
|
80 <b>getChecks</b>(<i></i>) |
|
81 |
|
82 <p> |
|
83 Public method to get a dictionary with checks handled by this module. |
|
84 </p> |
|
85 <dl> |
|
86 <dt>Return:</dt> |
|
87 <dd> |
|
88 dictionary containing checker lists containing checker function and |
|
89 list of codes |
|
90 </dd> |
|
91 </dl> |
|
92 <dl> |
|
93 <dt>Return Type:</dt> |
|
94 <dd> |
|
95 dict |
|
96 </dd> |
|
97 </dl> |
|
98 <div align="right"><a href="#top">Up</a></div> |
|
99 <hr /> |
|
100 </body></html> |