microsoft / DACExtensions
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 42 files with 60,974 lines of code.
    • 4 very long files (57,801 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (679 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,288 lines of code)
    • 26 very small files (1,206 lines of code)
94% | 0% | 1% | 2% | 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
cs95% | 0% | 1% | 1% | 1%
ps10% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
DacFxStronglyTypedModel98% | 0% | <1% | <1% | <1%
RuleTests0% | 0% | 42% | 51% | 6%
SampleTests0% | 0% | 32% | 67% | 0%
Scripts0% | 0% | 0% | 100% | 0%
RuleSamples0% | 0% | 0% | 21% | 78%
SampleConsoleApp0% | 0% | 0% | 27% | 72%
SampleConsoleApp/Properties0% | 0% | 0% | 0% | 100%
SampleTests/Properties0% | 0% | 0% | 0% | 100%
DacFxStronglyTypedModel/Properties0% | 0% | 0% | 0% | 100%
RuleSamples/Properties0% | 0% | 0% | 0% | 100%
RuleTests/Properties0% | 0% | 0% | 0% | 100%
Longest Files (Top 42)
File# lines# units
VersionSpecificImplementations.cs
in DacFxStronglyTypedModel
21040 -
Interfaces.cs
in DacFxStronglyTypedModel
20705 -
model.cs
in DacFxStronglyTypedModel
13522 601
ModelUtilityMethods.cs
in DacFxStronglyTypedModel
2534 2
RuleTest.cs
in RuleTests
264 17
ModelExtensions.cs
in DacFxStronglyTypedModel
211 -
TestFiltering.cs
in SampleTests
204 17
RuleTestCases.cs
in RuleTests
198 9
TestDbLocationModifiers.cs
in SampleTests
177 10
TSqlModelElement.cs
in DacFxStronglyTypedModel
175 35
TestCreateIndexOperationalPropsModifier.cs
in SampleTests
138 9
RemoveMasterKey.ps1
in Scripts
132 -
TSqlScriptDomUtils.cs
in RuleSamples
129 13
BaselinedRuleTest.cs
in RuleTests
121 7
RunCodeAnalysisExample.cs
in SampleConsoleApp
111 4
TestDeploymentStoppingContributor.cs
in SampleTests
107 7
InMemoryTableBin2CollationRule.cs
in RuleSamples
97 5
TSqlTypedModel.cs
in DacFxStronglyTypedModel
95 16
RunValidateQuerySemanticallyExample.cs
in SampleConsoleApp
86 4
ModelFilterExample.cs
in SampleConsoleApp
85 5
MarkerInterfaces.cs
in DacFxStronglyTypedModel
82 6
LocalizedExportCodeAnalysisRuleAttribute.cs
in RuleSamples
77 4
ModelEndToEnd.cs
in SampleConsoleApp
77 3
TSqlModelElementReference.cs
in DacFxStronglyTypedModel
72 4
CapitalizedNamesRule.cs
in RuleSamples
67 4
ViewsOnMemoryOptimizedTableRule.cs
in RuleSamples
67 4
AvoidWaitForDelayRule.cs
in RuleSamples
62 3
ISqlModelElement.cs
in DacFxStronglyTypedModel
46 -
TableNameEndingInViewRule.cs
in RuleSamples
46 3
RuleTestUtils.cs
in RuleTests
42 2
Program.cs
in SampleConsoleApp
42 -
WaitForDelayVisitor.cs
in RuleSamples
21 2
RuleConstants.cs
in RuleSamples
19 -
RuleUtils.cs
in RuleSamples
19 2
UnresolvedElementException.cs
in DacFxStronglyTypedModel
17 4
AssemblyInfo.cs
in SampleConsoleApp/Properties
16 -
AssemblyInfo.cs
in SampleTests/Properties
16 -
AssemblyInfo.cs
in DacFxStronglyTypedModel/Properties
15 -
AssemblyInfo.cs
in RuleSamples/Properties
15 -
AssemblyInfo.cs
in RuleTests/Properties
15 -
ISqlModelElementReference.cs
in DacFxStronglyTypedModel
9 -
Utils.cs
in DacFxStronglyTypedModel
1 -
Files With Most Units (Top 20)
File# lines# units
model.cs
in DacFxStronglyTypedModel
13522 601
TSqlModelElement.cs
in DacFxStronglyTypedModel
175 35
RuleTest.cs
in RuleTests
264 17
TestFiltering.cs
in SampleTests
204 17
TSqlTypedModel.cs
in DacFxStronglyTypedModel
95 16
TSqlScriptDomUtils.cs
in RuleSamples
129 13
TestDbLocationModifiers.cs
in SampleTests
177 10
RuleTestCases.cs
in RuleTests
198 9
TestCreateIndexOperationalPropsModifier.cs
in SampleTests
138 9
BaselinedRuleTest.cs
in RuleTests
121 7
TestDeploymentStoppingContributor.cs
in SampleTests
107 7
MarkerInterfaces.cs
in DacFxStronglyTypedModel
82 6
InMemoryTableBin2CollationRule.cs
in RuleSamples
97 5
ModelFilterExample.cs
in SampleConsoleApp
85 5
TSqlModelElementReference.cs
in DacFxStronglyTypedModel
72 4
UnresolvedElementException.cs
in DacFxStronglyTypedModel
17 4
CapitalizedNamesRule.cs
in RuleSamples
67 4
LocalizedExportCodeAnalysisRuleAttribute.cs
in RuleSamples
77 4
ViewsOnMemoryOptimizedTableRule.cs
in RuleSamples
67 4
RunCodeAnalysisExample.cs
in SampleConsoleApp
111 4
Files With Long Lines (Top 20)

There are 25 files with lines longer than 120 characters. In total, there are 2055 long lines.

File# lines# units# long lines
VersionSpecificImplementations.cs
in DacFxStronglyTypedModel
21040 - 1464
model.cs
in DacFxStronglyTypedModel
13522 601 397
Interfaces.cs
in DacFxStronglyTypedModel
20705 - 108
RuleTestCases.cs
in RuleTests
198 9 15
TestCreateIndexOperationalPropsModifier.cs
in SampleTests
138 9 9
RemoveMasterKey.ps1
in Scripts
132 - 9
TSqlModelElement.cs
in DacFxStronglyTypedModel
175 35 8
RuleTest.cs
in RuleTests
264 17 7
ISqlModelElement.cs
in DacFxStronglyTypedModel
46 - 5
RunValidateQuerySemanticallyExample.cs
in SampleConsoleApp
86 4 5
MarkerInterfaces.cs
in DacFxStronglyTypedModel
82 6 4
TestFiltering.cs
in SampleTests
204 17 4
ModelUtilityMethods.cs
in DacFxStronglyTypedModel
2534 2 2
AvoidWaitForDelayRule.cs
in RuleSamples
62 3 2
TSqlScriptDomUtils.cs
in RuleSamples
129 13 2
ViewsOnMemoryOptimizedTableRule.cs
in RuleSamples
67 4 2
ModelEndToEnd.cs
in SampleConsoleApp
77 3 2
Program.cs
in SampleConsoleApp
42 - 2
TestDeploymentStoppingContributor.cs
in SampleTests
107 7 2
LocalizedExportCodeAnalysisRuleAttribute.cs
in RuleSamples
77 4 1