diff --git a/PowerShellBuild/IB.tasks.ps1 b/PowerShellBuild/IB.tasks.ps1 index 4c14197..87b897f 100755 --- a/PowerShellBuild/IB.tasks.ps1 +++ b/PowerShellBuild/IB.tasks.ps1 @@ -40,7 +40,7 @@ task StageFiles Clean, { task Build StageFiles # Synopsis: Execute PSScriptAnalyzer tests -task Analyze Build -if $scriptAnalysisEnabled, { +task Analyze -if $scriptAnalysisEnabled Build, { $analyzeParams = @{ Path = $moduleOutDir SeverityThreshold = $scriptAnalysisFailBuildOnSeverityLevel