greenelab/adage-server

View on GitHub
interface/src/app/sample/sampleDetail.component.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

    function(Sample, Experiment, $log) {
      var ctrl = this;
      ctrl.makeHref = Experiment.makeHref;

      ctrl.$onInit = function() {
Severity: Minor
Found in interface/src/app/sample/sampleDetail.component.js - About 1 hr to fix

    Function show has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          ctrl.show = function(id) {
            if (!id) {
              $log.warn('adage.sampleDetail.component: show() called with id', id);
              return;
            }
    Severity: Minor
    Found in interface/src/app/sample/sampleDetail.component.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status