Skip to content

Comments

Refactor files and functions#10

Merged
rulasg merged 1 commit intomainfrom
rulasg/issue9
Dec 23, 2023
Merged

Refactor files and functions#10
rulasg merged 1 commit intomainfrom
rulasg/issue9

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Dec 23, 2023

Fixes #9

$OrgTestDataFile = $PSScriptRoot | Join-Path -ChildPath 'testData' -AdditionalChildPath 'CopilotUsageOrg.json'
$EnterpriseTestDataFile = $PSScriptRoot | Join-Path -ChildPath 'testData' -AdditionalChildPath 'CopilotUsageEnterprise.json'

$dataResultsTotals = 27

Check warning

Code scanning / PSScriptAnalyzer

The variable 'dataResultsTotals' is assigned but never used.

The variable 'dataResultsTotals' is assigned but never used.
$EnterpriseTestDataFile = $PSScriptRoot | Join-Path -ChildPath 'testData' -AdditionalChildPath 'CopilotUsageEnterprise.json'

$dataResultsTotals = 27
$dataResultsBreakdownOrg = 237

Check warning

Code scanning / PSScriptAnalyzer

The variable 'dataResultsBreakdownOrg' is assigned but never used.

The variable 'dataResultsBreakdownOrg' is assigned but never used.

$dataResultsTotals = 27
$dataResultsBreakdownOrg = 237
$dataResultsBreakdownEnterprise = 474

Check warning

Code scanning / PSScriptAnalyzer

The variable 'dataResultsBreakdownEnterprise' is assigned but never used.

The variable 'dataResultsBreakdownEnterprise' is assigned but never used.
$dataResultsTotals = 27
$dataResultsBreakdownOrg = 237
$dataResultsBreakdownEnterprise = 474
$dataResultLanguages = 35

Check warning

Code scanning / PSScriptAnalyzer

The variable 'dataResultLanguages' is assigned but never used.

The variable 'dataResultLanguages' is assigned but never used.
.SYNOPSIS
Covnerts the totals of Copilot usage data to CSV.
#>
function Convert-UsageToCsvTotals{

Check warning

Code scanning / PSScriptAnalyzer

The cmdlet 'Convert-UsageToCsvTotals' uses a plural noun. A singular noun should be used instead.

The cmdlet 'Convert-UsageToCsvTotals' uses a plural noun. A singular noun should be used instead.
Export daily totals Copilot usage data of an organization to CSV.
#>

function Export-CopilotUsageOrgTotals{

Check warning

Code scanning / PSScriptAnalyzer

The cmdlet 'Export-CopilotUsageOrgTotals' uses a plural noun. A singular noun should be used instead.

The cmdlet 'Export-CopilotUsageOrgTotals' uses a plural noun. A singular noun should be used instead.
@rulasg rulasg merged commit e3f1b18 into main Dec 23, 2023
@rulasg rulasg deleted the rulasg/issue9 branch December 23, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor files and function

1 participant