Conversation
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
| @@ -0,0 +1,156 @@ | |||
| function Export-CopilotUsageOrgTotals{ | |||
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'Export-CopilotUsageOrgTotals' uses a plural noun. A singular noun should be used instead.
|
|
||
| } Export-ModuleMember -Function Export-CopilotUsageEnterpriseBreakdown | ||
|
|
||
| function Convert-UsageToCsvTotals{ |
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'Convert-UsageToCsvTotals' uses a plural noun. A singular noun should be used instead.
| [Parameter()][switch]$PassThru | ||
| ) | ||
| process{ | ||
| "Importing module Name[{0}] Version[{1}] AllowPrerelease[{2}]" -f $Name, $Version, $AllowPrerelease | Write-Host -ForegroundColor DarkGray |
Check warning
Code scanning / PSScriptAnalyzer
File 'test.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
| $module = Import-Module $Name -PassThru -ErrorAction SilentlyContinue -RequiredVersion:$semVer | ||
|
|
||
| if ($null -eq $module) { | ||
| "Installing module Name[{0}] Version[{1}] AllowPrerelease[{2}]" -f $Name, $Version, $AllowPrerelease | Write-Host -ForegroundColor DarkGray |
Check warning
Code scanning / PSScriptAnalyzer
File 'test.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information.
Fixes #2