microsoft / dotnet-framework-docker
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 17 units with 216 lines of code in units (11.8% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (59 lines of code)
    • 8 small units (111 lines of code)
    • 7 very small units (46 lines of code)
0% | 0% | 27% | 51% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 0% | 27% | 51% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
eng/update-dependencies0% | 0% | 27% | 51% | 21%
Alternative Visuals
Longest Units
Top 17 longest units
Unit# linesMcCabe index# params
private IEnumerable CreateManifestUpdaters()
in eng/update-dependencies/DependencyUpdater.cs
33 6 0
public async Task ExecuteAsync()
in eng/update-dependencies/DependencyUpdater.cs
26 3 0
private void ExecuteScript()
in eng/update-dependencies/ScriptRunnerUpdater.cs
19 3 0
private async Task CreatePullRequestAsync()
in eng/update-dependencies/DependencyUpdater.cs
17 1 1
private static async Task ExecuteAsync()
in eng/update-dependencies/Program.cs
14 2 1
public static IDependencyUpdater GetDockerfileUpdater()
in eng/update-dependencies/ScriptRunnerUpdater.cs
14 1 1
private static BuildDependencyInfo CreateBuildInfo()
in eng/update-dependencies/DependencyUpdater.cs
12 1 2
public Options()
in eng/update-dependencies/Options.cs
12 1 8
public static IEnumerable GetCliSymbols()
in eng/update-dependencies/Options.cs
12 1 0
private static IDependencyUpdater CreateManifestUpdater()
in eng/update-dependencies/DependencyUpdater.cs
11 1 2
static DependencyUpdater()
in eng/update-dependencies/DependencyUpdater.cs
10 1 0
public static Task Main()
in eng/update-dependencies/Program.cs
10 2 1
private DependencyUpdateResults UpdateFiles()
in eng/update-dependencies/DependencyUpdater.cs
8 1 1
public CustomFileRegexUpdater()
in eng/update-dependencies/CustomFileRegexUpdater.cs
5 1 2
protected override string TryGetDesiredValue()
in eng/update-dependencies/CustomFileRegexUpdater.cs
5 1 2
public DependencyUpdater()
in eng/update-dependencies/DependencyUpdater.cs
4 1 1
private ScriptRunnerUpdater()
in eng/update-dependencies/ScriptRunnerUpdater.cs
4 1 1