uPortal-Project/uportal-home

View on GitHub
web/src/main/webapp/js/dnd-lists.js

Summary

Maintainability
B
4 hrs
Test Coverage

File dnd-lists.js has 299 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Licensed to Apereo under one or more contributor license
 * agreements. See the NOTICE file distributed with this work
 * for additional information regarding copyright ownership.
 * Apereo licenses this file to you under the Apache License,
Severity: Minor
Found in web/src/main/webapp/js/dnd-lists.js - About 3 hrs to fix

    Function invokeCallback has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            function invokeCallback(expression, event, dropEffect, itemType, index, item) {
    Severity: Minor
    Found in web/src/main/webapp/js/dnd-lists.js - About 45 mins to fix

      Avoid too many return statements within this function.
      Open

                  if (!data) return stopDragover();
      Severity: Major
      Found in web/src/main/webapp/js/dnd-lists.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                  return false;
        Severity: Major
        Found in web/src/main/webapp/js/dnd-lists.js - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status