diff --git a/Design/Rule0035ExplicitSetAllowInCustomizations.cs b/Design/Rule0035ExplicitSetAllowInCustomizations.cs index 1767a4b9..047049a0 100644 --- a/Design/Rule0035ExplicitSetAllowInCustomizations.cs +++ b/Design/Rule0035ExplicitSetAllowInCustomizations.cs @@ -31,6 +31,8 @@ private void AnalyzeAllowInCustomization(SymbolAnalysisContext ctx) .Where(x => x.GetBooleanPropertyValue(PropertyKind.Enabled) != false) .Where(x => x.GetProperty(PropertyKind.AllowInCustomizations) is null) .Where(x => x.GetProperty(PropertyKind.ObsoleteState) is null) + .Where(x => x.FieldClass != FieldClassKind.FlowFilter) + .Where(x => IsSupportedType(x.OriginalDefinition.GetTypeSymbol().GetNavTypeKindSafe())) .ToList(); if (!tableFields.Any()) return; @@ -102,5 +104,21 @@ private static IEnumerable GetRelatedPages(SymbolA return null; } } + + private static bool IsSupportedType(NavTypeKind navTypeKind) + { + switch (navTypeKind) + { + case NavTypeKind.Blob: + case NavTypeKind.Media: + case NavTypeKind.MediaSet: + case NavTypeKind.RecordId: + case NavTypeKind.TableFilter: + return false; + + default: + return true; + } + } } } \ No newline at end of file