File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,6 @@ Task StoreKey -requiredVariables EncryptedApiKeyPath {
193
193
}
194
194
195
195
Task ShowKey - requiredVariables EncryptedApiKeyPath {
196
- $OFS = ' '
197
-
198
196
if ($NuGetApiKey ) {
199
197
" The embedded (partial) NuGetApiKey is: $ ( $NuGetApiKey [0 .. 7 ]) "
200
198
}
@@ -225,6 +223,7 @@ Task ? -description 'Lists the available tasks' {
225
223
# Helper functions
226
224
# ##############################################################################
227
225
function PromptUserForNuGetApiKeyCredential {
226
+ [Diagnostics.CodeAnalysis.SuppressMessage (" PSProvideDefaultParameterValue" , ' ' )]
228
227
param (
229
228
[Parameter ()]
230
229
[ValidateNotNullOrEmpty ()]
@@ -243,6 +242,8 @@ function PromptUserForNuGetApiKeyCredential {
243
242
}
244
243
245
244
function EncryptAndSaveNuGetApiKey {
245
+ [Diagnostics.CodeAnalysis.SuppressMessage (" PSAvoidUsingConvertToSecureStringWithPlainText" , ' ' )]
246
+ [Diagnostics.CodeAnalysis.SuppressMessage (" PSProvideDefaultParameterValue" , ' ' )]
246
247
param (
247
248
[Parameter (Mandatory , ParameterSetName = ' SecureString' )]
248
249
[ValidateNotNull ()]
@@ -275,6 +276,7 @@ function EncryptAndSaveNuGetApiKey {
275
276
}
276
277
277
278
function LoadAndUnencryptNuGetApiKey {
279
+ [Diagnostics.CodeAnalysis.SuppressMessage (" PSProvideDefaultParameterValue" , ' ' )]
278
280
param (
279
281
[Parameter (Mandatory )]
280
282
[ValidateNotNullOrEmpty ()]
You can’t perform that action at this time.
0 commit comments