|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.tryExcept</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.tryExcept</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing checks for insecure except blocks. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 <tr><td>None</td></tr> |
|
23 </table> |
|
24 <h3>Functions</h3> |
|
25 |
|
26 <table> |
|
27 |
|
28 <tr> |
|
29 <td><a href="#checkTryExceptContinue">checkTryExceptContinue</a></td> |
|
30 <td>Function to check for a continue in the except block.</td> |
|
31 </tr> |
|
32 <tr> |
|
33 <td><a href="#checkTryExceptPass">checkTryExceptPass</a></td> |
|
34 <td>Function to check for a pass in the except block.</td> |
|
35 </tr> |
|
36 <tr> |
|
37 <td><a href="#getChecks">getChecks</a></td> |
|
38 <td>Public method to get a dictionary with checks handled by this module.</td> |
|
39 </tr> |
|
40 </table> |
|
41 <hr /> |
|
42 <hr /> |
|
43 <a NAME="checkTryExceptContinue" ID="checkTryExceptContinue"></a> |
|
44 <h2>checkTryExceptContinue</h2> |
|
45 <b>checkTryExceptContinue</b>(<i>reportError, context, config</i>) |
|
46 |
|
47 <p> |
|
48 Function to check for a continue in the except block. |
|
49 </p> |
|
50 <dl> |
|
51 |
|
52 <dt><i>reportError</i> (func)</dt> |
|
53 <dd> |
|
54 function to be used to report errors |
|
55 </dd> |
|
56 <dt><i>context</i> (SecurityContext)</dt> |
|
57 <dd> |
|
58 security context object |
|
59 </dd> |
|
60 <dt><i>config</i> (dict)</dt> |
|
61 <dd> |
|
62 dictionary with configuration data |
|
63 </dd> |
|
64 </dl> |
|
65 <div align="right"><a href="#top">Up</a></div> |
|
66 <hr /> |
|
67 <hr /> |
|
68 <a NAME="checkTryExceptPass" ID="checkTryExceptPass"></a> |
|
69 <h2>checkTryExceptPass</h2> |
|
70 <b>checkTryExceptPass</b>(<i>reportError, context, config</i>) |
|
71 |
|
72 <p> |
|
73 Function to check for a pass in the except block. |
|
74 </p> |
|
75 <dl> |
|
76 |
|
77 <dt><i>reportError</i> (func)</dt> |
|
78 <dd> |
|
79 function to be used to report errors |
|
80 </dd> |
|
81 <dt><i>context</i> (SecurityContext)</dt> |
|
82 <dd> |
|
83 security context object |
|
84 </dd> |
|
85 <dt><i>config</i> (dict)</dt> |
|
86 <dd> |
|
87 dictionary with configuration data |
|
88 </dd> |
|
89 </dl> |
|
90 <div align="right"><a href="#top">Up</a></div> |
|
91 <hr /> |
|
92 <hr /> |
|
93 <a NAME="getChecks" ID="getChecks"></a> |
|
94 <h2>getChecks</h2> |
|
95 <b>getChecks</b>(<i></i>) |
|
96 |
|
97 <p> |
|
98 Public method to get a dictionary with checks handled by this module. |
|
99 </p> |
|
100 <dl> |
|
101 <dt>Return:</dt> |
|
102 <dd> |
|
103 dictionary containing checker lists containing checker function and |
|
104 list of codes |
|
105 </dd> |
|
106 </dl> |
|
107 <dl> |
|
108 <dt>Return Type:</dt> |
|
109 <dd> |
|
110 dict |
|
111 </dd> |
|
112 </dl> |
|
113 <div align="right"><a href="#top">Up</a></div> |
|
114 <hr /> |
|
115 </body></html> |