teco-kit/PointAndControl

View on GitHub
IGS/ComponentHandling/DeviceStorageFileHandlerJSON.cs

Summary

Maintainability
A
2 hrs
Test Coverage

Method changeDeviceCoord has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public string changeDeviceCoord(string devId, Ball ball)
        {
            List<Device> devices = readDevices();

            if (devices == null || devices.Count == 0 || devices.Exists(d => d.Id == devId))
Severity: Minor
Found in IGS/ComponentHandling/DeviceStorageFileHandlerJSON.cs - About 1 hr to fix

    Method updateDevice has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            public string updateDevice(Device dev)
            {
                List<Device> devices = readDevices();
    
                if (devices == null || devices.Count == 0)
    Severity: Minor
    Found in IGS/ComponentHandling/DeviceStorageFileHandlerJSON.cs - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status