microsoft / powerbi-visuals-utils-localizationutils
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 29 units with 754 lines of code in units (85.1% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (301 lines of code)
    • 8 medium size units (253 lines of code)
    • 9 small units (136 lines of code)
    • 8 very small units (64 lines of code)
0% | 39% | 33% | 18% | 8%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 39% | 33% | 18% | 8%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 39% | 33% | 18% | 8%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static async UploadStringsToAllRepos()
in src/localizationStringsUploader.ts
93 12 2
public static async UploadStringsToCommonRepo()
in src/localizationStringsUploader.ts
86 5 1
public static Run()
in src/translationsValidator.ts
64 16 0
58 9 4
39 5 1
public static Run()
in src/jsonValidator.ts
36 8 0
public static UpdateDestinationFolders()
in src/localizationStringsUpdater.ts
36 11 2
33 4 2
public static async UpdateBranchFromMasterRepo()
in src/localizationStringsUploader.ts
32 1 3
27 6 4
27 6 4
public static async GetShaModelForCurrentCommit()
in src/localizationStringsUploader.ts
23 1 3
public static CreateGithubApi()
in src/githubApiCreator.ts
19 2 0
private static BuildUrl()
in src/jsonLoader.ts
19 11 5
public static parseCapabilities()
in src/capabilitiesParser.ts
16 3 1
16 9 5
public static async IsPullRequestExists()
in src/localizationStringsUploader.ts
16 3 3
public static async Parse()
in src/allResourcesToUtilsRepo.ts
13 2 0
private static parseObjects()
in src/capabilitiesParser.ts
13 6 1
13 3 2