CORE-POS/IS4C

View on GitHub
pos/is4c-nf/scale-drivers/drivers/NewMagellan/HidSharp/Platform/MacOS/NativeMethods.cs

Summary

Maintainability
C
1 day
Test Coverage

Class NativeMethods has 49 methods (exceeds 20 allowed). Consider refactoring.
Open

    static class NativeMethods
    {
        const string CoreFoundation = "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation";
        const string CoreServices = "/System/Library/Frameworks/CoreServices.framework/CoreServices";
        const string IOKit = "/System/Library/Frameworks/IOKit.framework/IOKit";

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

            public static extern void IOHIDDeviceRegisterInputReportCallback(IntPtr device, IntPtr report, IntPtr reportLength,
                                                                             IOHIDReportCallback callback, IntPtr context);

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

              public static extern IOReturn IOHIDDeviceGetReport(IntPtr device, IOHIDReportType type, IntPtr reportID, IntPtr report, ref IntPtr reportLength);

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

                public static extern IOReturn IOHIDDeviceSetReport(IntPtr device, IOHIDReportType type, IntPtr reportID, IntPtr report, IntPtr reportLength);

          There are no issues that match your filters.

          Category
          Status