guibranco/Sankhya-SDK-dotnet

View on GitHub

Showing 145 of 326 total issues

Class Contact has 25 methods (exceeds 20 allowed). Consider refactoring.
Open

[Entity("Contato")]
public class Contact : IEntity, IEquatable<Contact>
{
    /// <summary>
    /// Indicates whether the current object is equal to another object of the same type.
Severity: Minor
Found in Src/Sankhya/Transport/Contact.cs - About 2 hrs to fix

    Class SimpleCrudRequestWrapper has 25 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public static class SimpleCrudRequestWrapper
    {
        /// <summary>
        /// The Sankhya context.
        /// </summary>
    Severity: Minor
    Found in Src/Sankhya/RequestWrappers/SimpleCRUDRequestWrapper.cs - About 2 hrs to fix

      Method ProcessFieldsAndCriteria has 69 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private static void ProcessFieldsAndCriteria<T>(
              ServiceRequest request,
              T criteriaEntity,
              ReferenceLevel currentLevel,
              PropertyInfo propertyInfo,
      Severity: Major
      Found in Src/Sankhya/Helpers/ServiceRequestExtensions.cs - About 2 hrs to fix

        Method Equals has 68 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public bool Equals(Product other)
            {
                if (ReferenceEquals(null, other))
                {
                    return false;
        Severity: Major
        Found in Src/Sankhya/Transport/Product.cs - About 2 hrs to fix

          File City.cs has 280 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          using System.ComponentModel;
          using System.Diagnostics.CodeAnalysis;
          using CrispyWaffle.Serialization;
          using Sankhya.Attributes;
          
          
          Severity: Minor
          Found in Src/Sankhya/Transport/City.cs - About 2 hrs to fix

            File RequestBody.cs has 279 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            using System.ComponentModel;
            using System.Xml.Serialization;
            
            namespace Sankhya.Service;
            
            
            Severity: Minor
            Found in Src/Sankhya/Service/RequestBody.cs - About 2 hrs to fix

              Method GetHashCode has 67 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  [SuppressMessage(
                      "ReSharper",
                      "NonReadonlyMemberInGetHashCode",
                      Justification = "Used to compute hash internally"
                  )]
              Severity: Major
              Found in Src/Sankhya/Transport/PartnerComplement.cs - About 2 hrs to fix

                File SimpleCRUDRequestWrapper.cs has 278 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                using CrispyWaffle.Composition;
                using CrispyWaffle.Log;
                using Sankhya.Enums;
                using Sankhya.GoodPractices;
                using Sankhya.Helpers;
                Severity: Minor
                Found in Src/Sankhya/RequestWrappers/SimpleCRUDRequestWrapper.cs - About 2 hrs to fix

                  Class InvoiceHeaderExclusion has 24 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  [Entity("CabecalhoNotaExcluida")]
                  public class InvoiceHeaderExclusion : IEntity, IEquatable<InvoiceHeaderExclusion>
                  {
                      /// <summary>
                      /// Indicates whether the current object is equal to another object of the same type.
                  Severity: Minor
                  Found in Src/Sankhya/Transport/InvoiceHeaderExclusion.cs - About 2 hrs to fix

                    File Financial.cs has 276 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    using System.ComponentModel;
                    using System.Diagnostics.CodeAnalysis;
                    using System.Globalization;
                    using CrispyWaffle.Extensions;
                    using Sankhya.Attributes;
                    Severity: Minor
                    Found in Src/Sankhya/Transport/Financial.cs - About 2 hrs to fix

                      Method GetImage has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public ServiceFile GetImage(string entity, Dictionary<string, object> keys)
                          {
                              HttpWebResponse response = null;
                              try
                              {
                      Severity: Major
                      Found in Src/Sankhya/SankhyaWrapper.cs - About 2 hrs to fix

                        Method Resolve has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static void Resolve<T>(this ServiceRequest request, ICollection<T> criteriaList)
                                where T : class, IEntity, new()
                            {
                                if (request == null)
                                {
                        Severity: Major
                        Found in Src/Sankhya/Helpers/ServiceRequestExtensions.cs - About 2 hrs to fix

                          Method ServiceInvokerInternal has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private ServiceResponse ServiceInvokerInternal(
                                  ServiceRequest request,
                                  ServiceName serviceName,
                                  RequestRetryData retryData
                              )
                          Severity: Major
                          Found in Src/Sankhya/SankhyaWrapper.cs - About 2 hrs to fix

                            Class Release has 23 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                            [XmlType("liberacao")]
                            public sealed class Release
                            {
                                /// <summary>
                                /// The key
                            Severity: Minor
                            Found in Src/Sankhya/Service/Release.cs - About 2 hrs to fix

                              Method GetHashCode has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  [SuppressMessage(
                                      "ReSharper",
                                      "NonReadonlyMemberInGetHashCode",
                                      Justification = "Used to compute hash internally"
                                  )]
                              Severity: Major
                              Found in Src/Sankhya/Transport/InvoiceItem.cs - About 2 hrs to fix

                                Method GetHashCode has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    [SuppressMessage(
                                        "ReSharper",
                                        "NonReadonlyMemberInGetHashCode",
                                        Justification = "Used to compute hash internally"
                                    )]
                                Severity: Major
                                Found in Src/Sankhya/Transport/InvoiceHeaderExclusion.cs - About 2 hrs to fix

                                  File OnDemandRequestWrapper.cs has 266 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  using System.Collections.Concurrent;
                                  using System.Globalization;
                                  using CrispyWaffle.Composition;
                                  using CrispyWaffle.Events;
                                  using CrispyWaffle.Log;
                                  Severity: Minor
                                  Found in Src/Sankhya/RequestWrappers/OnDemandRequestWrapper.cs - About 2 hrs to fix

                                    File StatusMessageHelper.cs has 264 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    using System.Text.RegularExpressions;
                                    using CrispyWaffle.Extensions;
                                    using Sankhya.Enums;
                                    using Sankhya.GoodPractices;
                                    using Sankhya.Service;
                                    Severity: Minor
                                    Found in Src/Sankhya/Helpers/StatusMessageHelper.cs - About 2 hrs to fix

                                      Method GetHashCode has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          [SuppressMessage(
                                              "ReSharper",
                                              "NonReadonlyMemberInGetHashCode",
                                              Justification = "Used to compute hash internally"
                                          )]
                                      Severity: Major
                                      Found in Src/Sankhya/Transport/SystemParameter.cs - About 2 hrs to fix

                                        Method ProcessInternal has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            private bool ProcessInternal(Guid sessionToken)
                                            {
                                                WaitHandle.WaitAny(new[] { _event, _token.WaitHandle }, new TimeSpan(0, 1, 0));
                                        
                                                if (_queue.IsEmpty && (_token.IsCancellationRequested || _disposeRequested))
                                        Severity: Major
                                        Found in Src/Sankhya/RequestWrappers/OnDemandRequestWrapper.cs - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language