IGS/MainComponents/DeviceHolder.cs
File DeviceHolder.cs
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using PointAndControl.ComponentHandling;
using PointAndControl.Devices;
using PointAndControl.ThirdPartyRepos;
using System;
using System.Collections.Generic;
Class DeviceHolder
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class DeviceHolder
{
public List<Device> devices { get; set; }
public DeviceStorageFileHandlerJSON storageFileHandler { get; set; }
public Deviceproducer deviceProducer { get; set; }
Method AddDevice
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public string AddDevice(string type, string id, string name, string path, string repoID)
Method AddDevice
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public string AddDevice(string type, string id, string name, string path, RepositoryRepresentation repoDevice)
Avoid too many return
statements within this method. Open
Open
return newDevice.Id;