teco-kit/PointAndControl

View on GitHub
IGS/MainComponents/DeviceHolder.cs

Summary

Maintainability
C
7 hrs
Test Coverage

File DeviceHolder.cs has 304 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using PointAndControl.ComponentHandling;
using PointAndControl.Devices;
using PointAndControl.ThirdPartyRepos;
using System;
using System.Collections.Generic;
Severity: Minor
Found in IGS/MainComponents/DeviceHolder.cs - About 3 hrs to fix

    Class DeviceHolder has 21 methods (exceeds 20 allowed). Consider refactoring.
    Open

        public class DeviceHolder
        {
            public List<Device> devices { get; set; }
            public DeviceStorageFileHandlerJSON storageFileHandler { get; set; }
            public Deviceproducer deviceProducer { get; set; }
    Severity: Minor
    Found in IGS/MainComponents/DeviceHolder.cs - About 2 hrs to fix

      Method AddDevice has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              public string AddDevice(string type, string id, string name, string path, string repoID)
      Severity: Minor
      Found in IGS/MainComponents/DeviceHolder.cs - About 35 mins to fix

        Method AddDevice has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                public string AddDevice(string type, string id, string name, string path, RepositoryRepresentation repoDevice)
        Severity: Minor
        Found in IGS/MainComponents/DeviceHolder.cs - About 35 mins to fix

          Avoid too many return statements within this method.
          Open

                      return newDevice.Id;
          Severity: Major
          Found in IGS/MainComponents/DeviceHolder.cs - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status