greenelab/adage-server

View on GitHub
interface/src/app/gene/searchMany/searchMany.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

      function($scope, SelectedGenesFactory) {
        $scope.currentPage = 1;
        $scope.itemsPerPage = 10;
        $scope.totalResults = 0;
        $scope.maxSize = 10;
Severity: Minor
Found in interface/src/app/gene/searchMany/searchMany.js - About 1 hr to fix

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

          function($scope, SelectedGenesFactory, CommonGeneFuncts) {
            $scope.buttonPage = 1;
            $scope.queryResults = $scope.searchResults[$scope.query];
    
            var selectedGenes = SelectedGenesFactory.returnGenes();
    Severity: Minor
    Found in interface/src/app/gene/searchMany/searchMany.js - About 1 hr to fix

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

          controller: ['$scope', 'Gene', function($scope, Gene) {
            $scope.errors = null;
      
            $scope.searchGenes = function() {
              // Gene.search will query for all of the search terms in qparams,
      Severity: Minor
      Found in interface/src/app/gene/searchMany/searchMany.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status