August
27
New High Score (update)!
My post from yesterday talked about the biggest class I have come across in my lifetime. Turns out, thanks to C#'s partial keyword, the class is even bigger. I have some code metrics from Visual Studio to share. Here they are:
Maintainability Index | Cyclomatic Complexity | Depth of Inheritance | Class Coupling | Lines of Source code |
49 | 9529 | 2 | 3617 | 61900 |
Here are the metrics for the 3 longest methods in the class:
Maintainability Index | Cyclomatic Complexity | Depth of Inheritance | Class Coupling | Lines of Source code |
0 | 152 | 77 | 786 | |
0 | 215 | 62 | 1181 | |
0 | 284 | 27 | 1238 |
The class itself has 1,314 methods! That is insane!
Yep, I think you are gonna have a hard time unit testing this monster.
Have you come across a bigger monstrosity? If so, leave a comment!
Pingback: Another Update to My High Score – The Code Gorilla