File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
125125Write-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<#
142143Write-Output "Running PSScriptAnalyzer on $($outPSDFile) and $($outPSMFile)..."
You can’t perform that action at this time.
0 commit comments