sanger/sequencescape

View on GitHub
app/frontend/entrypoints/submissions.js

Summary

Maintainability
B
5 hrs
Test Coverage

File submissions.js has 258 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Submission workflow jQuery Plugin...
(function (window, $) {
  "use strict";

  var methods = {
Severity: Minor
Found in app/frontend/entrypoints/submissions.js - About 2 hrs to fix

    Function addOrderHandler has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var addOrderHandler = function (_event) {
        // Loads this order's parameters into thewindow.SCAPE.submission object...
        $("#order-parameters")
          .find("select, input")
          .each(function () {
    Severity: Minor
    Found in app/frontend/entrypoints/submissions.js - About 1 hr to fix

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

        var saveOrderHandler = function (_event) {
          var currentPane = $(this).submission("currentPane");
          // refactor this little lot!
          window.SCAPE.submission.project_name = currentPane.find(".submission_project_name").val();
          window.SCAPE.submission.asset_group_id = currentPane.find(".submission_asset_group_id").val();
      Severity: Minor
      Found in app/frontend/entrypoints/submissions.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status