microsoft / powerbi-visuals-utils-testutils
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 24 files with 2,216 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,315 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (119 lines of code)
    • 19 very small files (782 lines of code)
0% | 0% | 59% | 5% | 35%
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
ts0% | 0% | 59% | 5% | 35%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/dataViewBuilder0% | 0% | 100% | 0% | 0%
src/helpers0% | 0% | 77% | 0% | 22%
src0% | 0% | 0% | 56% | 43%
src/mocks0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 24)
File# lines# units
matrixBuilder.ts
in src/dataViewBuilder
496 26
dataViewBuilder.ts
in src/dataViewBuilder
347 19
helpers.ts
in src/helpers
244 32
testDataViewBuilder.ts
in src/dataViewBuilder
228 8
index.ts
in src
119 -
mockVisualHost.ts
in src/mocks
99 17
mockIColorPalette.ts
in src/mocks
93 3
VisualBuilderBase.ts
in src
90 8
mocks.ts
in src/mocks
72 13
karma.conf.ts
in root
68 -
color.ts
in src/helpers
65 9
mockISelectionManager.ts
in src/mocks
57 9
mockILocalizationManager.ts
in src/mocks
46 1
mockISelectionId.ts
in src/mocks
34 7
mockISelectionIdBuilder.ts
in src/mocks
33 6
mockIStorageService.ts
in src/mocks
24 3
mockHostCapabilities.ts
in src/mocks
23 2
mockIAuthenticationService.ts
in src/mocks
19 1
mockILocale.ts
in src/mocks
19 3
mockITooltipService.ts
in src/mocks
17 5
mockIEventService.ts
in src/mocks
11 -
mockITelemetryService.ts
in src/mocks
7 1
visualTestHelpers.ts
in src/helpers
4 1
common.ts
in src
1 -
Files With Most Units (Top 20)
File# lines# units
helpers.ts
in src/helpers
244 32
matrixBuilder.ts
in src/dataViewBuilder
496 26
dataViewBuilder.ts
in src/dataViewBuilder
347 19
mockVisualHost.ts
in src/mocks
99 17
mocks.ts
in src/mocks
72 13
color.ts
in src/helpers
65 9
mockISelectionManager.ts
in src/mocks
57 9
VisualBuilderBase.ts
in src
90 8
testDataViewBuilder.ts
in src/dataViewBuilder
228 8
mockISelectionId.ts
in src/mocks
34 7
mockISelectionIdBuilder.ts
in src/mocks
33 6
mockITooltipService.ts
in src/mocks
17 5
mockIColorPalette.ts
in src/mocks
93 3
mockILocale.ts
in src/mocks
19 3
mockIStorageService.ts
in src/mocks
24 3
mockHostCapabilities.ts
in src/mocks
23 2
visualTestHelpers.ts
in src/helpers
4 1
mockIAuthenticationService.ts
in src/mocks
19 1
mockILocalizationManager.ts
in src/mocks
46 1
mockITelemetryService.ts
in src/mocks
7 1
Files With Long Lines (Top 6)

There are 6 files with lines longer than 120 characters. In total, there are 20 long lines.

File# lines# units# long lines
helpers.ts
in src/helpers
244 32 6
testDataViewBuilder.ts
in src/dataViewBuilder
228 8 5
matrixBuilder.ts
in src/dataViewBuilder
496 26 4
dataViewBuilder.ts
in src/dataViewBuilder
347 19 2
mockVisualHost.ts
in src/mocks
99 17 2
mocks.ts
in src/mocks
72 13 1