mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-22 16:20:22 -07:00
ps-lint: ignore rules that are not relevant to Ansible (#46376)
This commit is contained in:
parent
1de88cbaa9
commit
ba638f40cf
5 changed files with 8 additions and 40 deletions
|
@ -71,8 +71,6 @@ Function Get-CommonChocolateyArguments {
|
|||
}
|
||||
|
||||
Function Get-InstallChocolateyArguments {
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingUserNameAndPassWordParams", "", Justification="We need to use the plaintext pass in the cmdline, also using a SecureString here doesn't make sense considering the source is not secure")]
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingPlainTextForPassword", "", Justification="See above")]
|
||||
param(
|
||||
[bool]$allow_downgrade,
|
||||
[bool]$allow_empty_checksums,
|
||||
|
@ -165,9 +163,6 @@ Function Get-InstallChocolateyArguments {
|
|||
}
|
||||
|
||||
Function Install-Chocolatey {
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingUserNameAndPassWordParams", "", Justification="We need to use the plaintext pass in the env vars, also using a SecureString here doesn't make sense considering the source is not secure")]
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingPlainTextForPassword", "", Justification="See above")]
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "", Justification="See above")]
|
||||
param(
|
||||
[String]$proxy_url,
|
||||
[String]$proxy_username,
|
||||
|
@ -317,8 +312,6 @@ Function Get-ChocolateyPackageVersion {
|
|||
}
|
||||
|
||||
Function Update-ChocolateyPackage {
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingUserNameAndPassWordParams", "", Justification="We need to use the plaintext pass in the cmdline, also using a SecureString here doesn't make sense considering the source is not secure")]
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingPlainTextForPassword", "", Justification="See above")]
|
||||
param(
|
||||
[Parameter(Mandatory=$true)][String]$choco_path,
|
||||
[Parameter(Mandatory=$true)][String[]]$packages,
|
||||
|
@ -378,8 +371,6 @@ Function Update-ChocolateyPackage {
|
|||
}
|
||||
|
||||
Function Install-ChocolateyPackage {
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingUserNameAndPassWordParams", "", Justification="We need to use the plaintext pass in the cmdline, also using a SecureString here doesn't make sense considering the source is not secure")]
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingPlainTextForPassword", "", Justification="See above")]
|
||||
param(
|
||||
[Parameter(Mandatory=$true)][String]$choco_path,
|
||||
[Parameter(Mandatory=$true)][String[]]$packages,
|
||||
|
|
|
@ -109,8 +109,6 @@ Function Get-ChocolateySources {
|
|||
}
|
||||
|
||||
Function New-ChocolateySource {
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingUserNameAndPassWordParams", "", Justification="We need to use the plaintext pass in the cmdline, also using a SecureString here doesn't make sense considering the source is not secure")]
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingPlainTextForPassword", "", Justification="See above")]
|
||||
param(
|
||||
$choco_app,
|
||||
$name,
|
||||
|
|
|
@ -41,8 +41,6 @@ function Get-Group($grp) {
|
|||
}
|
||||
|
||||
Function Test-LocalCredential {
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingUserNameAndPassWordParams", "", Justification="We need to use the plaintext pass in the Win32 call, also the source isn't a secure string to using that is just a waste of time/code")]
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingPlainTextForPassword", "", Justification="See above")]
|
||||
param([String]$Username, [String]$Password)
|
||||
|
||||
$platform_util = @'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue