microsoft / powerbi-powershell
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 184 files with 9,749 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 5 medium size files (1,118 lines of codeclsfd_ftr_w_mp_ins)
    • 17 small files (2,241 lines of code)
    • 162 very small files (6,390 lines of code)
0% | 0% | 11% | 22% | 65%
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
cs0% | 0% | 15% | 22% | 62%
ps1xml0% | 0% | 0% | 61% | 38%
ps10% | 0% | 0% | 23% | 76%
psd10% | 0% | 0% | 0% | 100%
targets0% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
psm10% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
proj0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/Common/Commands.Common0% | 0% | 54% | 14% | 30%
src/Common/Common.Api0% | 0% | 11% | 12% | 76%
src/Modules/Profile0% | 0% | 21% | 47% | 30%
src/Modules/Workspaces0% | 0% | 27% | 18% | 54%
src/Modules/Reports0% | 0% | 0% | 40% | 60%
src/Common/Common.Authentication0% | 0% | 0% | 59% | 40%
src/Modules/Data0% | 0% | 0% | 20% | 79%
scripts0% | 0% | 0% | 23% | 76%
src/Modules/Admin0% | 0% | 0% | 27% | 72%
src/Common/Common.Abstractions0% | 0% | 0% | 0% | 100%
src/Modules/Capacities0% | 0% | 0% | 0% | 100%
build0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
src/Common/Common.Client0% | 0% | 0% | 0% | 100%
src/Modules/All0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
PowerBICmdlet.cs
in src/Common/Commands.Common
252 11
PowerBILogger.cs
in src/Common/Commands.Common
223 14
ReportsClient.cs
in src/Common/Common.Api/Reports
217 27
InvokePowerBIRestMethod.cs
in src/Modules/Profile/Commands.Profile
214 5
GetPowerBIWorkspace.cs
in src/Modules/Workspaces/Commands.Workspaces
212 7
Microsoft.PowerBI.Commands.Profile.format.ps1xml
in src/Modules/Profile/Commands.Profile
196 -
ConnectPowerBIServiceAccount.cs
in src/Modules/Profile/Commands.Profile
157 4
ServicePrincipalAuthenticationFactory.cs
in src/Common/Common.Authentication
150 7
GetPowerBIActivityEvent.cs
in src/Modules/Admin/Commands.Admin
145 6
Microsoft.PowerBI.Commands.Workspaces.format.ps1xml
in src/Modules/Workspaces/Commands.Workspaces
139 -
GenerateHelp.ps1
in scripts
137 -
GetPowerBIDataset.cs
in src/Modules/Data/Commands.Data
131 4
PowerBISettings.cs
in src/Common/Commands.Common
129 2
GetPowerBIImport.cs
in src/Modules/Reports/Commands.Reports
128 4
GetPowerBIDataflow.cs
in src/Modules/Data/Commands.Data
125 4
GetPowerBIDashboard.cs
in src/Modules/Reports/Commands.Reports
122 4
GetPowerBIReport.cs
in src/Modules/Reports/Commands.Reports
122 4
PowerBIApiClient.cs
in src/Common/Common.Api
118 7
Test.ps1
in scripts
116 -
DatasetsClient.cs
in src/Common/Common.Api/Datasets
110 13
WindowsAuthenticationFactory.cs
in src/Common/Common.Authentication
108 5
ResolvePowerBIError.cs
in src/Modules/Profile/Commands.Profile
108 6
targets
Microsoft.PowerBI.Packaging.targets
in build
99 -
GetPowerBITable.cs
in src/Modules/Data/Commands.Data
98 4
Build.ps1
in scripts
94 -
GetPowerBIDatasource.cs
in src/Modules/Data/Commands.Data
94 4
AuthenticationFactorySelector.cs
in src/Common/Commands.Common
93 8
EnumTypeConverter.cs
in src/Common/Common.Api/Helpers
92 4
ExportPowerBIDataflow.cs
in src/Modules/Data/Commands.Data
91 4
UpdateModuleDependencies.ps1
in scripts
86 -
Dataset.cs
in src/Common/Common.Api/Datasets
86 2
Microsoft.PowerBI.Commands.Data.format.ps1xml
in src/Modules/Data/Commands.Data
86 -
GetPowerBITile.cs
in src/Modules/Reports/Commands.Reports
83 4
WorkspacesClient.cs
in src/Common/Common.Api/Workspaces
81 12
MicrosoftPowerBIMgmt.Admin.psd1
in src/Modules/Admin/Commands.Admin
81 -
MicrosoftPowerBIMgmt.psd1
in src/Modules/All/Commands.All
81 -
MicrosoftPowerBIMgmt.Capacities.psd1
in src/Modules/Capacities/Commands.Capacities
81 -
GetPowerBIDataflowDatasource.cs
in src/Modules/Data/Commands.Data
81 4
MicrosoftPowerBIMgmt.Data.psd1
in src/Modules/Data/Commands.Data
81 -
MicrosoftPowerBIMgmt.Profile.psd1
in src/Modules/Profile/Commands.Profile
81 -
CopyPowerBITile.cs
in src/Modules/Reports/Commands.Reports
81 3
MicrosoftPowerBIMgmt.Reports.psd1
in src/Modules/Reports/Commands.Reports
81 -
MicrosoftPowerBIMgmt.Workspaces.psd1
in src/Modules/Workspaces/Commands.Workspaces
81 -
UpdatePSModuleManifest.ps1
in scripts
80 -
AddPowerBIWorkspaceUser.cs
in src/Modules/Workspaces/Commands.Workspaces
78 4
CopyPowerBIReport.cs
in src/Modules/Reports/Commands.Reports
77 3
Workspace.cs
in src/Common/Common.Api/Workspaces
76 2
DownloadNupkg.ps1
in scripts
75 -
SetPowerBIWorkspace.cs
in src/Modules/Workspaces/Commands.Workspaces
74 4
AddPowerBIRow.cs
in src/Modules/Data/Commands.Data
73 4
Files With Most Units (Top 20)
File# lines# units
ReportsClient.cs
in src/Common/Common.Api/Reports
217 27
PowerBILogger.cs
in src/Common/Commands.Common
223 14
DatasetsClient.cs
in src/Common/Common.Api/Datasets
110 13
WorkspacesClient.cs
in src/Common/Common.Api/Workspaces
81 12
PowerBICmdlet.cs
in src/Common/Commands.Common
252 11
DataflowsClient.cs
in src/Common/Common.Api/Dataflows
53 10
AuthenticationFactorySelector.cs
in src/Common/Commands.Common
93 8
PowerBIApiClient.cs
in src/Common/Common.Api
118 7
ServicePrincipalAuthenticationFactory.cs
in src/Common/Common.Authentication
150 7
GetPowerBIWorkspace.cs
in src/Modules/Workspaces/Commands.Workspaces
212 7
AdminClient.cs
in src/Common/Common.Api/Admin
56 6
GetPowerBIActivityEvent.cs
in src/Modules/Admin/Commands.Admin
145 6
ResolvePowerBIError.cs
in src/Modules/Profile/Commands.Profile
108 6
ModuleDataStorage.cs
in src/Common/Commands.Common
56 5
WindowsAuthenticationFactory.cs
in src/Common/Common.Authentication
108 5
PowerBIGetEncryptionKeyClientCmdlet.cs
in src/Modules/Admin/Commands.Admin
45 5
InvokePowerBIRestMethod.cs
in src/Modules/Profile/Commands.Profile
214 5
EnumTypeConverter.cs
in src/Common/Common.Api/Helpers
92 4
GetPowerBIWorkspaceEncryptionStatus.cs
in src/Modules/Admin/Commands.Admin
69 4
GetPowerBICapacity.cs
in src/Modules/Capacities/Commands.Capacities
59 4
Files With Long Lines (Top 20)

There are 93 files with lines longer than 120 characters. In total, there are 379 long lines.

File# lines# units# long lines
ReportsClient.cs
in src/Common/Common.Api/Reports
217 27 23
PowerBICmdlet.cs
in src/Common/Commands.Common
252 11 16
ConnectPowerBIServiceAccount.cs
in src/Modules/Profile/Commands.Profile
157 4 15
PowerBISettings.cs
in src/Common/Commands.Common
129 2 14
DatasetsClient.cs
in src/Common/Common.Api/Datasets
110 13 14
InvokePowerBIRestMethod.cs
in src/Modules/Profile/Commands.Profile
214 5 14
GetPowerBIWorkspace.cs
in src/Modules/Workspaces/Commands.Workspaces
212 7 12
targets
Microsoft.PowerBI.Packaging.targets
in build
99 - 10
ServicePrincipalAuthenticationFactory.cs
in src/Common/Common.Authentication
150 7 10
AuthenticationFactorySelector.cs
in src/Common/Commands.Common
93 8 8
MicrosoftPowerBIMgmt.Profile.psd1
in src/Modules/Profile/Commands.Profile
81 - 8
MicrosoftPowerBIMgmt.Workspaces.psd1
in src/Modules/Workspaces/Commands.Workspaces
81 - 8
IReportsClient.cs
in src/Common/Common.Api/Reports
36 - 7
MicrosoftPowerBIMgmt.Admin.psd1
in src/Modules/Admin/Commands.Admin
81 - 7
MicrosoftPowerBIMgmt.Data.psd1
in src/Modules/Data/Commands.Data
81 - 7
MicrosoftPowerBIMgmt.Reports.psd1
in src/Modules/Reports/Commands.Reports
81 - 7
AddPowerBIWorkspaceUser.cs
in src/Modules/Workspaces/Commands.Workspaces
78 4 7
WorkspaceUser.cs
in src/Common/Common.Api/Workspaces
39 2 6
MicrosoftPowerBIMgmt.psd1
in src/Modules/All/Commands.All
81 - 6
MicrosoftPowerBIMgmt.Capacities.psd1
in src/Modules/Capacities/Commands.Capacities
81 - 6