Skip to content

Commit a8871a6

Browse files
author
Robin Stolpe
committed
update
1 parent efb6fc5 commit a8871a6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

RSModuleBuilder.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Import-Module -Name EasyModuleBuild -Force
2121
$Year = (Get-Date).Year
2222
$TodaysDate = Get-Date -Format "yyyy-MM-dd"
2323
$ModuleName = $(Get-Location) -split "/" | Select-Object -last 1
24-
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
24+
$scriptPath = "/Users/rstolpe/Dev/GitHub/MaintainModule" #split-path -parent $MyInvocation.MyCommand.Definition
2525
$HelpPath = Join-Path -Path $scriptPath -ChildPath "help"
2626
$ModuleFolderPath = Join-Path -Path $scriptPath -ChildPath $ModuleName
2727
$srcPath = Join-Path -Path $scriptPath -ChildPath ".src"
@@ -125,7 +125,8 @@ Set-Content -Path $outPSDFile -Value $PSDfileContent -Encoding utf8BOM -Force
125125
Write-Output "Running PSScriptAnalyzer on $($MigrateFunction.name)..."
126126
$ResultPS1 = foreach ($ps1 in $MigrateFunction.FullName) {
127127
write-output "Är på fil $($ps1)"
128-
if ($null -ne $ps1) {
128+
$PSAnalyzerPS1 = Invoke-ScriptAnalyzer -Path $ps1 -ReportSummary
129+
<#if ($null -ne $ps1) {
129130
$ps1Name = $ps1 -split "/" -replace ".ps1" | Select-Object -Last 1
130131
Write-Verbose "Running PSScriptAnalyzer on $($ps1Name).ps1..."
131132
$PSAnalyzerPS1 = Invoke-ScriptAnalyzer -Path $ps1 -ReportSummary
@@ -136,7 +137,7 @@ $ResultPS1 = foreach ($ps1 in $MigrateFunction.FullName) {
136137
Write-Output "0 rule violations found." | Out-File -Encoding UTF8BOM -FilePath $(Join-Path -Path $TestPath -ChildPath "PSScriptAnalyzer_$($ps1Name)_$($TodaysDate).md")
137138
}
138139
$PSAnalyzerPS1
139-
}
140+
}#>
140141
}
141142
<#
142143
Write-Output "Running PSScriptAnalyzer on $($outPSDFile) and $($outPSMFile)..."

0 commit comments

Comments
 (0)