From 82df93143b36d8780a9624d5a6d2651725cf9b09 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Mon, 10 Jun 2019 17:54:53 -0400 Subject: [PATCH] Cleaning InvokeBuild Script --- ZertoApiWrapper.build.ps1 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ZertoApiWrapper.build.ps1 b/ZertoApiWrapper.build.ps1 index 69d0b3e..5674577 100644 --- a/ZertoApiWrapper.build.ps1 +++ b/ZertoApiWrapper.build.ps1 @@ -1,12 +1,5 @@ #Requires -Modules 'InvokeBuild' -. '.\ZertoApiWrapper.settings.ps1' -# import-module "$BuildRoot\ZertoApiWrapper\ZertoApiWrapper.psd1" -Verbose -Force - -<# [CmdletBinding()] -param([switch]$Install, - [string]$Configuration = (property Configuration Release)) -$targetDir = "temp/$Configuration/ZertoApiWrapper" #> $version = "{0}.{1}" -f $(Get-Content .\version.txt), $(get-date -format 'yyyyMMdd') task . CreateArtifacts @@ -54,7 +47,7 @@ task AnalyzeBuiltFiles CheckPSScriptAnalyzerInstalled, CreatePsm1ForRelease, { Severity = @('Error', 'Warning') Recurse = $true Verbose = $false - ExcludeRule = @() + ExcludeRule = @("PSUseBOMForUnicodeEncodedFile") } $saresults = Invoke-ScriptAnalyzer @scriptAnalyzerParams