microsoft / service-fabric-client-dotnet
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 3,102 units with 60,816 lines of code in units (71.0% of code).
    • 31 very long units (4,593 lines of code)
    • 126 long units (9,075 lines of code)
    • 942 medium size units (28,539 lines of code)
    • 752 small units (11,384 lines of code)
    • 1,251 very small units (7,225 lines of code)
7% | 14% | 46% | 18% | 11%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs7% | 14% | 46% | 18% | 11%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/Microsoft.ServiceFabric.Client.Http/Generated10% | 17% | 50% | 13% | 8%
src/Microsoft.ServiceFabric.Powershell.Http/Generated0% | 10% | 37% | 35% | 16%
src/Microsoft.ServiceFabric.Common/Generated0% | 6% | 36% | 32% | 24%
src/Microsoft.ServiceFabric.Powershell.Http0% | 31% | 29% | 30% | 7%
src/Microsoft.ServiceFabric.Client.Http0% | 19% | 36% | 26% | 17%
src/Microsoft.ServiceFabric.Client.Http/Extensions0% | 5% | 55% | 30% | 8%
src/Microsoft.ServiceFabric.Client.Http/Serialization0% | 0% | 53% | 21% | 24%
src/Microsoft.ServiceFabric.Client0% | 0% | 48% | 38% | 13%
src/Microsoft.ServiceFabric.Common/Security0% | 0% | 21% | 38% | 40%
src/Microsoft.ServiceFabric.Common0% | 0% | 11% | 5% | 83%
src/Microsoft.ServiceFabric.Common/Utilities0% | 0% | 43% | 0% | 56%
src/Microsoft.ServiceFabric.Common/Exceptions0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.Client/Exceptions0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.Common/Extensions0% | 0% | 0% | 0% | 100%
src/Microsoft.ServiceFabric.Powershell.Http/Extensions0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static FabricErrorCodes? Deserialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricErrorCodesConverter.cs
342 85 1
internal static FabricEvent GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricEventConverter.cs
263 64 1
public static void Serialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricErrorCodesConverter.cs
260 85 2
internal static void Serialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricEventConverter.cs
256 63 2
public static FabricEventKind? Deserialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricEventKindConverter.cs
254 63 1
public static void Serialize()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/FabricEventKindConverter.cs
194 63 2
internal static StatefulServiceDescription GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/StatefulServiceDescriptionConverter.cs
175 29 1
internal static LoadMetricInformation GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/LoadMetricInformationConverter.cs
163 27 1
internal static StatelessServiceDescription GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/StatelessServiceDescriptionConverter.cs
151 25 1
internal static NodeInfo GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/NodeInfoConverter.cs
139 23 1
internal static ApplicationUpgradeProgressInfo GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ApplicationUpgradeProgressInfoConverter.cs
133 22 1
internal static ComposeDeploymentUpgradeProgressInfo GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ComposeDeploymentUpgradeProgressInfoConverter.cs
133 22 1
internal static StatefulServiceUpdateDescription GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/StatefulServiceUpdateDescriptionConverter.cs
127 21 1
internal static ApplicationEvent GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ApplicationEventConverter.cs
122 25 1
internal static ClusterUpgradeProgressObject GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ClusterUpgradeProgressObjectConverter.cs
121 20 1
internal static PartitionReconfiguredEvent GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/PartitionReconfiguredEventConverter.cs
121 20 1
internal static RepairTask GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/RepairTaskConverter.cs
121 20 1
internal static ContainerCodePackageProperties GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ContainerCodePackagePropertiesConverter.cs
116 19 1
internal static ApplicationContainerInstanceExitedEvent GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ApplicationContainerInstanceExitedEventConverter.cs
115 19 1
internal static ApplicationProcessExitedEvent GetFromJsonProperties()
in src/Microsoft.ServiceFabric.Client.Http/Generated/Serialization/ApplicationProcessExitedEventConverter.cs
115 19 1