|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.tryExcept</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.tryExcept</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing checks for insecure except blocks. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</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="#checkTryExceptContinue">checkTryExceptContinue</a></td> |
|
44 <td>Function to check for a continue in the except block.</td> |
|
45 </tr> |
|
46 <tr> |
|
47 <td><a href="#checkTryExceptPass">checkTryExceptPass</a></td> |
|
48 <td>Function to check for a pass in the except block.</td> |
|
49 </tr> |
|
50 <tr> |
|
51 <td><a href="#getChecks">getChecks</a></td> |
|
52 <td>Public method to get a dictionary with checks handled by this module.</td> |
|
53 </tr> |
|
54 </table> |
|
55 <hr /> |
|
56 <hr /> |
|
57 <a NAME="checkTryExceptContinue" ID="checkTryExceptContinue"></a> |
|
58 <h2>checkTryExceptContinue</h2> |
|
59 <b>checkTryExceptContinue</b>(<i>reportError, context, config</i>) |
|
60 |
|
61 <p> |
|
62 Function to check for a continue in the except block. |
|
63 </p> |
|
64 <dl> |
|
65 |
|
66 <dt><i>reportError</i> (func)</dt> |
|
67 <dd> |
|
68 function to be used to report errors |
|
69 </dd> |
|
70 <dt><i>context</i> (SecurityContext)</dt> |
|
71 <dd> |
|
72 security context object |
|
73 </dd> |
|
74 <dt><i>config</i> (dict)</dt> |
|
75 <dd> |
|
76 dictionary with configuration data |
|
77 </dd> |
|
78 </dl> |
|
79 <div align="right"><a href="#top">Up</a></div> |
|
80 <hr /> |
|
81 <hr /> |
|
82 <a NAME="checkTryExceptPass" ID="checkTryExceptPass"></a> |
|
83 <h2>checkTryExceptPass</h2> |
|
84 <b>checkTryExceptPass</b>(<i>reportError, context, config</i>) |
|
85 |
|
86 <p> |
|
87 Function to check for a pass in the except block. |
|
88 </p> |
|
89 <dl> |
|
90 |
|
91 <dt><i>reportError</i> (func)</dt> |
|
92 <dd> |
|
93 function to be used to report errors |
|
94 </dd> |
|
95 <dt><i>context</i> (SecurityContext)</dt> |
|
96 <dd> |
|
97 security context object |
|
98 </dd> |
|
99 <dt><i>config</i> (dict)</dt> |
|
100 <dd> |
|
101 dictionary with configuration data |
|
102 </dd> |
|
103 </dl> |
|
104 <div align="right"><a href="#top">Up</a></div> |
|
105 <hr /> |
|
106 <hr /> |
|
107 <a NAME="getChecks" ID="getChecks"></a> |
|
108 <h2>getChecks</h2> |
|
109 <b>getChecks</b>(<i></i>) |
|
110 |
|
111 <p> |
|
112 Public method to get a dictionary with checks handled by this module. |
|
113 </p> |
|
114 <dl> |
|
115 <dt>Return:</dt> |
|
116 <dd> |
|
117 dictionary containing checker lists containing checker function and |
|
118 list of codes |
|
119 </dd> |
|
120 </dl> |
|
121 <dl> |
|
122 <dt>Return Type:</dt> |
|
123 <dd> |
|
124 dict |
|
125 </dd> |
|
126 </dl> |
|
127 <div align="right"><a href="#top">Up</a></div> |
|
128 <hr /> |
|
129 </body></html> |