microsoft / vswhere
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 65 files with 4,342 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (560 lines of code)
    • 3 medium size files (725 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,204 lines of code)
    • 53 very small files (1,853 lines of code)
0% | 12% | 16% | 27% | 42%
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
cpp0% | 23% | 30% | 24% | 21%
vcxproj0% | 0% | 0% | 100% | 0%
filters0% | 0% | 0% | 79% | 20%
h0% | 0% | 0% | 12% | 87%
yml0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/vswhere.lib0% | 15% | 19% | 24% | 40%
src/vswhere0% | 0% | 0% | 82% | 17%
inc0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
docker0% | 0% | 0% | 0% | 100%
pkg/vswhere/build0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Formatter.cpp
in src/vswhere.lib
560 29
InstanceSelector.cpp
in src/vswhere.lib
271 7
CommandArgs.cpp
in src/vswhere.lib
234 7
VersionRange.cpp
in src/vswhere.lib
220 4
Glob.cpp
in src/vswhere.lib
200 5
vcxproj
vswhere.lib.vcxproj
in src/vswhere.lib
174 -
filters
vswhere.lib.vcxproj.filters
in src/vswhere.lib
167 -
Program.cpp
in src/vswhere
163 4
CommandArgs.h
in src/vswhere.lib
152 11
vcxproj
vswhere.vcxproj
in src/vswhere
144 -
LegacyInstance.cpp
in src/vswhere.lib
103 10
JsonFormatter.cpp
in src/vswhere.lib
101 15
Console.cpp
in src/vswhere.lib
99 10
build.yml
in inc
88 -
Formatter.h
in src/vswhere.lib
87 11
LegacyInstance.h
in src/vswhere.lib
82 1
VersionRange.h
in src/vswhere.lib
82 1
XmlFormatter.cpp
in src/vswhere.lib
81 11
test.ps1
in tools
81 -
Scope.h
in src/vswhere.lib
79 2
Module.cpp
in src/vswhere.lib
71 1
JsonScope.cpp
in src/vswhere.lib
62 6
stdafx.h
in src/vswhere.lib
59 -
SafeArray.h
in src/vswhere.lib
56 3
JsonScope.h
in src/vswhere.lib
53 4
JsonFormatter.h
in src/vswhere.lib
50 3
CommandParser.cpp
in src/vswhere.lib
46 2
XmlFormatter.h
in src/vswhere.lib
45 3
filters
vswhere.vcxproj.filters
in src/vswhere
42 -
Console.h
in src/vswhere.lib
41 1
LegacyProvider.cpp
in src/vswhere.lib
40 2
TextFormatter.cpp
in src/vswhere.lib
40 4
Glob.h
in src/vswhere.lib
37 -
InstanceSelector.h
in src/vswhere.lib
35 1
resource.h
in src/vswhere.lib
35 -
ResourceManager.cpp
in src/vswhere.lib
30 2
LegacyProvider.h
in src/vswhere.lib
29 -
Module.h
in src/vswhere.lib
29 -
TextFormatter.h
in src/vswhere.lib
29 1
Exceptions.h
in src/vswhere.lib
27 -
CommandParser.h
in src/vswhere.lib
25 -
ResourceManager.h
in src/vswhere.lib
24 2
ValueFormatter.h
in src/vswhere.lib
24 2
XmlScope.h
in src/vswhere.lib
21 -
azure-pipelines.yml
in root
20 -
props
VersionInfo.props
in inc
19 -
props
Common.Debug.props
in inc
18 -
props
Common.props
in inc
18 -
CoInitializer.h
in src/vswhere.lib
17 -
Utilities.h
in src/vswhere.lib
17 2
Files With Most Units (Top 20)
File# lines# units
Formatter.cpp
in src/vswhere.lib
560 29
JsonFormatter.cpp
in src/vswhere.lib
101 15
CommandArgs.h
in src/vswhere.lib
152 11
Formatter.h
in src/vswhere.lib
87 11
XmlFormatter.cpp
in src/vswhere.lib
81 11
Console.cpp
in src/vswhere.lib
99 10
LegacyInstance.cpp
in src/vswhere.lib
103 10
CommandArgs.cpp
in src/vswhere.lib
234 7
InstanceSelector.cpp
in src/vswhere.lib
271 7
JsonScope.cpp
in src/vswhere.lib
62 6
Glob.cpp
in src/vswhere.lib
200 5
JsonScope.h
in src/vswhere.lib
53 4
TextFormatter.cpp
in src/vswhere.lib
40 4
VersionRange.cpp
in src/vswhere.lib
220 4
Program.cpp
in src/vswhere
163 4
JsonFormatter.h
in src/vswhere.lib
50 3
SafeArray.h
in src/vswhere.lib
56 3
XmlFormatter.h
in src/vswhere.lib
45 3
CommandParser.cpp
in src/vswhere.lib
46 2
LegacyProvider.cpp
in src/vswhere.lib
40 2
Files With Long Lines (Top 20)

There are 22 files with lines longer than 120 characters. In total, there are 52 long lines.

File# lines# units# long lines
vcxproj
vswhere.vcxproj
in src/vswhere
144 - 11
vcxproj
vswhere.lib.vcxproj
in src/vswhere.lib
174 - 9
test.ps1
in tools
81 - 4
props
VersionInfo.props
in inc
19 - 2
build.yml
in inc
88 - 2
CommandArgs.cpp
in src/vswhere.lib
234 7 2
Formatter.cpp
in src/vswhere.lib
560 29 2
Formatter.h
in src/vswhere.lib
87 11 2
Scope.h
in src/vswhere.lib
79 2 2
Utilities.h
in src/vswhere.lib
17 2 2
XmlScope.cpp
in src/vswhere.lib
12 2 2
XmlScope.h
in src/vswhere.lib
21 - 2
docker-compose.debug.yml
in docker
13 - 1
Exceptions.cpp
in src/vswhere.lib
13 1 1
InstanceSelector.cpp
in src/vswhere.lib
271 7 1
InstanceSelector.h
in src/vswhere.lib
35 1 1
JsonScope.h
in src/vswhere.lib
53 4 1
LegacyProvider.h
in src/vswhere.lib
29 - 1
Module.cpp
in src/vswhere.lib
71 1 1
TextFormatter.cpp
in src/vswhere.lib
40 4 1