41 <td><a href="#initService">initService</a></td> |
41 <td><a href="#initService">initService</a></td> |
42 <td>Initialize the service and return the entry point.</td> |
42 <td>Initialize the service and return the entry point.</td> |
43 </tr> |
43 </tr> |
44 <tr> |
44 <tr> |
45 <td><a href="#maintainabilityIndex">maintainabilityIndex</a></td> |
45 <td><a href="#maintainabilityIndex">maintainabilityIndex</a></td> |
46 <td>Private function to calculate the maintainability index of one file.</td> |
46 <td></td> |
47 </tr> |
47 </tr> |
48 <tr> |
48 <tr> |
49 <td><a href="#workerTask">workerTask</a></td> |
49 <td><a href="#workerTask">workerTask</a></td> |
50 <td>Module function acting as the parallel worker for the maintainability index calculation.</td> |
50 <td>Module function acting as the parallel worker for the maintainability index calculation.</td> |
51 </tr> |
51 </tr> |
52 </table> |
52 </table> |
53 <hr /> |
53 <hr /> |
54 <hr /> |
54 <hr /> |
55 <a NAME="__maintainabilityIndex" ID="__maintainabilityIndex"></a> |
55 <a NAME="__maintainabilityIndex" ID="__maintainabilityIndex"></a> |
56 <h2>__maintainabilityIndex</h2> |
56 <h2>__maintainabilityIndex</h2> |
57 <b>__maintainabilityIndex</b>(<i>file, text=""</i>) |
57 <b>__maintainabilityIndex</b>(<i>text</i>) |
58 |
58 |
59 <p> |
59 <p> |
60 Private function to calculate the maintainability index for one Python |
60 Private function to calculate the maintainability index for one Python |
61 file. |
61 file. |
62 </p> |
62 </p> |
63 <dl> |
63 <dl> |
64 |
64 |
65 <dt><i>file</i> (str)</dt> |
|
66 <dd> |
|
67 source filename |
|
68 </dd> |
|
69 <dt><i>text</i> (str)</dt> |
65 <dt><i>text</i> (str)</dt> |
70 <dd> |
66 <dd> |
71 source text |
67 source text |
72 </dd> |
68 </dd> |
73 </dl> |
69 </dl> |
155 <hr /> |
151 <hr /> |
156 <a NAME="maintainabilityIndex" ID="maintainabilityIndex"></a> |
152 <a NAME="maintainabilityIndex" ID="maintainabilityIndex"></a> |
157 <h2>maintainabilityIndex</h2> |
153 <h2>maintainabilityIndex</h2> |
158 <b>maintainabilityIndex</b>(<i>file, text=""</i>) |
154 <b>maintainabilityIndex</b>(<i>file, text=""</i>) |
159 |
155 |
160 <p> |
|
161 Private function to calculate the maintainability index of one file. |
|
162 </p> |
|
163 <dl> |
|
164 |
|
165 <dt><i>file</i> (str)</dt> |
|
166 <dd> |
|
167 source filename |
|
168 </dd> |
|
169 <dt><i>text</i> (str)</dt> |
|
170 <dd> |
|
171 source text |
|
172 </dd> |
|
173 </dl> |
|
174 <dl> |
|
175 <dt>Return:</dt> |
|
176 <dd> |
|
177 tuple containing the result dictionary |
|
178 </dd> |
|
179 </dl> |
|
180 <dl> |
|
181 <dt>Return Type:</dt> |
|
182 <dd> |
|
183 (tuple of dict) |
|
184 </dd> |
|
185 </dl> |
|
186 <div align="right"><a href="#top">Up</a></div> |
156 <div align="right"><a href="#top">Up</a></div> |
187 <hr /> |
157 <hr /> |
188 <hr /> |
158 <hr /> |
189 <a NAME="workerTask" ID="workerTask"></a> |
159 <a NAME="workerTask" ID="workerTask"></a> |
190 <h2>workerTask</h2> |
160 <h2>workerTask</h2> |