Skip to content

Conversation

@rulasg
Copy link
Owner

@rulasg rulasg commented Oct 21, 2023

No description provided.

@rulasg rulasg linked an issue Oct 21, 2023 that may be closed by this pull request
@@ -0,0 +1,33 @@

function Copy-FunctionsToModule {

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Copy-FunctionsToModule' does not have a help comment.

The cmdlet 'Copy-FunctionsToModule' does not have a help comment.
[Parameter()][switch]$ShowTestErrors
)

function Set-TestName{

Check warning

Code scanning / PSScriptAnalyzer

Function 'Set-TestName' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.

Function 'Set-TestName' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'.
)

process{
$global:TestName = $TestName

Check warning

Code scanning / PSScriptAnalyzer

Found global variable 'global:TestName'.

Found global variable 'global:TestName'.
param (
)

$global:TestName = $null

Check warning

Code scanning / PSScriptAnalyzer

Found global variable 'global:TestName'.

Found global variable 'global:TestName'.
param (
)

$global:TestName = $null

Check warning

Code scanning / PSScriptAnalyzer

The variable 'TestName' is assigned but never used.

The variable 'TestName' is assigned but never used.
# Run test by PSD1 file
# Invoke-TestingHelper -ShowTestErrors:$ShowTestErrors -TestName TestingHelperTest_Deploy_With_VersionTag*
Invoke-TestingHelper -ShowTestErrors:$ShowTestErrors
# Test-ModulelocalPSD1 -ShowTestErrors:$ShowTestErrors

Check notice

Code scanning / PSScriptAnalyzer

Line has trailing whitespace

Line has trailing whitespace
@rulasg rulasg merged commit 786abbc into main Oct 29, 2023
@rulasg rulasg deleted the 108-copy-module-funtionality-between-modules branch October 29, 2023 09:27
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.

Copy Module funtionality between modules

2 participants