greenelab/adage-server

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

Summary

Maintainability
A
3 hrs
Test Coverage

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

      function($scope, $state, Gene, SelectedGenesFactory, CommonGeneFuncts) {
        var numResultsToReturn = 10;
        $scope.errors = null;
        $scope.autocompleteQuery = '';
        $scope.selectedGenes = SelectedGenesFactory.returnGenes();
Severity: Minor
Found in interface/src/app/gene/searchFew/searchFew.js - About 1 hr to fix

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

            $scope.searchGenes = function(val) {
              $scope.loadingGenes = true;
              var qparams = {
                'query': val,
                'organism': $scope.organism
    Severity: Minor
    Found in interface/src/app/gene/searchFew/searchFew.js - About 1 hr to fix

      Function controller has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            function($scope, $state, Gene, SelectedGenesFactory, CommonGeneFuncts) {
      Severity: Minor
      Found in interface/src/app/gene/searchFew/searchFew.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status