Showing 283 of 466 total issues
Method GetBankList
has 4831 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static List<Bank> GetBankList()
{
return new List<Bank>()
{
new Bank("48020086", "70020270", "HYVEDEMM344", "https://hbci-01.hypovereinsbank.de/bank/hbci"),
File camt_052_001_08.cs
has 8201 lines of code (exceeds 250 allowed). Consider refactoring. Open
namespace libfintx.FinTS.Camt.Camt052_008 {
using System.Xml.Serialization;
/// <remarks/>
File camt_053_001_02.cs
has 6520 lines of code (exceeds 250 allowed). Consider refactoring. Open
namespace libfintx.FinTS.Camt.Camt053
{
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")]
[System.SerializableAttribute()]
File camt_052_001_02.cs
has 6520 lines of code (exceeds 250 allowed). Consider refactoring. Open
namespace libfintx.FinTS.Camt.Camt052_002
{
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")]
[System.SerializableAttribute()]
File Bank.cs
has 4850 lines of code (exceeds 250 allowed). Consider refactoring. Open
using System.Collections.Generic;
namespace libfintx.Sample.Ui
{
public class Bank
File pain_001_001_03.cs
has 3266 lines of code (exceeds 250 allowed). Consider refactoring. Open
namespace libfintx.Sepa.pain_001_001_03 {
using System.Xml.Serialization;
/// <remarks/>
Method Parse_Segments
has a Cognitive Complexity of 218 (exceeds 20 allowed). Consider refactoring. Open
public static List<HBCIBankMessage> Parse_Segments(FinTsClient client, string Message)
{
Log.Write("Parsing segments ...");
try
- 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 Data
has a Cognitive Complexity of 203 (exceeds 20 allowed). Consider refactoring. Open
private static void Data(string swiftTag, string swiftData)
{
if (SWIFTStatement != null)
{
SWIFTStatement.Lines.Add(new SwiftLine(swiftTag, swiftData));
- 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 Create
has 635 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static string Create(FinTsClient client, int MsgNum, string DialogID, string Segments, string HIRMS_TAN, string SystemID = null)
{
int Version = client.ConnectionDetails.HbciVersion;
int BLZ = client.ConnectionDetails.BlzPrimary;
Method InitializeComponent
has 543 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void InitializeComponent()
{
this.txt_hbci_meldung = new System.Windows.Forms.TextBox();
this.btn_auftrag_bestätigen_tan = new System.Windows.Forms.Button();
this.btn_überweisen = new System.Windows.Forms.Button();
Method ProcessDocument
has a Cognitive Complexity of 148 (exceeds 20 allowed). Consider refactoring. Open
private void ProcessDocument(Camt052_008.Document document)
{
statements = new List<CamtStatement>();
var stmts = document.BkToCstmrAcctRpt.Rpt;
- 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 Permission
has 538 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static string Permission(string segment)
{
string result = null;
switch (segment)
Method ProcessDocument
has a Cognitive Complexity of 121 (exceeds 20 allowed). Consider refactoring. Open
private void ProcessDocument(Camt052_002.Document document)
{
statements = new List<CamtStatement>();
var stmts = document.BkToCstmrAcctRpt.Rpt;
- 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 ProcessDocument
has a Cognitive Complexity of 121 (exceeds 20 allowed). Consider refactoring. Open
private void ProcessDocument(Document document)
{
statements = new List<CamtStatement>();
AccountStatement2[] stmts = document.BkToCstmrStmt.Stmt;
- 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 Data
has 389 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static void Data(string swiftTag, string swiftData)
{
if (SWIFTStatement != null)
{
SWIFTStatement.Lines.Add(new SwiftLine(swiftTag, swiftData));
File FinTsMessage.cs
has 732 lines of code (exceeds 250 allowed). Consider refactoring. Open
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Threading.Tasks;
Method Send_TAN
has 315 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static async Task<String> Send_TAN(FinTsClient client, string TAN)
{
Log.Write("Starting TAN process");
string segments = string.Empty;
File MT940.cs
has 688 lines of code (exceeds 250 allowed). Consider refactoring. Open
using libfintx.FinTS.Swift;
using libfintx.Globals;
using libfintx.Logger.Log;
using libfintx.Logger.Trace;
using System;
Method Init_HKCAZ
has 286 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static async Task<String> Init_HKCAZ(FinTsClient client, string FromDate, string ToDate,
string Startpoint, CamtVersion camtVers)
{
string segments = string.Empty;
var connectionDetails = client.ConnectionDetails;
File MainForm.Designer.cs
has 620 lines of code (exceeds 250 allowed). Consider refactoring. Open
namespace libfintx.Sample.Ui
{
partial class MainForm
{
/// <summary>