Rasagar/Library/PackageCache/com.unity.package-validation-suite/Lib/PvpXray/LargeFileVerifier.cs

28 lines
619 B
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
namespace PvpXray
{
class LargeFileVerifier : Verifier.IChecker
{
public static string[] Checks => new[] { "PVP-93-1" };
public static int PassCount => 1;
readonly Verifier.Context m_Context;
public LargeFileVerifier(Verifier.Context context)
{
m_Context = context;
}
public void CheckItem(Verifier.PackageFile file, int passIndex)
{
if (file.Size > 1_000_000_000)
{
m_Context.AddError("PVP-93-1", file.Path);
}
}
public void Finish()
{
}
}
}