microsoft / MCAS
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 49 files with 4,648 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (799 lines of code)
    • 4 medium size files (1,197 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,132 lines of code)
    • 36 very small files (1,520 lines of code)
0% | 17% | 25% | 24% | 32%
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
ps10% | 18% | 21% | 23% | 35%
psm10% | 0% | 100% | 0% | 0%
psd10% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Functions0% | 18% | 21% | 23% | 35%
ROOT0% | 0% | 70% | 29% | 0%
Longest Files (Top 49)
File# lines# units
Get-MCASActivity.ps1
in Functions
799 -
Get-MCASFile.ps1
in Functions
432 -
MCAS.psm1
in root
296 -
Get-MCASAccount.ps1
in Functions
241 -
Get-MCASAlert.ps1
in Functions
228 -
Get-MCASDiscoveredApp.ps1
in Functions
184 -
Invoke-MCASRestMethod.ps1
in Functions
156 -
Install-MCASSiemAgent.ps1
in Functions
154 -
Get-MCASPortalSettings.ps1
in Functions
151 -
Set-MCASAlert.ps1
in Functions
137 -
Get-MCASDiscoverySampleLog.ps1
in Functions
121 -
MCAS.psd1
in root
121 -
Send-MCASDiscoveryLog.ps1
in Functions
108 -
Get-MCASConfiguration.ps1
in Functions
85 -
Get-MCASPolicy.ps1
in Functions
78 -
Get-MCASCredential.ps1
in Functions
67 -
Get-MCASUserGroup.ps1
in Functions
66 -
Get-MCASDiscoveredAppTag.ps1
in Functions
62 -
Get-MCASSubnetCollection.ps1
in Functions
61 -
Remove-MCASSubnetCollection.ps1
in Functions
61 -
Add-MCASAdminAccess.ps1
in Functions
60 -
New-MCASSubnetCollection.ps1
in Functions
59 -
Export-MCASBlockScript.ps1
in Functions
58 -
Get-MCASAppInfo.ps1
in Functions
58 -
Get-MCASReportContent.ps1
in Functions
58 -
New-MCASDiscoveryDataSource.ps1
in Functions
57 -
Get-MCASActivityType.ps1
in Functions
45 -
New-MCASGroupImport.ps1
in Functions
44 -
Get-MCASReport.ps1
in Functions
43 -
ConvertFrom-MCASTimestamp.ps1
in Functions
38 -
Remove-MCASDiscoveryDataSource.ps1
in Functions
38 -
Remove-MCASAdminAccess.ps1
in Functions
37 -
Get-MCASIPTag.ps1
in Functions
35 -
Get-MCASAdminAccess.ps1
in Functions
34 -
Get-MCASSiemAgent.ps1
in Functions
33 -
Get-MCASStream.ps1
in Functions
33 -
New-MCASSiemAgentToken.ps1
in Functions
30 -
Get-JavaExePath.ps1
in Functions
28 -
Get-MCASSiemAgentJarFile.ps1
in Functions
28 -
Export-MCASCredential.ps1
in Functions
27 -
Get-JavaInstallationPackage.ps1
in Functions
27 -
Get-MCASAppPermission.ps1
in Functions
27 -
Get-MCASAppId.ps1
in Functions
25 -
Get-MCASDiscoveryDataSource.ps1
in Functions
23 -
Get-MCASLogCollector.ps1
in Functions
23 -
Import-MCASCredential.ps1
in Functions
22 -
Invoke-FilePickerDialog.ps1
in Functions
22 -
Import-MCASDynamicData.ps1
in Functions
17 -
ConvertTo-MCASJsonFilterString.ps1
in Functions
11 -
Files With Most Units (Top 0)
File# lines# units
Files With Long Lines (Top 20)

There are 45 files with lines longer than 120 characters. In total, there are 376 long lines.

File# lines# units# long lines
Get-MCASActivity.ps1
in Functions
799 - 81
Get-MCASFile.ps1
in Functions
432 - 58
Get-MCASAccount.ps1
in Functions
241 - 26
Get-MCASAlert.ps1
in Functions
228 - 24
Get-MCASCredential.ps1
in Functions
67 - 14
Invoke-MCASRestMethod.ps1
in Functions
156 - 13
Send-MCASDiscoveryLog.ps1
in Functions
108 - 12
Get-MCASConfiguration.ps1
in Functions
85 - 11
Get-MCASDiscoveredApp.ps1
in Functions
184 - 11
Install-MCASSiemAgent.ps1
in Functions
154 - 11
Set-MCASAlert.ps1
in Functions
137 - 8
Get-MCASPortalSettings.ps1
in Functions
151 - 7
Export-MCASBlockScript.ps1
in Functions
58 - 6
Get-MCASActivityType.ps1
in Functions
45 - 6
Get-MCASAppInfo.ps1
in Functions
58 - 6
Get-MCASDiscoverySampleLog.ps1
in Functions
121 - 6
Get-MCASPolicy.ps1
in Functions
78 - 6
New-MCASGroupImport.ps1
in Functions
44 - 6
MCAS.psd1
in root
121 - 6
Get-JavaExePath.ps1
in Functions
28 - 4