cBioPortal/iViz

View on GitHub

Showing 156 of 1,095 total issues

File tableViewTemplate.js has 334 lines of code (exceeds 250 allowed). Consider refactoring.
Open

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

    Function init has 98 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        init: function(_rawDataJSON, configs,_selectableIds) {
          vm_ = iViz.vue.manage.getInstance();
          var selectableIdsSet = {}
          _.each(_selectableIds, function(id){
            selectableIdsSet[id] = true;
    Severity: Major
    Found in app/scripts/main.js - About 3 hrs to fix

      File curve.js has 325 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      'use strict';
      (function(iViz, dc, _, d3, LogRankTest) {
        iViz.view.component.SurvivalCurve = function(_divId, _data, _opts) {
          var _self = this;
      
      
      Severity: Minor
      Found in app/scripts/views/components/survivalChart/components/curve.js - About 3 hrs to fix

        Function utils has 93 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          vcSession.utils = (function() {
            var virtualCohort_ = {
              name: '',
              description: '',
              filters: '',
        Severity: Major
        Found in app/scripts/session/sessionUtil.js - About 3 hrs to fix

          Function SurvivalCurve has 89 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            iViz.view.component.SurvivalCurve = function(_divId, _data, _opts) {
              var _self = this;
          
              _self.elem_ = '';
              _self.divId_ = _divId;
          Severity: Major
          Found in app/scripts/views/components/survivalChart/components/curve.js - About 3 hrs to fix

            Function pieChartCanvasDownload has 87 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function pieChartCanvasDownload(data, downloadOpts) {
                  var _svgElement = '';
            
                  var _width = getPieWidthInfo(data);
                  var _pieLabelString = '';
            Severity: Major
            Found in app/scripts/controller/util.js - About 3 hrs to fix

              Function update-all-filters has 87 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    'update-all-filters': function(updateType_) {
                      var _selectedCasesByFilters = [];
                      var _counterSelectedCasesByFilters = [];
                      var self_ = this;
                      var _hasFilters = false;
              Severity: Major
              Found in app/scripts/views/mainTemplate.js - About 3 hrs to fix

                Function getSamplesCall has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                          var getSamplesCall = function() {
                            var def = new $.Deferred();
                            var data = [];
                            _.each(self.getCancerStudyIds(), function(studyId) {
                              data = data.concat(_.map(self.studyCasesMap[studyId].samples, function(sample) {
                Severity: Major
                Found in app/scripts/model/dataProxy.js - About 3 hrs to fix

                  Function processBarchartData has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        processBarchartData: function(_data) {
                          var _self = this;
                          var _dataIssue = false;
                          var smallerOutlier = {};
                          var greaterOutlier = {};
                  Severity: Major
                  Found in app/scripts/views/components/barChart/barChartTemplate.js - About 3 hrs to fix

                    Function getGenePanelMap has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          getGenePanelMap: function(hugoSymbols, map) {
                            var _def = new $.Deferred();
                            var panelSamplesMap = {};
                            var geneSampleMap = {};
                            var isProfiledPanelId = 'profiled';
                    Severity: Major
                    Found in app/scripts/model/dataProxy.js - About 3 hrs to fix

                      Function update has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          content.update = function(_sampleIds) {
                            var _selectedData = [];
                            var _unselectedData = [];
                      
                            var _tmpSelectedSampleIdMap = {};
                      Severity: Major
                      Found in app/scripts/views/components/scatterPlot/scatterPlot.js - About 2 hrs to fix

                        File chartOperationsHeader.js has 286 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

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

                          Function priorityManager has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            iViz.priorityManager = (function() {
                              var content = {};
                              var clinicalAttrsPriority = {};
                              var defaultPriority = 1;
                          
                          
                          Severity: Major
                          Found in app/scripts/controller/priorityManager.js - About 2 hrs to fix

                            Function mutatedGenesData has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function mutatedGenesData(_selectedGenesMap, _selectedSampleUids) {
                                  genePanelMap = window.iviz.datamanager.updateGenePanelMap(genePanelMap, _selectedSampleUids);
                            
                                  selectedGeneData.length = 0;
                                  var numOfCases_ = content.getCases().length;
                            Severity: Major
                            Found in app/scripts/views/components/dataTable/tableView.js - About 2 hrs to fix

                              Function Survival has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                iViz.view.component.Survival = function() {
                                  var content_ = this;
                                  var opts_ = {
                                    downloadIsEnabled: true
                                  };
                              Severity: Major
                              Found in app/scripts/views/components/survivalChart/main.js - About 2 hrs to fix

                                Function init has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    content.init = function(_data, opts) {
                                      opts_ = $.extend(true, {}, opts);
                                      chartId_ = opts_.chartId;
                                      data_ = _.filter(_data, function(datum) {
                                        return !isNaN(datum.FRACTION_GENOME_ALTERED) && !isNaN(datum.MUTATION_COUNT);
                                Severity: Major
                                Found in app/scripts/views/components/scatterPlot/scatterPlot.js - About 2 hrs to fix

                                  Function extractCnaData has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      extractCnaData: function(_cnaData, _allSamples) {
                                        var _cnaMeta = {};
                                        var _allCNAGenes = {};
                                        var _cnaMetaIndex = 0;
                                        var self = this;
                                  Severity: Major
                                  Found in app/scripts/main.js - About 2 hrs to fix

                                    Function updateDataObject has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        updateDataObject: function(type, attrIds) {
                                          var def = new $.Deferred();
                                          var self_ = this;
                                          var isPatientAttributes = (type === 'patient');
                                          var _data = isPatientAttributes ? data_.groups.patient.data : data_.groups.sample.data;
                                    Severity: Major
                                    Found in app/scripts/main.js - About 2 hrs to fix

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

                                          function barChartCanvasDownload(data, downloadOpts) {
                                            var _svgElement = '';
                                            var _svg = $('#' + data.chartId + '>svg').clone();
                                            var _svgWidth = Number(_svg.attr('width'));
                                            var _svgHeight = Number(_svg.attr('height')) + 20;
                                      Severity: Major
                                      Found in app/scripts/controller/util.js - About 2 hrs to fix

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

                                            content.update = function(_selectedSampleUIDs, _selectedRows) {
                                              var selectedMap_ = {};
                                              var includeMutationCount = false;
                                              if (_selectedRows !== undefined) {
                                                selectedRows = _selectedRows;
                                        Severity: Major
                                        Found in app/scripts/views/components/dataTable/tableView.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language