cBioPortal/iViz

View on GitHub

Showing 156 of 1,095 total issues

Function attachPlotlySelectedEvent has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      attachPlotlySelectedEvent: function() {
        var _self = this;
        var data = iViz.getGroupNdx(_self.attributes.group_id);

        document.getElementById(this.chartId).on('plotly_selected',
Severity: Minor
Found in app/scripts/views/components/scatterPlot/scatterPlotTemplate.js - About 1 hr to fix

    Function getNavCaseIdsStr has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function getNavCaseIdsStr(selectedCasesMap, selectedCaseIds, underURLLimit) {
        var result = {
          str: '',
          limit: -1
        };
    Severity: Minor
    Found in app/scripts/main.js - About 1 hr to fix

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

          function initReactTable(targetId, inputData, opts) {
            var selectedRows = v.chart.filters();
      
            var opts_ = $.extend({
              input: inputData,
      Severity: Minor
      Found in app/scripts/views/components/pieChart/pieChart.js - About 1 hr to fix

        Function getCombinationPriority has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function getCombinationPriority(id) {
              var priority = _.clone(defaultPriority);
              if (id) {
                switch (id) {
                case 'DFS_SURVIVAL':
        Severity: Minor
        Found in app/scripts/controller/priorityManager.js - About 1 hr to fix

          Function GeneralChart has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            iViz.view.component.GeneralChart = function(chartType) {
              'use strict';
              this.chartType = chartType || 'generalChart';
              this.dataForDownload = {};
              this.getCurrentCategories = function() {
          Severity: Minor
          Found in app/scripts/views/components/generalChart.js - About 1 hr to fix

            Function updateQtipContent has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  updateQtipContent: function() {
                    if (this.mainDivQtip) {
                      var self_ = this;
                      var qtipContent = ['<div>'];
                      var groups = this.chartInst.getGroups();
            Severity: Minor
            Found in app/scripts/views/components/survivalChart/template.js - About 1 hr to fix

              Function processTableData has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    processTableData: function(_data) {
                      var data = iViz.getGroupNdx(this.attributes.group_id);
                      var opts = {
                        width: window.iViz.styles.vars.specialTables.width,
                        height: window.iViz.styles.vars.specialTables.height,
              Severity: Minor
              Found in app/scripts/views/components/dataTable/tableViewTemplate.js - About 1 hr to fix

                Function getFilteredOriginStudies has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      getFilteredOriginStudies: function() {
                        var selectedStudiesDisplayName = window.iviz.datamanager.getCancerStudyDisplayName(this.stats.origin);
                        var filteredOriginStudies = {
                          studies: [],
                          count: 0
                Severity: Minor
                Found in app/scripts/views/components/virtualStudy/virtualStudy.js - About 1 hr to fix

                  Function init has 9 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                        function(_attributes, _opts, _selectedSamples, _selectedGenes,
                                 _data, _callbacks, _geneData, _dimension, _genePanelMap) {
                  Severity: Major
                  Found in app/scripts/views/components/dataTable/tableView.js - About 1 hr to fix

                    Function getSampleListsData has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          getSampleListsData: function(sampleLists) {
                            var def = new $.Deferred();
                            var self = this;
                            var data = [];
                            if (_.isArray(sampleLists)) {
                    Severity: Minor
                    Found in app/scripts/model/dataProxy.js - About 1 hr to fix

                      Function getGeneticProfiles has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              function(self, fetch_promise) {
                                $.get(window.cbioURL + 'api/molecular-profiles?projection=SUMMARY&pageSize=100000&pageNumber=0&sortBy=molecularProfileId&direction=ASC')
                                  .done(function(data) {
                                    var profiles = {};
                                    _.each(data, function(profile) {
                      Severity: Minor
                      Found in app/scripts/model/dataProxy.js - About 1 hr to fix

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

                            function initReactData(_selectedMap, _selectedSampleUids) {
                              attr_ = iViz.util.tableView.getAttributes(type_);
                              var result = {
                                data: [],
                                attributes: attr_
                        Severity: Minor
                        Found in app/scripts/views/components/dataTable/tableView.js - About 1 hr to fix

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

                              content_.update = function(groups, _chartId, _attrId) {
                                // remove previous curves
                                var _chartInst_ = this.chartInst_;
                                var _newGroups = [];
                                _chartInst_.removeCurves();
                          Severity: Minor
                          Found in app/scripts/views/components/survivalChart/main.js - About 1 hr to fix

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

                                content.getCurrentCategories = function(sortBy) {
                                  var groups = dcDimension.group().top(Infinity);
                                  var groupTypeId =
                                    data_.groupType === 'patient' ? 'patient_uid' : 'sample_uid';
                                  var selectedCases = _.pluck(dcDimension.top(Infinity), groupTypeId).sort();
                            Severity: Minor
                            Found in app/scripts/views/components/barChart/barChart.js - About 1 hr to fix

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

                                  data: function() {
                                    return {
                                      chartDivId:
                                        iViz.util.getDefaultDomId('chartDivId', this.attributes.attr_id),
                                      resetBtnId:
                              Severity: Minor
                              Found in app/scripts/views/components/scatterPlot/scatterPlotTemplate.js - About 1 hr to fix

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

                                    function survivalChartCanvasDownload(data, downloadOpts) {
                                      var _svgElement;
                                      var _svgTitle;
                                      var _labelTextMaxLength = 0;
                                      var _numOfLabels = 0;
                                Severity: Minor
                                Found in app/scripts/controller/util.js - About 1 hr to fix

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

                                        initLine: function() {
                                          var _self = this;
                                          var opts = _.extend({
                                            strokeWidth: 4,
                                            easing: 'easeInOut',
                                  Severity: Minor
                                  Found in app/scripts/views/components/progressBar/progressBar.js - About 1 hr to fix

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

                                        data: function() {
                                          return {
                                            chartDivId:
                                              iViz.util.getDefaultDomId('chartDivId', this.attributes.attr_id),
                                            resetBtnId:
                                    Severity: Minor
                                    Found in app/scripts/views/components/barChart/barChartTemplate.js - About 1 hr to fix

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

                                                    success: function(panels) {
                                                      _.each(panels, function(panel) {
                                                        _.each(panel.genes, function(gene) {
                                                          if (!geneSampleMap[gene.hugoGeneSymbol]) {
                                                            geneSampleMap[gene.hugoGeneSymbol] = {
                                      Severity: Minor
                                      Found in app/scripts/model/dataProxy.js - About 1 hr to fix

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

                                            data: function() {
                                              return {
                                                chartDivId: iViz.util.getDefaultDomId('chartDivId', this.attributes.attr_id),
                                                resetBtnId: iViz.util.getDefaultDomId('resetBtnId', this.attributes.attr_id),
                                                chartId: iViz.util.getDefaultDomId('chartId', this.attributes.attr_id),
                                        Severity: Minor
                                        Found in app/scripts/views/components/survivalChart/template.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language