mrklintscher/libfintx

View on GitHub

Showing 283 of 466 total issues

Method Transactions_camt has 119 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public async Task<HBCIDialogResult<List<CamtStatement>>> Transactions_camt(TANDialog tanDialog, CamtVersion camtVers,
            DateTime? startDate = null, DateTime? endDate = null, bool saveCamtFile = false)
        {
            var result = await InitializeConnection();
            if (result.HasError)
Severity: Major
Found in src/libfintx.FinTS/FinTsClientTransaction.cs - About 4 hrs to fix

    Method WaitForTanAsync has 110 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public static async Task<string> WaitForTanAsync(FinTsClient client, HBCIDialogResult dialogResult, TANDialog tanDialog)
            {
                var BankCode_ = "HIRMS" + Parse_String(dialogResult.RawData, "'HIRMS", "'");
                string[] values = BankCode_.Split('+');
                foreach (var item in values)
    Severity: Major
    Found in src/libfintx.FinTS/Helper/Helper_TAN.cs - About 4 hrs to fix

      File Tan.cs has 349 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      using System;
      using System.Text;
      using System.Threading.Tasks;
      using libfintx.FinTS.Data;
      using libfintx.FinTS.Message;
      Severity: Minor
      Found in src/libfintx.FinTS/Tan/Tan.cs - About 4 hrs to fix

        Method Init_HKSYN has 107 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                public static async Task<String> Init_HKSYN(FinTsClient client)
                {
                    Log.Write("Starting Synchronisation");
        
                    string segments;
        Severity: Major
        Found in src/libfintx.FinTS/Segments/HKSYN.cs - About 4 hrs to fix

          Method Create has 100 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  public static string Create(string Accountholder, string AccountholderIBAN, string AccountholderBIC, DateTime SettlementDate, List<Pain00800202CcData> PainData, string NumberofTransactions, decimal TotalAmount)
                  {
                      var RndNr = Guid.NewGuid().ToString();
          
                      if (RndNr.Length > 20)
          Severity: Major
          Found in src/libfintx.Sepa/Pain/pain00800202.cs - About 4 hrs to fix

            Method Create has 100 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public static string Create(string Accountholder, string AccountholderIBAN, string AccountholderBIC, string Payer, string PayerIBAN, string PayerBIC, decimal Amount, string Usage, DateTime SettlementDate, string MandateNumber, DateTime MandateDate, string CeditorIDNumber)
                    {
                        var RndNr = Guid.NewGuid().ToString();
            
                        if (RndNr.Length > 20)
            Severity: Major
            Found in src/libfintx.Sepa/Pain/pain00800202.cs - About 4 hrs to fix

              Method ParseAccounts has 99 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      private static bool ParseAccounts(string message)
                      {
                          AccountList = new List<AccountInformation>();
                          try
                          {
              Severity: Major
              Found in src/libfintx.FinTS/Data/UPD/UPD.cs - About 3 hrs to fix

                Method CreateInitRequest has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        private XmlDocument CreateInitRequest()
                        {
                            using (new MethodLogger(s_logger))
                            {
                                try
                Severity: Major
                Found in src/libfintx.EBICS/Commands/SprCommand.cs - About 3 hrs to fix

                  Method CreateInitRequest has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          private (XmlDocument request, IList<string> segments) CreateInitRequest()
                          {
                              using (new MethodLogger(s_logger))
                              {
                                  try
                  Severity: Major
                  Found in src/libfintx.EBICS/Commands/CctCommand.cs - About 3 hrs to fix

                    Method CreateInitRequest has 95 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            private (XmlDocument request, IList<string> segments) CreateInitRequest()
                            {
                                using (new MethodLogger(s_logger))
                                {
                                    try
                    Severity: Major
                    Found in src/libfintx.EBICS/Commands/CddCommand.cs - About 3 hrs to fix

                      File HKCAZ.cs has 323 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      using System;
                      using System.Threading.Tasks;
                      using libfintx.FinTS.Camt;
                      using libfintx.FinTS.Data;
                      using libfintx.FinTS.Message;
                      Severity: Minor
                      Found in src/libfintx.FinTS/Segments/HKCAZ.cs - About 3 hrs to fix

                        File DbfFile.cs has 319 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        using System;
                        using System.Collections.Generic;
                        using System.Text;
                        using System.IO;
                        
                        
                        Severity: Minor
                        Found in src/libfintx.Database/DbfFile.cs - About 3 hrs to fix

                          Method Deserialize has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  internal override DeserializeResponse Deserialize(string payload)
                                  {
                                      try
                                      {
                                          using (new MethodLogger(s_logger))
                          Severity: Major
                          Found in src/libfintx.EBICS/Commands/HpbCommand.cs - About 3 hrs to fix

                            Class MainForm has 29 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                                public partial class MainForm : Form
                                {
                                    private List<Bank> _bankList;
                            
                                    private bool _closing;
                            Severity: Minor
                            Found in src/libfintx.Sample.Ui/MainForm.cs - About 3 hrs to fix

                              Class Helper has 29 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                                  public static partial class Helper
                                  {
                                      /// <summary>
                                      /// Regex pattern for HIRMG/HIRMS messages.
                                      /// </summary>
                              Severity: Minor
                              Found in src/libfintx.FinTS/Helper/Helper.cs - About 3 hrs to fix

                                File DbfHeader.cs has 300 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                using System;
                                using System.Collections.Generic;
                                using System.Text;
                                using System.IO;
                                
                                
                                Severity: Minor
                                Found in src/libfintx.Database/DbfHeader.cs - About 3 hrs to fix

                                  Method Create has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          public static string Create(string Accountholder, string AccountholderIBAN, string AccountholderBIC, List<Pain00100203CtData> PainData, string NumberofTransactions, decimal TotalAmount, DateTime ExecutionDay)
                                          {
                                              var RndNr = Guid.NewGuid().ToString();
                                  
                                              if (RndNr.Length > 20)
                                  Severity: Major
                                  Found in src/libfintx.Sepa/Pain/pain00100303.cs - About 3 hrs to fix

                                    Method Create has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            public static string Create(string Accountholder, string AccountholderIBAN, string AccountholderBIC, List<Pain00100203CtData> PainData, string NumberofTransactions, decimal TotalAmount, DateTime ExecutionDay)
                                            {
                                                var RndNr = Guid.NewGuid().ToString();
                                    
                                                if (RndNr.Length > 20)
                                    Severity: Major
                                    Found in src/libfintx.Sepa/Pain/pain00100103.cs - About 3 hrs to fix

                                      File Command.cs has 295 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      using System;
                                      using System.Collections;
                                      using System.Collections.Generic;
                                      using System.Globalization;
                                      using System.IO;
                                      Severity: Minor
                                      Found in src/libfintx.EBICS/Commands/Command.cs - About 3 hrs to fix

                                        Method Create has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                public static string Create(string Accountholder, string AccountholderIBAN, string AccountholderBIC, string Receiver, string ReceiverIBAN, string ReceiverBIC, decimal Amount, string Usage, DateTime ExecutionDay)
                                                {
                                                    DateTime datetime = DateTime.Now;
                                                    var creDtTm = $"{datetime:s}";
                                                    var msgId = $"{datetime:yyyy-MM-dd HH:mm:ss.fff}";
                                        Severity: Major
                                        Found in src/libfintx.Sepa/Pain/pain00100103.cs - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language