pos/is4c-nf/scale-drivers/drivers/NewMagellan/Magellan.cs
File Magellan.cs
has 378 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Threading;
using System.IO;
using System.Collections.Generic;
using System.Linq;
Method ReadConfig
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private List<MagellanConfigPair> ReadConfig()
{
/**
* Look for settings in ini.json if it exists
* and the library DLL exists
Method MsgSend
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void MsgSend(string msg)
{
try {
if (full_udp) {
byte[] body = System.Text.Encoding.UTF8.GetBytes(msg);
Method MsgRecv
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void MsgRecv(string msg, System.Net.IPEndPoint ep=null)
{
try {
if (msg == "exit") {
this.ShutDown();
Method Main
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static public int Main(string[] args)
{
int verbosity = 0;
for (int i=0;i<args.Length;i++){
if (args[i] == "-v"){