in Editor/Scripts/NewEnumWindow.cs [113:129]
static string CheckForErrors(EnumInfo info)
{
string errors = string.Empty;
if (string.IsNullOrEmpty(info.name)) errors += "\n► Name should not be empty";
if (info.values.Count == 0) errors += "\n► Enum should has at least one value";
if (info.values.Distinct().Count() != info.values.Count) errors += "\n► Values could not be duplicated";
if (info.values.Any(x => string.IsNullOrEmpty(x))) errors += "\n► Fields can not have empty names";
foreach (var reservedEnumName in EnumInfoHelper.reservedEnumNames)
{
if (info.name == reservedEnumName)
errors += string.Format("\n► {0} is reserved enum name", reservedEnumName);
}
if (!string.IsNullOrEmpty(errors)) errors = "Please fix all errors before adding new enum" + errors;
return errors;
}