We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a650ba commit 0a06ec9Copy full SHA for 0a06ec9
1 file changed
Pipelines/Scripts/validatecode.ps1
@@ -183,7 +183,12 @@ function CheckForMetaFile {
183
[string]$FileName
184
)
185
process {
186
- if (-not $FileName.EndsWith("~") -and -not (Test-Path ($FileName + ".meta"))) {
+ $isIgnoredByUnity = $FileName -match "~([\\/]|$)" -or
187
+ $FileName -match "[\\/]\." -or
188
+ $FileName -match "[\\/]cvs([\\/]|$)" -or
189
+ $FileName.EndsWith(".tmp")
190
+
191
+ if (-not $isIgnoredByUnity -and -not (Test-Path ($FileName + ".meta"))) {
192
Write-Warning "Meta file missing for $FileName. Please be sure to check it in alongside this file."
193
$true;
194
}
0 commit comments