greenelab/adage-server

View on GitHub
interface/src/app/sample_annotation/annotation.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function success has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    sidPromise.then(function success(validSamples) {
      Sample.get(
        {'id__in': validSamples, 'limit': 0}, // parameters of GET
        function success(response) {
          // If no valid sample records are found, report the error.
Severity: Minor
Found in interface/src/app/sample_annotation/annotation.js - About 1 hr to fix

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

        var getSampleIDPromise = function() {
          var deferred = $q.defer();
          // If 'signature' is found in the URL, get the activity values based on
          // signature and sample(s):
          if ($stateParams.signature) {
    Severity: Minor
    Found in interface/src/app/sample_annotation/annotation.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status