Showing 25 of 48 total issues
Method CreateHttpRequestMessageFromRequest
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private HttpRequestMessage CreateHttpRequestMessageFromRequest(CoreRequest request)
{
HttpRequestMessage requestMessage = new HttpRequestMessage
{
RequestUri = new Uri(request.QueryUrl),
Method PrepareFormFieldsFromObject
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
internal static List<KeyValuePair<string, object>> PrepareFormFieldsFromObject(string name, object value, ArraySerialization arraySerializationFormat, List<KeyValuePair<string, object>> keys = null, PropertyInfo propInfo = null)
{
keys = keys ?? new List<KeyValuePair<string, object>>();
if (value == null)
Method DoesRightValContainsSameItems
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static bool DoesRightValContainsSameItems(JArray leftJArray, object rightVal, bool allowExtra, bool isOrdered)
{
if (!(rightVal is JArray rightJArray))
{
return false;
Method IsArrayOfJsonObjectsProperSubsetOf
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static bool IsArrayOfJsonObjectsProperSubsetOf(
JArray leftList,
JArray rightList,
bool checkValues,
bool allowExtra,
Method ModelsArrayToXml
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static string ModelsArrayToXml<T>(List<T> obj, string arrayName = null, string arrayItemName = null)
{
if (obj == null)
{
return string.Empty;
Method GetProcessedValue
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static object GetProcessedValue(object value, PropertyInfo propInfo = null)
{
if (value is Stream)
{
return value;
Method AppendContentTypeHeader
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void AppendContentTypeHeader()
{
if (!ContentHeaderKeyRequired("content-type"))
{
return;
Method PrepareFormFieldsForJObject
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static void PrepareFormFieldsForJObject(string name, object value, ArraySerialization arraySerializationFormat, List<KeyValuePair<string, object>> keys, PropertyInfo propInfo)
Method IsProperSubsetOf
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
JObject leftTree,
JObject rightTree,
bool checkValues,
bool allowExtra,
bool isOrdered)
Method IsArrayOfJsonObjectsProperSubsetOf
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
JArray leftList,
JArray rightList,
bool checkValues,
bool allowExtra,
bool isOrdered)
Method PrepareFormFieldsFromObject
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
internal static List<KeyValuePair<string, object>> PrepareFormFieldsFromObject(string name, object value, ArraySerialization arraySerializationFormat, List<KeyValuePair<string, object>> keys = null, PropertyInfo propInfo = null)
Method PrintArray
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
internal static string PrintArray<T>(IEnumerable<T> objList, Func<T, string> converter, string root = null, string itemName = null, string nodeName = null)
Method PrepareFormFieldsForDictionary
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static void PrepareFormFieldsForDictionary(string name, IDictionary dictionary, ArraySerialization arraySerializationFormat, List<KeyValuePair<string, object>> keys = null, PropertyInfo propInfo = null)
Method IsProperSubsetOf
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string left,
string right,
bool checkValues,
bool allowExtra,
bool isOrdered)
Method IsProperSubsetOfJObject
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static bool IsProperSubsetOfJObject(bool checkValues, bool allowExtra, bool isOrdered, object rightVal, JObject leftSideValue)
Method PrepareFormFieldsForEnumerable
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static void PrepareFormFieldsForEnumerable(string name, IList enumerable, ArraySerialization arraySerializationFormat, List<KeyValuePair<string, object>> keys, PropertyInfo propInfo)
Avoid too many return
statements within this method. Open
Open
return;
Avoid too many return
statements within this method. Open
Open
return jsonValue.GetStoredObject();
Avoid too many return
statements within this method. Open
Open
return requestMessage;
Avoid too many return
statements within this method. Open
Open
return requestMessage;