File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11# If test type is module, the code we ought to test is in the path/name folder, otherwise it's in the path folder.
22$settings = $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Settings
33$testPath = Resolve-Path - Path " $PSScriptRoot /tests/PSScriptAnalyzer" | Select-Object - ExpandProperty Path
4- $codePath = Resolve-Path - Path " ./ $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path " | Select-Object - ExpandProperty Path
4+ $codePath = Resolve-Path - Path $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path | Select-Object - ExpandProperty Path
55$settingsFilePath = switch - Regex ($settings ) {
66 ' Module|SourceCode' {
77 " $testPath /$settings .Settings.psd1"
88 }
99 ' Custom' {
10- Resolve-Path - Path " $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath " | Select-Object - ExpandProperty Path
10+ Resolve-Path - Path $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath | Select-Object - ExpandProperty Path
1111 }
1212 default {
1313 throw " Invalid test type: [$settings ]"
You canāt perform that action at this time.
0 commit comments