Skip to content

Commit

Permalink
(#139) Reset everything to default values
Browse files Browse the repository at this point in the history
There is a suggestion on this blog post:

https://geoffhudik.com/tech/2017/11/17/test-coverage-with-opencover-xunit-cake-and-teamcity/

That it is necessary to:

> Okay, OutputToAppConsole has to be explicitly set to false when
running non-interactively.

However, this isn't required on the other usages of StartPowerShellFile
that is in use elsewhere in the recipe.

To rule out other things, let's reset everything back to the default
when calling new PowerShellSettings.  If there is still a problem, we
can do another try with OutputToAppConsole setting to false.
  • Loading branch information
gep13 committed Mar 18, 2024
1 parent e778294 commit 06f0d81
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Chocolatey.Cake.Recipe/Content/psscriptanalyzer.cake
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ BuildParameters.Tasks.PSScriptAnalyzerTask = Task("Run-PSScriptAnalyzer")
.WithModule("ConvertToSARIF")
.WithModule("Microsoft.PowerShell.Management")
.WithModule("Microsoft.PowerShell.Utility")
.SetLogOutput(true)
.OutputToAppConsole(true)
.WithArguments(args => {
args.AppendQuoted("AnalyzePath", PSScriptAnalyzerSetting.AnalysisPath.ToString())
.AppendQuoted("SettingsPath", PSScriptAnalyzerSetting.SettingsPath.ToString())
Expand All @@ -68,8 +66,6 @@ BuildParameters.Tasks.PSScriptAnalyzerTask = Task("Run-PSScriptAnalyzer")
.WithModule("ConvertToSARIF")
.WithModule("Microsoft.PowerShell.Management")
.WithModule("Microsoft.PowerShell.Utility")
.SetLogOutput(true)
.OutputToAppConsole(true)
.WithArguments(args => {
args.AppendQuoted("AnalyzePath", BuildParameters.RootDirectoryPath.ToString())
.AppendQuoted("SettingsPath", settingsFile.ToString())
Expand Down

0 comments on commit 06f0d81

Please sign in to comment.