mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-03-02 03:11:29 +00:00
Suppress bogus analyzer warnings.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
Describe ExportExcel -Tag "ExportExcel" {
|
||||
#Requires -Modules Pester
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments','',Justification='False Positives')]
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidAssignmentToAutomaticVariable','',Justification='Only executes on versions without the automatic variable')]
|
||||
param()
|
||||
Describe ExportExcel -Tag "ExportExcel" {
|
||||
BeforeAll {
|
||||
if ($null -eq $IsWindows) { $IsWindows = [environment]::OSVersion.Platform -like "win*" }
|
||||
$WarningAction = "SilentlyContinue"
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
Describe "Join Worksheet part 1" {
|
||||
#Requires -Modules Pester
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments','',Justification='False Positives')]
|
||||
param()
|
||||
Describe "Join Worksheet part 1" {
|
||||
BeforeAll {
|
||||
$data1 = ConvertFrom-Csv -InputObject @"
|
||||
ID,Product,Quantity,Price,Total
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#Requires -Modules Pester
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseDeclaredVarsMoreThanAssignments','',Justification='False Positives')]
|
||||
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingCmdletAliases','',Justification='Testing for presence of alias')]
|
||||
param()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user