Documentation/Source/eric6.DataViews.CodeMetrics.html

changeset 4569
8ff785ae7ae6
parent 3673
e26d7d0c1088
child 5606
da305d172769
equal deleted inserted replaced
4568:5a5666ab6e89 4569:8ff785ae7ae6
49 <table> 49 <table>
50 <tr> 50 <tr>
51 <td><a href="#analyze">analyze</a></td> 51 <td><a href="#analyze">analyze</a></td>
52 <td>Module function used analyze the source of a Python file.</td> 52 <td>Module function used analyze the source of a Python file.</td>
53 </tr><tr> 53 </tr><tr>
54 <td><a href="#main">main</a></td>
55 <td>Module main function used when called as a script.</td>
56 </tr><tr>
57 <td><a href="#summarize">summarize</a></td> 54 <td><a href="#summarize">summarize</a></td>
58 <td>Module function used to collect overall statistics.</td> 55 <td>Module function used to collect overall statistics.</td>
59 </tr> 56 </tr>
60 </table> 57 </table>
61 <hr /><hr /> 58 <hr /><hr />
145 <td>Constructor</td> 142 <td>Constructor</td>
146 </tr><tr> 143 </tr><tr>
147 <td><a href="#SourceStat.dedent">dedent</a></td> 144 <td><a href="#SourceStat.dedent">dedent</a></td>
148 <td>Public method used to decrement the indentation level.</td> 145 <td>Public method used to decrement the indentation level.</td>
149 </tr><tr> 146 </tr><tr>
150 <td><a href="#SourceStat.dump">dump</a></td>
151 <td>Public method used to format and print the collected statistics.</td>
152 </tr><tr>
153 <td><a href="#SourceStat.getCounter">getCounter</a></td> 147 <td><a href="#SourceStat.getCounter">getCounter</a></td>
154 <td>Public method used to get a specific counter value.</td> 148 <td>Public method used to get a specific counter value.</td>
155 </tr><tr> 149 </tr><tr>
156 <td><a href="#SourceStat.inc">inc</a></td> 150 <td><a href="#SourceStat.inc">inc</a></td>
157 <td>Public method used to increment the value of a key.</td> 151 <td>Public method used to increment the value of a key.</td>
185 </dl><dl> 179 </dl><dl>
186 <dt>Raises <b>ValueError</b>:</dt> 180 <dt>Raises <b>ValueError</b>:</dt>
187 <dd> 181 <dd>
188 raised to indicate an invalid indentation level 182 raised to indicate an invalid indentation level
189 </dd> 183 </dd>
190 </dl><a NAME="SourceStat.dump" ID="SourceStat.dump"></a> 184 </dl><a NAME="SourceStat.getCounter" ID="SourceStat.getCounter"></a>
191 <h4>SourceStat.dump</h4>
192 <b>dump</b>(<i></i>)
193 <p>
194 Public method used to format and print the collected statistics.
195 </p><a NAME="SourceStat.getCounter" ID="SourceStat.getCounter"></a>
196 <h4>SourceStat.getCounter</h4> 185 <h4>SourceStat.getCounter</h4>
197 <b>getCounter</b>(<i>id, key</i>) 186 <b>getCounter</b>(<i>id, key</i>)
198 <p> 187 <p>
199 Public method used to get a specific counter value. 188 Public method used to get a specific counter value.
200 </p><dl> 189 </p><dl>
307 a statistics object with the collected code statistics (SourceStat) 296 a statistics object with the collected code statistics (SourceStat)
308 </dd> 297 </dd>
309 </dl> 298 </dl>
310 <div align="right"><a href="#top">Up</a></div> 299 <div align="right"><a href="#top">Up</a></div>
311 <hr /><hr /> 300 <hr /><hr />
312 <a NAME="main" ID="main"></a>
313 <h2>main</h2>
314 <b>main</b>(<i></i>)
315 <p>
316 Module main function used when called as a script.
317 </p><p>
318 Loop over all files given on the command line and collect the individual
319 and overall source code statistics.
320 </p>
321 <div align="right"><a href="#top">Up</a></div>
322 <hr /><hr />
323 <a NAME="summarize" ID="summarize"></a> 301 <a NAME="summarize" ID="summarize"></a>
324 <h2>summarize</h2> 302 <h2>summarize</h2>
325 <b>summarize</b>(<i>total, key, value</i>) 303 <b>summarize</b>(<i>total, key, value</i>)
326 <p> 304 <p>
327 Module function used to collect overall statistics. 305 Module function used to collect overall statistics.

eric ide

mercurial