greenelab/adage-server

View on GitHub
interface/src/app/analyze/search/search.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function SearchCtrl has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function SearchCtrl($scope, $log, $location, Search) {
    $scope.results = [];
    $scope.search = {
      query: {
        text: '',
Severity: Minor
Found in interface/src/app/analyze/search/search.js - About 1 hr to fix

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

          get: function() {
            $scope.results = [];
            $scope.search.query.status = '';
            if (!$scope.search.query.text) {
              $log.info('Query text is empty, so skipping search.');
    Severity: Minor
    Found in interface/src/app/analyze/search/search.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status