Showing 145 of 326 total issues
Class InvoiceHeader
has 37 methods (exceeds 20 allowed). Consider refactoring. Open
Open
[Entity("CabecalhoNota")]
public class InvoiceHeader : GenericServiceEntity, IEquatable<InvoiceHeader>
{
/// <summary>
/// Indicates whether the current object is equal to another object of the same type.
File InvoiceFollowUp.cs
has 363 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using CrispyWaffle.Extensions;
using Sankhya.Attributes;
Method HandleService
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void HandleService(ServiceRequest request, EntityResolverResult result)
{
switch (request.Service)
{
case ServiceName.CrudFind:
Method Equals
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public bool Equals(Partner other)
{
if (ReferenceEquals(null, other))
{
return false;
File SystemParameter.cs
has 346 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using CrispyWaffle.Extensions;
using Sankhya.Attributes;
using Sankhya.Enums;
Method GetHashCode
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[SuppressMessage(
"ReSharper",
"NonReadonlyMemberInGetHashCode",
Justification = "Used to compute hash internally"
)]
Method GetHashCode
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[SuppressMessage(
"ReSharper",
"NonReadonlyMemberInGetHashCode",
Justification = "Used to compute hash internally"
)]
File EntityExtensions.cs
has 320 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System.Globalization;
using System.Reflection;
using CrispyWaffle.Extensions;
using CrispyWaffle.Log;
using Sankhya.Attributes;
Method GetHashCode
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[SuppressMessage(
"ReSharper",
"NonReadonlyMemberInGetHashCode",
Justification = "Used to compute hash internally"
)]
File PartnerComplement.cs
has 310 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using Sankhya.Attributes;
namespace Sankhya.Transport;
Method HandleExceptionInternal
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private bool HandleExceptionInternal(
Exception exception,
ServiceName name,
ServiceCategory category,
ServiceRequest request,
Method Equals
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public bool Equals(InvoiceHeader other)
{
if (ReferenceEquals(null, other))
{
return false;
Method ParseProperty
has a Cognitive Complexity of 38 (exceeds 20 allowed). Consider refactoring. Open
Open
private void ParseProperty<T>(
T instance,
ReferenceLevel maxInnerLevel,
string prefix,
ReferenceLevel currentLevel,
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method Equals
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public bool Equals(Contact other)
{
if (ReferenceEquals(null, other))
{
return false;
File ProductInventory.cs
has 301 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using CrispyWaffle.Extensions;
using CrispyWaffle.Serialization;
using Sankhya.Attributes;
Class KnowServicesRequestWrapper
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public static class KnowServicesRequestWrapper
{
/// <summary>
/// The Sankhya context.
/// </summary>
Class Product
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
[Entity("Produto")]
public class Product : IEntity, IEquatable<Product>
{
/// <summary>
/// Indicates whether the current object is equal to another object of the same type.
File ResponseBody.cs
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System.ComponentModel;
using System.Xml.Serialization;
using CrispyWaffle.Extensions;
namespace Sankhya.Service;
Method Resolve
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void Resolve<T>(this ServiceRequest request)
where T : class, IEntity, new()
{
if (request == null)
{
Method ParseResponseBodyElements
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private bool ParseResponseBodyElements(XmlReader reader)
{
var entities = new List<EntityDynamicSerialization>();
switch (reader.LocalName)