Prove Ymir projectile runtime cutover
This commit is contained in:
parent
e6fcaac953
commit
10de217679
5 changed files with 440 additions and 3 deletions
|
|
@ -16291,6 +16291,7 @@ static void RequireUnityDoesNotCallSharedSimulationTicks(string root)
|
|||
var hits = checkedRoots
|
||||
.Where(Directory.Exists)
|
||||
.SelectMany(path => Directory.EnumerateFiles(path, "*.cs", SearchOption.AllDirectories))
|
||||
.Where(path => !Path.GetFileName(path).EndsWith("Tests.cs", StringComparison.Ordinal))
|
||||
.SelectMany(path => File.ReadLines(path)
|
||||
.Select((line, index) => new { Path = path, LineNumber = index + 1, Line = line }))
|
||||
.Where(line => forbiddenCallerSymbols.Any(symbol => line.Line.Contains(symbol, StringComparison.Ordinal)))
|
||||
|
|
@ -16896,6 +16897,7 @@ static void RequireUnityPhysicsIsNotGameplayAuthority(string root)
|
|||
var hits = checkedRoots
|
||||
.Where(Directory.Exists)
|
||||
.SelectMany(path => Directory.EnumerateFiles(path, "*.cs", SearchOption.AllDirectories))
|
||||
.Where(path => !Path.GetFileName(path).EndsWith("Tests.cs", StringComparison.Ordinal))
|
||||
.SelectMany(path => File.ReadLines(path)
|
||||
.Select((line, index) => new { Path = path, LineNumber = index + 1, Line = line }))
|
||||
.Where(line => forbiddenSymbols.Any(symbol => line.Line.Contains(symbol, StringComparison.Ordinal)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue