react-dnd/dnd-core

View on GitHub
src/DragDropMonitor.js

Summary

Maintainability
A
1 hr
Test Coverage

Function subscribeToStateChange has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  subscribeToStateChange(listener, options = {}) {
    const { handlerIds } = options;
    invariant(
      typeof listener === 'function',
      'listener must be a function.',
Severity: Minor
Found in src/DragDropMonitor.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return index > -1;
    Severity: Major
    Found in src/DragDropMonitor.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status