microsoft / MSIX-PackageSupportFramework
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 173 files with 53,200 lines of code.
    • 14 very long files (30,066 lines of code)
    • 12 long files (8,393 lines of code)
    • 22 medium size files (6,654 lines of codeclsfd_ftr_w_mp_ins)
    • 26 small files (4,070 lines of code)
    • 99 very small files (4,017 lines of code)
56% | 15% | 12% | 7% | 7%
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
h58% | 18% | 11% | 6% | 5%
cpp64% | 8% | 12% | 7% | 7%
cs44% | 32% | 0% | 14% | 8%
xaml0% | 0% | 93% | 0% | 6%
xsl0% | 0% | 100% | 0% | 0%
TXT0% | 0% | 73% | 0% | 26%
vcxproj0% | 0% | 27% | 21% | 51%
props0% | 0% | 0% | 70% | 29%
filters0% | 0% | 0% | 0% | 100%
targets0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
include/wil74% | 12% | 10% | <1% | 1%
Detours84% | 8% | 4% | 0% | 2%
include/rapidjson48% | 23% | 9% | 11% | 7%
PsfShimMonitor39% | 28% | 11% | 13% | 7%
fixups/FileRedirectionFixup37% | 0% | 13% | 15% | 34%
include0% | 34% | 21% | 30% | 13%
fixups/RegLegacyFixups0% | 38% | 32% | 21% | 8%
PsfRuntime0% | 44% | 17% | 30% | 8%
PsfLauncher0% | 0% | 70% | 0% | 29%
fixups/ElectronFixup0% | 0% | 57% | 32% | 10%
xmlToJsonConverter0% | 0% | 100% | 0% | 0%
fixups/DynamicLibraryFixup0% | 0% | 0% | 35% | 64%
ROOT0% | 0% | 0% | 45% | 54%
PsfRunDll0% | 0% | 0% | 0% | 100%
PsfShimMonitor/Properties0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
result_macros.h
in include/wil
4273 104
resource.h
in include/wil
3907 298
wistd_type_traits.h
in include/wil
3391 18
disasm.cpp
in Detours
3167 174
schema.h
in include/rapidjson
2034 140
detours.cpp
in Detours
1830 65
image.cpp
in Detours
1772 56
reader.h
in include/rapidjson
1640 68
winrt.h
in include/wil
1620 92
document.h
in include/rapidjson
1422 194
com.h
in include/wil
1366 128
creatwth.cpp
in Detours
1258 25
KernelTrace.cs
in PsfShimMonitor
1193 13
PathRedirection.cpp
in fixups/FileRedirectionFixup
1193 49
result.h
in include/wil
903 42
MainWindow.xaml.cs
in PsfShimMonitor
858 23
wistd_memory.h
in include/wil
830 38
pointer.h
in include/rapidjson
804 23
detours.h
in include
797 1
modules.cpp
in Detours
759 16
Logging.h
in fixups/RegLegacyFixups
664 31
filesystem.h
in include/wil
642 37
regex.h
in include/rapidjson/internal
580 26
Config.cpp
in PsfRuntime
532 25
encodings.h
in include/rapidjson
513 51
writer.h
in include/rapidjson
511 47
psf_config.h
in include
496 19
FindFirstFileFixup.cpp
in fixups/FileRedirectionFixup
424 7
common.h
in include/wil
401 17
wistd_functional.h
in include/wil
394 20
wistd_config.h
in include/wil
392 7
PsfPowershellScriptRunner.h
in PsfLauncher
360 18
xaml
MainWindow.xaml
in PsfShimMonitor
349 -
win32_helpers.h
in include/wil
334 27
RegistryFixups.cpp
in fixups/RegLegacyFixups
333 4
ElectronFixupForPartialTrust.cpp
in fixups/ElectronFixup
302 19
safecast.h
in include/wil
276 14
rapidjson.h
in include/rapidjson
274 -
main.cpp
in PsfLauncher
262 8
token_helpers.h
in include/wil
257 26
xsl
Format.xsl
in xmlToJsonConverter
244 -
itoa.h
in include/rapidjson/internal
243 -
TXT
README.TXT
in Detours
239 -
biginteger.h
in include/rapidjson/internal
227 10
vcxproj
RegLegacyFixups.vcxproj
in fixups/RegLegacyFixups
222 -
diyfp.h
in include/rapidjson/internal
211 8
main.cpp
in PsfRuntime
209 7
uimports.cpp
in Detours
205 1
InitializeFixup.cpp
in fixups/RegLegacyFixups
200 10
strtod.h
in include/rapidjson/internal
198 8
Files With Most Units (Top 20)
File# lines# units
resource.h
in include/wil
3907 298
document.h
in include/rapidjson
1422 194
disasm.cpp
in Detours
3167 174
schema.h
in include/rapidjson
2034 140
com.h
in include/wil
1366 128
result_macros.h
in include/wil
4273 104
winrt.h
in include/wil
1620 92
reader.h
in include/rapidjson
1640 68
detours.cpp
in Detours
1830 65
image.cpp
in Detours
1772 56
encodings.h
in include/rapidjson
513 51
PathRedirection.cpp
in fixups/FileRedirectionFixup
1193 49
writer.h
in include/rapidjson
511 47
result.h
in include/wil
903 42
wistd_memory.h
in include/wil
830 38
filesystem.h
in include/wil
642 37
encodedstream.h
in include/rapidjson
177 35
Logging.h
in fixups/RegLegacyFixups
664 31
win32_helpers.h
in include/wil
334 27
regex.h
in include/rapidjson/internal
580 26
Files With Long Lines (Top 20)

There are 90 files with lines longer than 120 characters. In total, there are 1768 long lines.

File# lines# units# long lines
result_macros.h
in include/wil
4273 104 514
resource.h
in include/wil
3907 298 208
KernelTrace.cs
in PsfShimMonitor
1193 13 115
pointer.h
in include/rapidjson
804 23 75
document.h
in include/rapidjson
1422 194 72
winrt.h
in include/wil
1620 92 62
com.h
in include/wil
1366 128 50
reader.h
in include/rapidjson
1640 68 44
schema.h
in include/rapidjson
2034 140 44
filesystem.h
in include/wil
642 37 42
xaml
MainWindow.xaml
in PsfShimMonitor
349 - 40
PathRedirection.cpp
in fixups/FileRedirectionFixup
1193 49 40
result.h
in include/wil
903 42 35
token_helpers.h
in include/wil
257 26 31
registry.h
in include/wil
178 15 23
PsfPowershellScriptRunner.h
in PsfLauncher
360 18 21
common.h
in include/wil
401 17 20
vcxproj
RegLegacyFixups.vcxproj
in fixups/RegLegacyFixups
222 - 16
pow10.h
in include/rapidjson/internal
31 1 15
vcxproj
ElectronFixup.vcxproj
in fixups/ElectronFixup
168 - 14