FileLint / Lint & Pester issues will be fixed in next PR
#### :book: Summary
- adds DroneHelper for build pipeline
#### :bookmark_tabs: Test Plan
> :bulb: Select your test plan for the code changes.
- [x] Tested via Drone.io pipeline
- [ ] Custom test
- [ ] No test plan
##### Details / Justification
<!-- Add your test details or justification for missing tests here. -->
#### :books: Additional Notes
- FileLint / Lint & Pester issues will be fixed in next PR
> Drone.io PR Build No. [#35](https://drone.ocram85.com/OCram85/PSCredentialStore/35): ``failed``
#### ``/drone/src/build/FileLinter-Results.log``
:heavy_check_mark: No FileLinter violations in 32 files found.
#### ``/drone/src/build/Pester-Results.log``
| Result | Test | Duration |
| :----: | :--- | -------: |
| :warning: | `Test-CredentialStore.Basic logic tests.Read a broken CredentialStore` | *0ms* |
:test_tube: **55** Total Tests (:heavy_check_mark: ``54 Passed`` :white_small_square::trident: ``1 Skipped / NotRun`` :white_small_square: :warning: ``Unknown`` :white_small_square: :heavy_exclamation_mark: ``0 Failed``)
:bookmark_tabs: Covered **41.50%** / 75%. (:bookmark: ``759 analyzed Commands`` :page_facing_up: ``in 26 Files``)
#### ``/drone/src/build/ScriptAnalyzer-Results.log``
| Severity | ScriptName | Line | RuleName | Message |
| :------: | :--------- | :--: | :------- | :------ |
| :warning: | PSCredentialStore.psd1 | 36 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | PSCredentialStore.psd1 | 39 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | PSCredentialStore.psd1 | 66 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | PSCredentialStore.psd1 | 95 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | PSCredentialStore.psd1 | 101 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | PSCredentialStore.psd1 | 113 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | PSCredentialStore.psd1 | 128 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | PSCredentialStore.psd1 | 149 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Get-CredentialStore.Tests.ps1 | 17 | PSUseDeclaredVarsMoreThanAssignments | The variable 'TestCredentialStore' is assigned but never used. |
| :warning: | Get-CredentialStore.Tests.ps1 | 18 | PSUseDeclaredVarsMoreThanAssignments | The variable 'TestPfxCert' is assigned but never used. |
| :warning: | New-CredentialStore.ps1 | 22 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | New-CredentialStore.ps1 | 26 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | New-CredentialStore.ps1 | 91 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | New-CSCertificate.ps1 | 60 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | New-CSCertificate.ps1 | 80 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | New-CSCertificate.ps1 | 96 | PSAvoidUsingInvokeExpression | Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead. |
| :warning: | New-CSCertificate.ps1 | 127 | PSAvoidUsingInvokeExpression | Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead. |
| :warning: | Test-CSCertificate.ps1 | 38 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Test-CSCertificate.ps1 | 50 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Test-CSCertificate.ps1 | 54 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Test-CSCertificate.ps1 | 56 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | New-CSCertAttribute.ps1 | 37 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | New-CSCertAttribute.ps1 | 1 | PSUseShouldProcessForStateChangingFunctions | Function 'New-CSCertAttribute' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. |
| :warning: | New-CredentialStoreItem.ps1 | 126 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | New-CredentialStoreItem.ps1 | 128 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | New-CredentialStoreItem.ps1 | 1 | PSUseShouldProcessForStateChangingFunctions | Function 'New-CredentialStoreItem' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. |
| :warning: | New-CredentialStoreItem.ps1 | 112 | PSUseCorrectCasing | Cmdlet/Function/Parameter does not match its exact casing 'Get-Member'. |
| :warning: | Set-CredentialStoreItem.ps1 | 111 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Set-CredentialStoreItem.ps1 | 1 | PSUseShouldProcessForStateChangingFunctions | Function 'Set-CredentialStoreItem' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. |
| :warning: | Set-CredentialStoreItem.ps1 | 108 | PSUseCorrectCasing | Cmdlet/Function/Parameter does not match its exact casing 'Get-Member'. |
| :warning: | Remove-CredentialStoreItem.ps1 | 93 | PSUseCorrectCasing | Cmdlet/Function/Parameter does not match its exact casing 'Get-Member'. |
| :warning: | Remove-CredentialStoreItem.ps1 | 1 | PSUseShouldProcessForStateChangingFunctions | Function 'Remove-CredentialStoreItem' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. |
| :warning: | Resolve-Dependency.ps1 | 39 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Resolve-Dependency.ps1 | 48 | PSReviewUnusedParameter | The parameter 'Name' has been declared but not used. |
| :warning: | Get-DefaultCredentialStorePath.ps1 | 36 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Get-DefaultCredentialStorePath.ps1 | 47 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Import-CSPfxCertificate.ps1 | 8 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Import-CSPfxCertificate.ps1 | 86 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Test-CSPfxCertificate.ps1 | 33 | PSReviewUnusedParameter | The parameter 'Thumbprint' has been declared but not used. |
| :warning: | Connect-To.ps1 | 192 | PSAvoidGlobalVars | Found global variable 'Global:WinSCPSession'. |
| :warning: | Connect-To.ps1 | 263 | PSAvoidGlobalVars | Found global variable 'Global:PSExchangeRemote'. |
| :warning: | Connect-To.ps1 | 282 | PSAvoidGlobalVars | Found global variable 'Global:PSExchangeRemote'. |
| :warning: | Connect-To.ps1 | 302 | PSAvoidGlobalVars | Found global variable 'Global:WinSCPSession'. |
| :warning: | Connect-To.ps1 | 303 | PSAvoidGlobalVars | Found global variable 'Global:WinSCPSession'. |
| :warning: | Connect-To.ps1 | 117 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Connect-To.ps1 | 149 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Connect-To.ps1 | 201 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Connect-To.ps1 | 303 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Connect-To.ps1 | 317 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
| :warning: | Connect-To.ps1 | 263 | PSUseDeclaredVarsMoreThanAssignments | The variable 'PSExchangeRemote' is assigned but never used. |
| :warning: | Disconnect-From.ps1 | 120 | PSAvoidGlobalVars | Found global variable 'Global:WinSCPSession'. |
| :warning: | Disconnect-From.ps1 | 121 | PSAvoidGlobalVars | Found global variable 'Global:WinSCPSession'. |
| :warning: | Disconnect-From.ps1 | 136 | PSAvoidGlobalVars | Found global variable 'Global:CurrentNcController'. |
| :warning: | Disconnect-From.ps1 | 140 | PSAvoidGlobalVars | Found global variable 'Global:CurrentNcController'. |
| :warning: | Disconnect-From.ps1 | 170 | PSAvoidGlobalVars | Found global variable 'Global:PSExchangeRemote'. |
| :warning: | Disconnect-From.ps1 | 181 | PSAvoidGlobalVars | Found global variable 'Global:WinSCPSession'. |
| :warning: | Disconnect-From.ps1 | 182 | PSAvoidGlobalVars | Found global variable 'Global:WinSCPSession'. |
| :warning: | Disconnect-From.ps1 | 136 | PSAvoidLongLines | Line exceeds the configured maximum length of 116 characters |
> See [RuleDocumentation](https://github.com/PowerShell/PSScriptAnalyzer/tree/master/RuleDocumentation) for additional help.
end.
📖 Summary
📑 Test Plan
Details / Justification
📚 Additional Notes
/drone/src/build/FileLinter-Results.log
✔️ No FileLinter violations in 32 files found.
/drone/src/build/Pester-Results.log
Test-CredentialStore.Basic logic tests.Read a broken CredentialStore
🧪 55 Total Tests (✔️
54 Passed
▫️🔱1 Skipped / NotRun
▫️ ⚠️Unknown
▫️ ❗0 Failed
)📑 Covered 41.50% / 75%. (🔖
759 analyzed Commands
📄in 26 Files
)/drone/src/build/ScriptAnalyzer-Results.log
end.
d0b7e53c80
into master 1 year agod0b7e53c80
.