File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ function GetRelativePath {
44 Returns the relative path, or $Path if the paths don't share the same root.
55 For backward compatibility, this is [System.IO.Path]::GetRelativePath for .NET 4.x
66 #>
7+ [OutputType ([string ])]
78 [CmdletBinding ()]
89 param (
910 # The source path the result should be relative to. This path is always considered to be a directory.
Original file line number Diff line number Diff line change 11# requires -Module PowerShellGet , Pester
22using namespace Microsoft.PackageManagement.Provider.Utility
33param (
4+ [switch ]$SkipScriptAnalyzer ,
45 [switch ]$SkipCodeCoverage ,
56 [switch ]$HideSuccess ,
67 [switch ]$IncludeVSCodeMarker
@@ -41,6 +42,10 @@ if (-not $SkipCodeCoverage) {
4142 Invoke-Pester ./ Tests - Show $Show - PesterOption @ { IncludeVSCodeMarker = $IncludeVSCodeMarker }
4243}
4344
45+ Write-Host
46+ if (-not $SkipScriptAnalyzer ) {
47+ Invoke-ScriptAnalyzer $ModuleUnderTest.Path
48+ }
4449Pop-Location
4550
4651# Re-enable default parameters after testing
You can’t perform that action at this time.
0 commit comments