Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
Updated warning to include the motivation for the test
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrreynolds committed Mar 19, 2016
1 parent f09e138 commit 90e8bb8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Meta.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ try

if(($content[-1] -ne "`n") -and ($content[-2] -ne "`r"))
{
Write-Warning "$($file.FullName) does not end with a new line."
if($noNewLineCount -eq 0)
{
Write-Warning "To improve consistency across multiple environments and editors each text file is required to end with a new line."
}

Write-Warning "$($file.FullName) does not end with a new line. Use Fixer 'Add-NewLine'"
$noNewLineCount++
}
}
Expand Down

0 comments on commit 90e8bb8

Please sign in to comment.