CORE-POS/IS4C

View on GitHub
pos/is4c-nf/scale-drivers/drivers/NewMagellan/Magellan.cs

Summary

Maintainability
C
1 day
Test Coverage

File Magellan.cs has 378 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Threading;
using System.IO;
using System.Collections.Generic;
using System.Linq;
Severity: Minor
Found in pos/is4c-nf/scale-drivers/drivers/NewMagellan/Magellan.cs - About 5 hrs to fix

    Method ReadConfig has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private List<MagellanConfigPair> ReadConfig()
        {
            /**
             * Look for settings in ini.json if it exists
             * and the library DLL exists
    Severity: Minor
    Found in pos/is4c-nf/scale-drivers/drivers/NewMagellan/Magellan.cs - About 1 hr to fix

      Method MsgSend has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public void MsgSend(string msg)
          {
              try {
                  if (full_udp) {
                      byte[] body = System.Text.Encoding.UTF8.GetBytes(msg);
      Severity: Minor
      Found in pos/is4c-nf/scale-drivers/drivers/NewMagellan/Magellan.cs - About 1 hr to fix

        Method MsgRecv has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public void MsgRecv(string msg, System.Net.IPEndPoint ep=null)
            {
                try {
                    if (msg == "exit") {
                        this.ShutDown();
        Severity: Minor
        Found in pos/is4c-nf/scale-drivers/drivers/NewMagellan/Magellan.cs - About 1 hr to fix

          Method Main has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              static public int Main(string[] args)
              {
                  int verbosity = 0;
                  for (int i=0;i<args.Length;i++){
                      if (args[i] == "-v"){
          Severity: Minor
          Found in pos/is4c-nf/scale-drivers/drivers/NewMagellan/Magellan.cs - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status