cBioPortal/iViz

View on GitHub

Showing 156 of 1,095 total issues

Function stat has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    stat: function() {
      var _result = {};
      _result.origin = window.cohortIdsList;
      _result.filters = {};
      var self = this;
Severity: Major
Found in app/scripts/main.js - About 2 hrs to fix

    File barChartTemplate.js has 276 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * Created by Karthik Kalletla on 4/6/16.
     */
    'use strict';
    (function(Vue, d3, dc, iViz, _, $, cbio) {
    Severity: Minor
    Found in app/scripts/views/components/barChart/barChartTemplate.js - About 2 hrs to fix

      Function getPatientClinicalData has 65 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var getPatientClinicalData = function(self, attr_ids) {
            var def = new $.Deferred();
            var fetch_promises = [];
            var clinical_data = {};
            if (_.isArray(attr_ids)) {
      Severity: Major
      Found in app/scripts/model/dataProxy.js - About 2 hrs to fix

        Function getLayoutMatrix has 63 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              getLayoutMatrix: function(layoutMatrix, chart) {
                var self_ = this;
                var neighborIndex;
                var foundSpace = false;
                var layout = chart.layout;
        Severity: Major
        Found in app/scripts/views/mainTemplate.js - About 2 hrs to fix

          Function addChart has 62 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                      addChart: function(attrId) {
                        var self_ = this;
                        var attrData = self_.charts[attrId];
                        var _attrAdded = false;
                        var _group = {};
          Severity: Major
          Found in app/scripts/vueCore.js - About 2 hrs to fix

            Function getSampleClinicalData has 61 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var getSampleClinicalData = function(self, attr_ids) {
                  var def = new $.Deferred();
                  var fetch_promises = [];
                  var clinical_data = {};
                  if (_.isArray(attr_ids)) {
            Severity: Major
            Found in app/scripts/model/dataProxy.js - About 2 hrs to fix

              Function ready has 61 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  ready: function() {
                    var _self = this;
                    var callbacks = {};
                    var attrId = this.attributes.attr_id;
              
              
              Severity: Major
              Found in app/scripts/views/components/dataTable/tableViewTemplate.js - About 2 hrs to fix

                Function getTickFormat has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    content.getTickFormat = function(v, logScale, data_, opts_) {
                      var _returnValue = v;
                      var index = 0;
                      var e = d3.format('.1e');// convert small data to scientific notation format
                      var formattedValue = '';
                Severity: Major
                Found in app/scripts/controller/util.js - About 2 hrs to fix

                  Function initDCPieChart has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function initDCPieChart() {
                        if (v.opts.hasOwnProperty('chartId') &&
                          v.data.hasOwnProperty('ndx') &&
                          v.data.hasOwnProperty('attr_id')) {
                          var width = v.opts.width || 130;
                  Severity: Major
                  Found in app/scripts/views/components/pieChart/pieChart.js - About 2 hrs to fix

                    Function setSelectedCases has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                setSelectedCases: function(selectionType, selectedCases) {
                                  var radioVal = selectionType;
                                  var selectedCaseUIDs = [];
                                  var unmappedCaseIDs = [];
                    
                    
                    Severity: Major
                    Found in app/scripts/vueCore.js - About 2 hrs to fix

                      Function SurvivalChartProxy has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        iViz.data.SurvivalChartProxy = function(_data, _attrId) {
                          var datumArr_ = [];
                      
                          // convert raw data
                          var _totalNum = 0;
                      Severity: Major
                      Found in app/scripts/views/components/survivalChart/proxy.js - About 2 hrs to fix

                        Function getConfigs has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                function(self, fetch_promise) {
                                  if (_.isObject(configs_)) {
                                    fetch_promise.resolve(configs_);
                                  } else {
                                    $.getJSON(window.cbioResourceURL + 'configs.json?' + window.appVersion)
                        Severity: Major
                        Found in app/scripts/model/dataProxy.js - About 2 hrs to fix

                          Function getColors has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              content.getColors = function() {
                                return [
                                  '#2986e2', '#dc3912', '#f88508', '#109618',
                                  '#990099', '#0099c6', '#dd4477', '#66aa00',
                                  '#b82e2e', '#316395', '#994499', '#22aa99',
                          Severity: Major
                          Found in app/scripts/controller/util.js - About 2 hrs to fix

                            Function downloadCaseData has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                downloadCaseData: function() {
                                  var _def = new $.Deferred();
                                  var sampleUIds_ = vm_.selectedsampleUIDs;
                                  var attr = {};
                                  var self = this;
                            Severity: Major
                            Found in app/scripts/main.js - About 2 hrs to fix

                              Function mergeGrps has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function mergeGrps(inputGrp1, inputGrp2) {
                                  var _ptr_1 = 0; // index indicator/pointer for group1
                                  var _ptr_2 = 0; // index indicator/pointer for group2
                              
                                  // Stop when either pointer reach the end of the array
                              Severity: Minor
                              Found in app/scripts/views/components/survivalChart/components/logRankTest.js - About 2 hrs to fix

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

                                      getMutData: function(progressFunction) {
                                        var fetch_promise = new $.Deferred();
                                        var fetch_promises = [];
                                        var _mutDataStudyIdArr = [];
                                        var _mutationProfiles = this.mutationProfileIdsMap;
                                Severity: Minor
                                Found in app/scripts/model/dataProxy.js - About 1 hr to fix

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

                                      extractMutationData: function(_mutationData, _allSamples) {
                                        var _mutGeneMeta = {};
                                        var _allMutGenes = _.pluck(_mutationData, 'gene_symbol');
                                        var _mutGeneMetaIndex = 0;
                                        var self = this;
                                  Severity: Minor
                                  Found in app/scripts/main.js - About 1 hr to fix

                                    Function initReactTable has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function initReactTable(_reloadData, _selectedSampleUids, _selectedMap) {
                                          if (_reloadData) {
                                            reactTableData = initReactData(_selectedMap, _selectedSampleUids);
                                          }
                                          var _opts = {
                                    Severity: Minor
                                    Found in app/scripts/views/components/dataTable/tableView.js - About 1 hr to fix

                                      Function getCnaData has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                            getCnaData: function(progressFunction) {
                                              var _ajaxCnaData = {};
                                              var fetch_promises = [];
                                              var self = this;
                                              var _cnaProfiles = self.cnaProfileIdsMap;
                                      Severity: Minor
                                      Found in app/scripts/model/dataProxy.js - About 1 hr to fix

                                        Function updateLayoutMatrix has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                              updateLayoutMatrix: function() {
                                                var self_ = this;
                                                var _charts = _.values(this.$root.charts);
                                                _charts.sort(function(a, b) {
                                                  return iViz.priorityManager.comparePriorities(a.priority, b.priority, false);
                                        Severity: Minor
                                        Found in app/scripts/views/mainTemplate.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language