Skip to content

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Dec 21, 2023

Fixes #110

@rulasg rulasg self-assigned this Dec 21, 2023
}
}

function Install-Dependencies{

Check warning

Code scanning / PSScriptAnalyzer

The cmdlet 'Install-Dependencies' uses a plural noun. A singular noun should be used instead.

The cmdlet 'Install-Dependencies' uses a plural noun. A singular noun should be used instead.
"Installing module $requiredModule" | Write-Host -ForegroundColor DarkGray
Install-Module -Name $Name -Force -AllowPrerelease
$module = Import-Module -Name $requiredModule -PassThru
"Loaded module Name[$($module.Name)] Version[$($module.Version)]" | Write-Host -ForegroundColor DarkGray

Check warning

Code scanning / PSScriptAnalyzer

File 'deploy.Helper.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.

File 'deploy.Helper.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.
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PSScriptAnalyzer found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

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.

Create, test and reploy models with dependencies (RequiredModules)

2 participants