Showing 5 of 7 total issues
Consider simplifying this complex logical expression. Open
Open
if (
propertyValue == null
|| (propertyType == typeof(int) && Convert.ToInt32(propertyValue) == 0)
|| (propertyType == typeof(long) && Convert.ToInt64(propertyValue) == 0)
|| (
Method GetRequestEndpoint
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static string GetRequestEndpoint(this BaseRequest request)
{
var matchData = new ProcessMatchData { Type = request.GetType() };
var endpointAttribute = request.GetRequestEndpointAttribute();
Method ProcessMatch
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void ProcessMatch(
BaseRequest request,
Match match,
ProcessMatchData matchData
)
Method ParseProperty
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static bool ParseProperty(
BaseRequest request,
PropertyInfo property,
bool addAsQueryString,
StringBuilder builder
Consider simplifying this complex logical expression. Open
Open
if (
propertyType == typeof(string)
|| propertyType == typeof(bool)
|| (propertyType == typeof(int) && Convert.ToInt32(propertyValue) > 0)
|| (propertyType == typeof(long) && Convert.ToInt64(propertyValue) > 0)