Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: halstead complexity printer #1878

Merged
merged 16 commits into from Sep 15, 2023
Merged

feat: halstead complexity printer #1878

merged 16 commits into from Sep 15, 2023

Conversation

devtooligan
Copy link
Contributor

@devtooligan devtooligan commented May 1, 2023

Halstead complexity core metrics:
+-----------------------+-----------------+------------------+----------------+-----------------+
|        Contract       | Total Operators | Unique Operators | Total Operands | Unique Operands |
+-----------------------+-----------------+------------------+----------------+-----------------+
| SimpleVulnerableToken |        74       |        11        |      138       |        44       |
+-----------------------+-----------------+------------------+----------------+-----------------+

Halstead complexity extended metrics1:
+-----------------------+------------+----------------+------------------+--------+
|        Contract       | Vocabulary | Program Length | Estimated Length | Volume |
+-----------------------+------------+----------------+------------------+--------+
| SimpleVulnerableToken |     55     |      212       |       278        |  1226  |
+-----------------------+------------+----------------+------------------+--------+

Halstead complexity extended metrics2:
+-----------------------+------------+--------+------+----------------+
|        Contract       | Difficulty | Effort | Time | Estimated Bugs |
+-----------------------+------------+--------+------+----------------+
| SimpleVulnerableToken |     17     | 21142  | 1175 |     0.255      |
+-----------------------+------------+--------+------+----------------+

INFO:Slither:./examples/printers/human_printer.sol analyzed (1 contracts)

@devtooligan devtooligan marked this pull request as draft May 5, 2023 05:00
@devtooligan devtooligan marked this pull request as ready for review May 9, 2023 23:05
@montyly
Copy link
Member

montyly commented Jun 22, 2023

I think we should apply the same changes I did for #1882 (comment) / e855728

If no one can take the lead on it, I will do it before tomorrow

@devtooligan
Copy link
Contributor Author

@montyly I think that's a great suggestion I can take care of this next week.

@montyly montyly merged commit 251dee0 into dev Sep 15, 2023
83 checks passed
@montyly montyly deleted the halstead branch September 15, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants