|
1 | 1 | # Supported Metrics
|
2 | 2 |
|
3 |
| -**rust-code-analysis** implements a series of metrics |
4 |
| -- **CC**: it calculates the code complexity examining the |
| 3 | +**rust-code-analysis** implements a series of metrics: |
| 4 | + |
| 5 | +- **ABC**: it measures the size of a source code by counting the number of |
| 6 | +Assignments (`A`), Branches (`B`) and Conditions (`C`). |
| 7 | +- **BLANK**: it counts the number of blank lines in a source file. |
| 8 | +- **CC**: it calculates the _Cyclomatic complexity_ examining the |
5 | 9 | control flow of a program.
|
6 |
| -- **SLOC**: it counts the number of lines in a source file. |
7 |
| -- **PLOC**: it counts the number of physical lines (instructions) contained in |
8 |
| - a source file. |
9 |
| -- **LLOC**: it counts the number of logical lines (statements) contained in |
10 |
| - a source file. |
11 | 10 | - **CLOC**: it counts the number of comments in a source file.
|
12 |
| -- **BLANK**: it counts the number of blank lines in a source file. |
| 11 | +- **COGNITIVE**: it calculates the _Cognitive complexity_, measuring how complex |
| 12 | +it is to understand a unit of code. |
13 | 13 | - **HALSTEAD**: it is a suite that provides a series of information, such as the
|
14 | 14 | effort required to maintain the analyzed code, the size in bits to store the
|
15 | 15 | program, the difficulty to understand the code, an estimate of the number of
|
16 | 16 | bugs present in the codebase, and an estimate of the time needed to
|
17 | 17 | implement the software.
|
| 18 | +- **LLOC**: it counts the number of logical lines (statements) contained in a |
| 19 | +source file. |
18 | 20 | - **MI**: it is a suite that allows to evaluate the maintainability of a software.
|
19 |
| -- **NOM**: it counts the number of functions and closures in a file/trait/class. |
20 |
| -- **NEXITS**: it counts the number of possible exit points from a method/function. |
21 | 21 | - **NARGS**: it counts the number of arguments of a function/method.
|
22 |
| - |
23 |
| -The metrics above are still **NOT** implemented for C#, CSS, Go, HTML, and Java |
24 |
| -languages. |
| 22 | +- **NEXITS**: it counts the number of possible exit points from a method/function. |
| 23 | +- **NOM**: it counts the number of functions and closures in a file/trait/class. |
| 24 | +- **NPA**: it counts the number of public attributes in classes/interfaces. |
| 25 | +- **NPM**: it counts the number of public methods in classes/interfaces. |
| 26 | +- **PLOC**: it counts the number of physical lines (instructions) contained in |
| 27 | +a source file. |
| 28 | +- **SLOC**: it counts the number of lines in a source file. |
| 29 | +- **WMC**: it sums the _Cyclomatic complexity_ of every method defined in a class. |
0 commit comments