linguisticexplorer/Linguistic-Explorer

View on GitHub

Showing 282 of 417 total issues

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

    cleanData: function( elems ) {
        var data, id,
            cache = jQuery.cache,
            special = jQuery.event.special,
            deleteExpando = jQuery.support.deleteExpando;
Severity: Minor
Found in public/javascripts/jquery.js - About 1 hr to fix

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

      exports.parse = function(s) {
        var ancestors = [];
        var tree = {};
        var tokens = s.split(/\s*(;|\(|\)|,|:)\s*/);
        for (var i=0; i<tokens.length; i++) {
    Severity: Minor
    Found in public/javascripts/application.js - About 1 hr to fix

      Function dirCheck has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
          for ( var i = 0, l = checkSet.length; i < l; i++ ) {
              var elem = checkSet[i];
      
              if ( elem ) {
      Severity: Minor
      Found in public/javascripts/jquery.js - About 1 hr to fix

        Function a has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                svg.Element.a = function(node) {
                    this.base = svg.Element.TextElementBase;
                    this.base(node);
                    
                    this.hasText = true;
        Severity: Minor
        Found in public/javascripts/canvg.js - About 1 hr to fix

          Function radialGradient has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  svg.Element.radialGradient = function(node) {
                      this.base = svg.Element.GradientBase;
                      this.base(node);
                      
                      this.getGradient = function(ctx, element) {
          Severity: Minor
          Found in public/javascripts/canvg.js - About 1 hr to fix

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

                clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                    var srcElements,
                        destElements,
                        i,
                        // IE<=8 does not properly clone detached, unknown element nodes
            Severity: Minor
            Found in public/javascripts/jquery.js - About 1 hr to fix

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

                  jQuery.fn.offset = function( options ) {
                      var elem = this[0], box;
              
                      if ( options ) {
                          return this.each(function( i ) {
              Severity: Minor
              Found in public/javascripts/jquery.js - About 1 hr to fix

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

                    promise: function( type, object ) {
                        if ( typeof type !== "string" ) {
                            object = type;
                            type = undefined;
                        }
                Severity: Minor
                Found in public/javascripts/jquery.js - About 1 hr to fix

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

                      style: function( elem, name, value, extra ) {
                          // Don't set styles on text and comment nodes
                          if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                              return;
                          }
                  Severity: Minor
                  Found in public/javascripts/jquery.js - About 1 hr to fix

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

                        Gmaps4Rails.prototype.create_direction = function() {
                          var directionsDisplay, directionsService, request;
                          directionsDisplay = new google.maps.DirectionsRenderer();
                          directionsService = new google.maps.DirectionsService();
                          directionsDisplay.setMap(this.serviceObject);
                    Severity: Minor
                    Found in public/javascripts/gmaps4rails/gmaps4rails.base.js - About 1 hr to fix

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

                              svg.Font = new (function() {
                                  this.Styles = 'normal|italic|oblique|inherit';
                                  this.Variants = 'normal|small-caps|inherit';
                                  this.Weights = 'normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit';
                                  
                      Severity: Minor
                      Found in public/javascripts/canvg.js - About 1 hr to fix

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

                                    this.update = function(delta) {    
                                        // set initial value
                                        if (this.initialValue == null) {
                                            this.initialValue = this.getProperty().value;
                                            this.initialUnits = this.getProperty().getUnits();
                        Severity: Minor
                        Found in public/javascripts/canvg.js - About 1 hr to fix

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

                                      this.renderChildren = function(ctx) {
                                          var customFont = this.parent.style('font-family').getDefinition();
                                          if (customFont != null) {
                                              var fontSize = this.parent.style('font-size').numValueOrDefault(svg.Font.Parse(svg.ctx.font).fontSize);
                                              var fontStyle = this.parent.style('font-style').valueOrDefault(svg.Font.Parse(svg.ctx.font).fontStyle);
                          Severity: Minor
                          Found in public/javascripts/canvg.js - About 1 hr to fix

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

                                        this.apply = function(ctx, element) {
                                            // render as temp svg    
                                            var bb = element.getBoundingBox();
                                            var x = this.attribute('x').toPixels('x');
                                            var y = this.attribute('y').toPixels('y');
                            Severity: Minor
                            Found in public/javascripts/canvg.js - About 1 hr to fix

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

                                      svg.Element.font = function(node) {
                                          this.base = svg.Element.ElementBase;
                                          this.base(node);
                              
                                          this.horizAdvX = this.attribute('horiz-adv-x').numValue();            
                              Severity: Minor
                              Found in public/javascripts/canvg.js - About 1 hr to fix

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

                                    jQuery.fn[ type ] = function( size ) {
                                        // Get window width or height
                                        var elem = this[0];
                                        if ( !elem ) {
                                            return size == null ? null : this;
                                Severity: Minor
                                Found in public/javascripts/jquery.js - About 1 hr to fix

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

                                      find: function( selector ) {
                                          var self = this,
                                              i, l;
                                  
                                          if ( typeof selector !== "string" ) {
                                  Severity: Minor
                                  Found in public/javascripts/jquery.js - About 1 hr to fix

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

                                            svg.Element.mask = function(node) {
                                                this.base = svg.Element.ElementBase;
                                                this.base(node);
                                                            
                                                this.apply = function(ctx, element) {
                                    Severity: Minor
                                    Found in public/javascripts/canvg.js - About 1 hr to fix

                                      Method cluster has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        def cluster(distance = :euclidean, linkage = :avg)
                                          @distance_strategy = select_distance_strategy distance
                                          @linkage_strategy =  select_linkage_strategy linkage
                                      
                                          @clusters = {} # Clusters list
                                      Severity: Minor
                                      Found in app/presenters/hierarchical_clustering.rb - About 1 hr to fix

                                        Method create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          def create
                                            @example = Example.new(params[:example]) do |example|
                                              example.group = current_group
                                              example.creator = current_user
                                            end
                                        Severity: Minor
                                        Found in app/controllers/examples_controller.rb - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language