Showing 5 of 17 total issues
Method BuildExpression
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public virtual Expression BuildExpression(Type entityType, Expression body)
{
Expression finalExpression = body;
var _type = this.GetType();
foreach (var filterProperty in _type.GetProperties())
Method BuildExpression
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public Expression BuildExpression(Type entityType, Expression body)
{
Expression finalExpression = body;
foreach (var key in this.Keys)
Method BuildExpression
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public virtual Expression BuildExpression(Expression body, PropertyInfo targetProperty, PropertyInfo filterProperty, object value)
{
return GetRangeComparison();
BinaryExpression GetRangeComparison()
Method GetFilterDtoCode
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
internal string GetFilterDtoCode(string className, IEnumerable<IPropertySymbol> properties,
string @namespace = null)
{
var start = $@"
using System;
Avoid too many return
statements within this method. Open
Open
return OperatorComparisonAttribute.Equal.BuildExpression(expressionBody, targetProperty, filterProperty, value);