Scripts/Helpers/New-ErrorInfo.ps1 (15 lines of code) (raw):
function New-ErrorInfo {
[CmdletBinding()]
param (
[string] $FileName
)
$errorInfo = @{
errorStrings = [System.Collections.ArrayList]::new()
errorsInFile = 0
currentEntryNumber = -1
hasErrors = $false
hasLocalErrors = $false
fileName = $FileName
}
$errorInfo
}