microsoft / axe-windows
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 666 files with 36,426 lines of code.
    • 2 very long files (2,100 lines of code)
    • 1 long files (554 lines of code)
    • 21 medium size files (6,154 lines of codeclsfd_ftr_w_mp_ins)
    • 48 small files (6,548 lines of code)
    • 594 very small files (21,070 lines of code)
5% | 1% | 16% | 17% | 57%
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
cs6% | 1% | 16% | 17% | 57%
yml0% | 0% | 76% | 0% | 23%
ps10% | 0% | 0% | 76% | 23%
vcxproj0% | 0% | 0% | 100% | 0%
xaml0% | 0% | 0% | 0% | 100%
cpp0% | 0% | 0% | 0% | 100%
targets0% | 0% | 0% | 0% | 100%
wixproj0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
MD0% | 0% | 0% | 0% | 100%
filters0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
wxs0% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/RulesTest21% | 0% | 24% | 10% | 43%
src/Desktop0% | 9% | 9% | 16% | 64%
src/Core0% | 0% | 33% | 23% | 42%
src/CLITests0% | 0% | 56% | 43% | 0%
src/AutomationTests0% | 0% | 53% | 32% | 13%
src/Rules0% | 0% | 4% | 9% | 86%
build0% | 0% | 62% | 0% | 37%
src/Actions0% | 0% | 17% | 28% | 53%
src/ActionsTests0% | 0% | 54% | 25% | 20%
src/CoreTests0% | 0% | 0% | 27% | 72%
src/CLI0% | 0% | 0% | 37% | 62%
src/DesktopTests0% | 0% | 0% | 54% | 45%
tools/scripts0% | 0% | 0% | 76% | 23%
tools/WindowsFormsControlSampler0% | 0% | 0% | 78% | 21%
tools/Win32ControlSampler0% | 0% | 0% | 48% | 51%
src/Win32Tests0% | 0% | 0% | 100% | 0%
src/CurrentFileVersionCompatibilityTests0% | 0% | 0% | 64% | 35%
src/TelemetryTests0% | 0% | 0% | 69% | 30%
src/Automation0% | 0% | 0% | 0% | 100%
src/SystemAbstractions0% | 0% | 0% | 0% | 100%
tools/WildlifeManager0% | 0% | 0% | 0% | 100%
src/RuleSelection0% | 0% | 0% | 0% | 100%
src/Win320% | 0% | 0% | 0% | 100%
src/Telemetry0% | 0% | 0% | 0% | 100%
tools/WpfControlSampler0% | 0% | 0% | 0% | 100%
src/CLI_Installer0% | 0% | 0% | 0% | 100%
src/RulesMD0% | 0% | 0% | 0% | 100%
src/OldFileVersionCompatibilityTests0% | 0% | 0% | 0% | 100%
src/UnitTestSharedLibrary0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
src/RuleSelectionTests0% | 0% | 0% | 0% | 100%
src/SystemAbstractionsTests0% | 0% | 0% | 0% | 100%
src/InteropDummy0% | 0% | 0% | 0% | 100%
src/CI0% | 0% | 0% | 0% | 100%
src/props0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
RelationshipsTest.cs
in src/RulesTest/PropertyConditions
1094 84
MonsterTest.cs
in src/RulesTest
1006 9
EventListenerFactory.cs
in src/Desktop/UIAutomation/EventHandlers
554 20
A11yElement.cs
in src/Core/Bases
480 15
OutputGeneratorUnitTests.cs
in src/CLITests
431 25
ExtensionMethods.cs
in src/Core/Misc
427 38
StringPropertiesTest.cs
in src/RulesTest/PropertyConditions
359 36
DesktopElementExtensionMethods.cs
in src/Desktop/UIAutomation
345 20
BoolPropertiesTest.cs
in src/RulesTest/PropertyConditions
313 35
SnapshotCommandUnitTests.cs
in src/AutomationTests
311 18
signedbuild.yml
in build
296 -
Relationships.cs
in src/Rules/PropertyConditions
296 40
SelectAction.cs
in src/Actions/Actions
288 18
NameTest.cs
in src/RulesTest/PropertyConditions
269 17
MockA11yElement.cs
in src/RulesTest
267 2
ElementGroupsTests.cs
in src/RulesTest/PropertyConditions
266 19
BoundingRectangleContainedInParentTest.cs
in src/RulesTest/Library
256 15
OutputFileHelperUnitTests.cs
in src/AutomationTests
237 11
A11yAutomation.cs
in src/Desktop/UIAutomation
232 13
BoundingRectangleTest.cs
in src/RulesTest/PropertyConditions
228 24
RuleRunnerTests.cs
in src/RulesTest
219 11
CaptureActionUnitTests.cs
in src/ActionsTests/Actions
217 8
ListItemSiblingUniqueTests.cs
in src/RulesTest/Library
213 12
OptionsEvaluatorUnitTests.cs
in src/CLITests
204 15
PropertyType.cs
in src/Core/Types
199 3
Form1.Designer.cs
in tools/WindowsFormsControlSampler/src/WindowsFormsControlSampler
197 2
BoundingRectangleCompletelyObscuresContainerTest.cs
in src/RulesTest/Library
193 12
ScrollPatternTest.cs
in src/RulesTest/PropertyConditions
191 16
BoundedCounterUnitTests.cs
in src/CoreTests/Misc
189 15
IsKeyboardFocusableShouldBeTrue.cs
in src/RulesTest/Library
188 14
ScanResultsAssemblerTests.cs
in src/AutomationTests
185 9
RuleId.cs
in src/Core/Enums
184 -
ElementGroups.cs
in src/Rules/PropertyConditions
180 19
vcxproj
Win32ControlSampler.vcxproj
in tools/Win32ControlSampler/src/Win32ControlSampler
172 -
LocalizedControlTypeIsReasonable.cs
in src/Rules/Library
167 4
Win32ApisTests.cs
in src/Win32Tests
166 23
OutputGenerator.cs
in src/CLI
159 12
TextRange.cs
in src/Desktop/UIAutomation/Patterns
156 21
SupportedEvents.cs
in src/Desktop/Utility
152 1
AutomationIntegrationTests.cs
in src/AutomationTests
149 8
A11yProperty.cs
in src/Core/Bases
148 8
StringProperty.cs
in src/Rules/PropertyConditions
142 16
DataManager.cs
in src/Actions/Actions
140 13
ImageTests.cs
in src/DesktopTests/ColorContrastAnalyzer
133 12
TreeTracker.cs
in src/Actions/Trackers
129 18
DesktopElementAncestry.cs
in src/Desktop/UIAutomation/TreeWalkers
128 3
BoundingRectangleNotNullTest.cs
in src/RulesTest/Library
128 9
OptionsUnitTests.cs
in src/CLITests
127 9
ProcessHelperUnitTests.cs
in src/CLITests
127 10
TextWriterVerifier.cs
in src/CLITests
127 10
Files With Most Units (Top 20)
File# lines# units
RelationshipsTest.cs
in src/RulesTest/PropertyConditions
1094 84
Relationships.cs
in src/Rules/PropertyConditions
296 40
ExtensionMethods.cs
in src/Core/Misc
427 38
StringPropertiesTest.cs
in src/RulesTest/PropertyConditions
359 36
BoolPropertiesTest.cs
in src/RulesTest/PropertyConditions
313 35
OutputGeneratorUnitTests.cs
in src/CLITests
431 25
BoundingRectangleTest.cs
in src/RulesTest/PropertyConditions
228 24
Win32ApisTests.cs
in src/Win32Tests
166 23
TextRange.cs
in src/Desktop/UIAutomation/Patterns
156 21
DesktopElementExtensionMethods.cs
in src/Desktop/UIAutomation
345 20
EventListenerFactory.cs
in src/Desktop/UIAutomation/EventHandlers
554 20
ElementGroups.cs
in src/Rules/PropertyConditions
180 19
ElementGroupsTests.cs
in src/RulesTest/PropertyConditions
266 19
SelectAction.cs
in src/Actions/Actions
288 18
TreeTracker.cs
in src/Actions/Trackers
129 18
SnapshotCommandUnitTests.cs
in src/AutomationTests
311 18
StyleIdTests.cs
in src/DesktopTests/Styles
99 18
NameTest.cs
in src/RulesTest/PropertyConditions
269 17
StringProperty.cs
in src/Rules/PropertyConditions
142 16
ClickablePointTests.cs
in src/RulesTest/PropertyConditions
124 16
Files With Long Lines (Top 20)

There are 243 files with lines longer than 120 characters. In total, there are 716 long lines.

File# lines# units# long lines
ControlType.cs
in src/Rules/PropertyConditions
47 - 40
SupportedEvents.cs
in src/Desktop/Utility
152 1 31
ScrollPatternTest.cs
in src/RulesTest/PropertyConditions
191 16 24
EventListenerFactory.cs
in src/Desktop/UIAutomation/EventHandlers
554 20 19
xaml
MainWindow.xaml
in tools/WpfControlSampler/src/WpfControlSampler
48 - 14
README.MD
in src/CLI
44 - 13
wixproj
CLI_Installer.wixproj
in src/CLI_Installer
66 - 12
RegistrarTests.cs
in src/DesktopTests/UIAutomation/CustomObjects
117 11 12
xaml
MainWindow.xaml
in tools/WildlifeManager/src/WildlifeManager
95 - 11
HeadingLevelTypeTests.cs
in src/CoreTests/Types
59 10 10
ScanResultsAssemblerTests.cs
in src/AutomationTests
185 9 9
ContentView.cs
in src/Rules/PropertyConditions
47 2 9
MonsterTest.cs
in src/RulesTest
1006 9 9
CaptureActionUnitTests.cs
in src/ActionsTests/Actions
217 8 8
SnapshotCommand.cs
in src/Automation
51 3 8
TransformPattern2.cs
in src/Desktop/UIAutomation/Patterns
48 5 8
ControlView.cs
in src/Rules/PropertyConditions
114 8 8
AssemblyInfo.cs
in src/Win32
30 - 8
TextEditTextChangedEventListener.cs
in src/Desktop/UIAutomation/EventHandlers
67 4 7
Landmarks.cs
in src/Rules/PropertyConditions
20 - 7