microsoft / powerbi-visuals-utils-formattingutils
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 25 files with 26,880 lines of code.
    • 2 very long files (23,782 lines of code)
    • 2 long files (1,476 lines of code)
    • 3 medium size files (763 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (364 lines of code)
    • 15 very small files (495 lines of code)
88% | 5% | 2% | 1% | 1%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts88% | 5% | 2% | 1% | 1%
less0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
globalize100% | 0% | 0% | 0% | 0%
src/formattingService0% | 98% | 0% | 0% | 1%
src0% | 45% | 21% | 22% | 10%
src/displayUnitSystem0% | 0% | 98% | 0% | 2%
src/date0% | 0% | 56% | 0% | 43%
src/number0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 0% | 100%
src/storageService0% | 0% | 0% | 0% | 100%
src/font0% | 0% | 0% | 0% | 100%
src/styles0% | 0% | 0% | 0% | 100%
Longest Files (Top 25)
File# lines# units
globalize.cultures.ts
in globalize
22586 143
globalize.ts
in globalize
1196 45
formattingService.ts
in src/formattingService
972 42
valueFormatter.ts
in src
504 21
displayUnitSystem.ts
in src/displayUnitSystem
294 34
dateTimeSequence.ts
in src/date
236 16
textMeasurementService.ts
in src
233 15
stringExtensions.ts
in src
146 26
numberFormatter.ts
in src/number
115 2
wordBreaker.ts
in src
103 9
dateFormatter.ts
in src/date
93 3
dateUtils.ts
in src/date
89 9
karma.conf.ts
in root
77 -
formatting.ts
in src
70 2
ephemeralStorageService.ts
in src/storageService
27 4
familyInfo.ts
in src/font
25 2
localStorageService.ts
in src/storageService
23 2
interfaces.ts
in src
18 -
iFormattingService.ts
in src/formattingService
17 -
index.ts
in src
17 -
family.ts
in src/font
12 -
textUtil.ts
in src
11 3
displayUnitSystemType.ts
in src/displayUnitSystem
6 -
style.less
in src/styles
6 -
iStorageService.ts
in src/storageService
4 -
Files With Most Units (Top 17)
File# lines# units
globalize.cultures.ts
in globalize
22586 143
globalize.ts
in globalize
1196 45
formattingService.ts
in src/formattingService
972 42
displayUnitSystem.ts
in src/displayUnitSystem
294 34
stringExtensions.ts
in src
146 26
valueFormatter.ts
in src
504 21
dateTimeSequence.ts
in src/date
236 16
textMeasurementService.ts
in src
233 15
dateUtils.ts
in src/date
89 9
wordBreaker.ts
in src
103 9
ephemeralStorageService.ts
in src/storageService
27 4
dateFormatter.ts
in src/date
93 3
textUtil.ts
in src
11 3
familyInfo.ts
in src/font
25 2
formatting.ts
in src
70 2
numberFormatter.ts
in src/number
115 2
localStorageService.ts
in src/storageService
23 2
Files With Long Lines (Top 14)

There are 14 files with lines longer than 120 characters. In total, there are 938 long lines.

File# lines# units# long lines
globalize.cultures.ts
in globalize
22586 143 878
formattingService.ts
in src/formattingService
972 42 21
displayUnitSystem.ts
in src/displayUnitSystem
294 34 12
dateTimeSequence.ts
in src/date
236 16 6
globalize.ts
in globalize
1196 45 4
dateFormatter.ts
in src/date
93 3 3
formatting.ts
in src
70 2 3
textMeasurementService.ts
in src
233 15 3
valueFormatter.ts
in src
504 21 3
familyInfo.ts
in src/font
25 2 1
iFormattingService.ts
in src/formattingService
17 - 1
index.ts
in src
17 - 1
stringExtensions.ts
in src
146 26 1
wordBreaker.ts
in src
103 9 1