microsoft / sqltoolsservice
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 1,246 files with 218,271 lines of code.
    • 34 very long files (113,991 lines of code)
    • 32 long files (20,989 lines of code)
    • 106 medium size files (32,511 lines of codeclsfd_ftr_w_mp_ins)
    • 146 small files (21,364 lines of code)
    • 928 very small files (29,416 lines of code)
52% | 9% | 14% | 9% | 13%
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
xlf95% | 0% | 0% | 2% | 2%
cs22% | 16% | 25% | 15% | 20%
cake0% | 65% | 0% | 19% | 15%
yml0% | 0% | 0% | 58% | 41%
ps10% | 0% | 0% | 50% | 49%
props0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
targets0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/Microsoft.SqlTools.ServiceLayer59% | 8% | 13% | 8% | 9%
src/Microsoft.Kusto.ServiceLayer57% | 9% | 13% | 7% | 12%
src/Microsoft.SqlTools.ManagedBatchParser0% | 31% | 27% | 27% | 13%
ROOT0% | 84% | 0% | 0% | 15%
src/Microsoft.SqlTools.Hosting0% | 0% | 18% | 19% | 62%
src/Microsoft.SqlTools.Credentials0% | 0% | 27% | 24% | 47%
src/Microsoft.SqlTools.ResourceProvider.DefaultImpl0% | 0% | 30% | 6% | 62%
src/Microsoft.SqlTools.ResourceProvider.Core0% | 0% | 13% | 15% | 71%
src/Microsoft.InsightsGenerator0% | 0% | 50% | 39% | 10%
azure-pipelines0% | 0% | 0% | 63% | 36%
scripts0% | 0% | 0% | 37% | 62%
src/Microsoft.SqlTools.ResourceProvider0% | 0% | 0% | 0% | 100%
packages0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
sr.cs
in src/Microsoft.SqlTools.ServiceLayer/Localization
8988 69
xlf
sr.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization
5763 -
xlf
sr.de.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 -
xlf
sr.es.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 -
xlf
sr.fr.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 -
xlf
sr.it.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 -
xlf
sr.ja.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 -
xlf
sr.ko.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 -
xlf
sr.pt-br.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 -
xlf
sr.ru.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 -
xlf
sr.zh-hans.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 -
xlf
sr.zh-hant.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 -
TreeNodeGenerator.cs
in src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel
3600 157
sr.cs
in src/Microsoft.Kusto.ServiceLayer/Localization
3148 40
DatabasePrototype.cs
in src/Microsoft.SqlTools.ServiceLayer/Admin/Database
2362 32
xlf
sr.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization
2029 -
xlf
sr.de.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 -
xlf
sr.es.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 -
xlf
sr.fr.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 -
xlf
sr.it.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 -
xlf
sr.ja.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 -
xlf
sr.ko.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 -
xlf
sr.pt-br.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 -
xlf
sr.ru.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 -
xlf
sr.zh-hans.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 -
xlf
sr.zh-hant.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 -
CreateDatabaseObjects.cs
in src/Microsoft.SqlTools.ServiceLayer/Admin/Database
1685 70
LanguageService.cs
in src/Microsoft.SqlTools.ServiceLayer/LanguageServices
1458 47
SmoQueryModel.cs
in src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel
1447 68
AgentService.cs
in src/Microsoft.SqlTools.ServiceLayer/Agent
1350 43
ConnectionService.cs
in src/Microsoft.SqlTools.ServiceLayer/Connection
1212 52
JobData.cs
in src/Microsoft.SqlTools.ServiceLayer/Agent/Jobs
1095 24
RestoreDatabaseTaskDataObject.cs
in src/Microsoft.SqlTools.ServiceLayer/DisasterRecovery/RestoreOperation
1050 33
ScheduleData.cs
in src/Microsoft.SqlTools.ServiceLayer/Agent/Jobs
1044 24
ReliableConnectionHelper.cs
in src/Microsoft.SqlTools.ManagedBatchParser/ReliableConnection
875 35
DataContainer.cs
in src/Microsoft.SqlTools.ServiceLayer/Management/Common
856 23
JobStepData.cs
in src/Microsoft.SqlTools.ServiceLayer/Agent/Jobs
842 14
LanguageService.cs
in src/Microsoft.Kusto.ServiceLayer/LanguageServices
797 29
CommonUtilities.cs
in src/Microsoft.SqlTools.ServiceLayer/DisasterRecovery
785 36
ExecutionEngine.cs
in src/Microsoft.SqlTools.ManagedBatchParser/BatchParser/ExecutionEngineCode
783 36
QueryExecutionService.cs
in src/Microsoft.SqlTools.ServiceLayer/QueryExecution
773 29
ConnectionService.cs
in src/Microsoft.Kusto.ServiceLayer/Connection
767 37
ObjectWrapperTypeConverter.cs
in src/Microsoft.SqlTools.ServiceLayer/ShowPlan/ShowPlanGraph
759 47
AutoCompleteHelper.cs
in src/Microsoft.SqlTools.ServiceLayer/LanguageServices
749 5
QueryExecutionService.cs
in src/Microsoft.Kusto.ServiceLayer/QueryExecution
728 28
TableDesignerService.cs
in src/Microsoft.SqlTools.ServiceLayer/TableDesigner
717 22
Parser.cs
in src/Microsoft.SqlTools.ManagedBatchParser/BatchParser
701 32
ObjectExplorerService.cs
in src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer
662 32
KustoDataSource.cs
in src/Microsoft.Kusto.ServiceLayer/DataSource/Kusto
657 37
AgentNotebookHelper.cs
in src/Microsoft.SqlTools.ServiceLayer/Agent/Jobs
634 14
Files With Most Units (Top 20)
File# lines# units
TreeNodeGenerator.cs
in src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel
3600 157
CreateDatabaseObjects.cs
in src/Microsoft.SqlTools.ServiceLayer/Admin/Database
1685 70
sr.cs
in src/Microsoft.SqlTools.ServiceLayer/Localization
8988 69
SmoQueryModel.cs
in src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel
1447 68
ConnectionService.cs
in src/Microsoft.SqlTools.ServiceLayer/Connection
1212 52
LanguageService.cs
in src/Microsoft.SqlTools.ServiceLayer/LanguageServices
1458 47
ObjectWrapperTypeConverter.cs
in src/Microsoft.SqlTools.ServiceLayer/ShowPlan/ShowPlanGraph
759 47
Utils.cs
in src/Microsoft.SqlTools.ServiceLayer/Management/Common
444 44
AgentService.cs
in src/Microsoft.SqlTools.ServiceLayer/Agent
1350 43
AgentActions.cs
in src/Microsoft.SqlTools.ServiceLayer/Agent/Common
622 43
sr.cs
in src/Microsoft.Kusto.ServiceLayer/Localization
3148 40
ConnectionService.cs
in src/Microsoft.Kusto.ServiceLayer/Connection
767 37
KustoDataSource.cs
in src/Microsoft.Kusto.ServiceLayer/DataSource/Kusto
657 37
ExecutionEngine.cs
in src/Microsoft.SqlTools.ManagedBatchParser/BatchParser/ExecutionEngineCode
783 36
CommonUtilities.cs
in src/Microsoft.SqlTools.ServiceLayer/DisasterRecovery
785 36
ReliableConnectionHelper.cs
in src/Microsoft.SqlTools.ManagedBatchParser/ReliableConnection
875 35
Lexer.cs
in src/Microsoft.SqlTools.ManagedBatchParser/BatchParser
633 33
RestoreDatabaseTaskDataObject.cs
in src/Microsoft.SqlTools.ServiceLayer/DisasterRecovery/RestoreOperation
1050 33
Parser.cs
in src/Microsoft.SqlTools.ManagedBatchParser/BatchParser
701 32
DatabasePrototype.cs
in src/Microsoft.SqlTools.ServiceLayer/Admin/Database
2362 32
Files With Long Lines (Top 20)

There are 510 files with lines longer than 120 characters. In total, there are 4423 long lines.

File# lines# units# long lines
xlf
sr.de.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 - 155
xlf
sr.it.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 - 152
xlf
sr.es.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 - 151
xlf
sr.fr.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 - 151
xlf
sr.pt-br.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 - 132
xlf
sr.ru.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 - 127
SmoQueryModel.cs
in src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/SmoModel
1447 68 122
OperationTable.cs
in src/Microsoft.SqlTools.ServiceLayer/ShowPlan/ShowPlanGraph
314 9 121
xlf
sr.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization
5763 - 90
PropertyFactory.cs
in src/Microsoft.SqlTools.ServiceLayer/ShowPlan/ShowPlanGraph
499 4 79
RelOpTypeParser.cs
in src/Microsoft.SqlTools.ServiceLayer/ShowPlan/ShowPlanGraph
543 7 64
AgentService.cs
in src/Microsoft.SqlTools.ServiceLayer/Agent
1350 43 61
xlf
sr.it.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 - 51
DatabasePrototype.cs
in src/Microsoft.SqlTools.ServiceLayer/Admin/Database
2362 32 49
LanguageService.cs
in src/Microsoft.SqlTools.ServiceLayer/LanguageServices
1458 47 47
xlf
sr.es.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 - 46
xlf
sr.fr.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 - 45
sr.cs
in src/Microsoft.SqlTools.ServiceLayer/Localization
8988 69 45
xlf
sr.ja.xlf
in src/Microsoft.SqlTools.ServiceLayer/Localization/transXliff
5747 - 45
xlf
sr.de.xlf
in src/Microsoft.Kusto.ServiceLayer/Localization/transXliff
2029 - 44