src/AutoFilterer/Attributes/CompareToAttribute.cs
Method BuildDefaultExpression
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public virtual Expression BuildDefaultExpression(Expression expressionBody, PropertyInfo targetProperty, PropertyInfo filterProperty, object value)
{
if (value is IFilter filter)
{
if (typeof(ICollection).IsAssignableFrom(targetProperty.PropertyType) || (targetProperty.PropertyType.IsConstructedGenericType && typeof(IEnumerable).IsAssignableFrom(targetProperty.PropertyType)))
Avoid too many return
statements within this method. Open
Open
return OperatorComparisonAttribute.Equal.BuildExpression(expressionBody, targetProperty, filterProperty, value);