linguisticexplorer/Linguistic-Explorer

View on GitHub

Showing 282 of 417 total issues

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

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

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

            svg.Element.style = function(node) { 
                this.base = svg.Element.ElementBase;
                this.base(node);
                
                // text, or spaces then CDATA
    Severity: Minor
    Found in public/javascripts/canvg.js - About 1 hr to fix

      Function load has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          load: function( url, params, callback ) {
              if ( typeof url !== "string" && _load ) {
                  return _load.apply( this, arguments );
      
              // Don't do a request if no elements are being requested
      Severity: Minor
      Found in public/javascripts/jquery.js - About 1 hr to fix

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

            data: function( key, value ) {
                var parts, attr, name,
                    data = null;
        
                if ( typeof key === "undefined" ) {
        Severity: Minor
        Found in public/javascripts/jquery.js - About 1 hr to fix

          Function buildRadial has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            d3.phylogram.buildRadial = function(selector, nodes, options) {
              options = options || {}
              var w = options.width || d3.select(selector).style('width') || d3.select(selector).attr('width'),
                  r = w / 2,
                  labelWidth = options.skipLabels ? 10 : options.labelWidth || 120;
          Severity: Minor
          Found in public/javascripts/d3.phylogram.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                  if ((circle.lat != null) && (circle.lng != null)) {
                    newCircle = new google.maps.Circle({
                      center: this.createLatLng(circle.lat, circle.lng),
                      strokeColor: circle.strokeColor || this.circles_conf.strokeColor,
                      strokeOpacity: circle.strokeOpacity || this.circles_conf.strokeOpacity,
            Severity: Critical
            Found in public/javascripts/gmaps4rails/gmaps4rails.base.js - About 1 hr to fix

              Function createClusterer has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  Gmaps4RailsOpenlayers.prototype.createClusterer = function(markers_array) {
                    var clusters, funcs, options, strategy, style;
                    options = {
                      pointRadius: "${radius}",
                      fillColor: "#ffcc66",
              Severity: Minor
              Found in public/javascripts/gmaps4rails/gmaps4rails.openlayers.js - About 1 hr to fix

                Function image has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        svg.Element.image = function(node) {
                            this.base = svg.Element.RenderedElementBase;
                            this.base(node);
                            
                            var href = this.attribute('xlink:href').value;
                Severity: Minor
                Found in public/javascripts/canvg.js - About 1 hr to fix

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

                      on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                          var origFn, type;
                  
                          // Types can be a map of types/handlers
                          if ( typeof types === "object" ) {
                  Severity: Minor
                  Found in public/javascripts/jquery.js - About 1 hr to fix

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

                    jQuery.extend = jQuery.fn.extend = function() {
                        var options, name, src, copy, copyIsArray, clone,
                            target = arguments[0] || {},
                            i = 1,
                            length = arguments.length,
                    Severity: Minor
                    Found in public/javascripts/jquery.js - About 1 hr to fix

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

                          val: function( value ) {
                              var hooks, ret, isFunction,
                                  elem = this[0];
                      
                              if ( !arguments.length ) {
                      Severity: Minor
                      Found in public/javascripts/jquery.js - About 1 hr to fix

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

                                    var draw = function() {
                                        svg.ViewPort.Clear();
                                        if (ctx.canvas.parentNode) svg.ViewPort.SetCurrent(ctx.canvas.parentNode.clientWidth, ctx.canvas.parentNode.clientHeight);
                                    
                                        if (svg.opts['ignoreDimensions'] != true) {
                        Severity: Minor
                        Found in public/javascripts/canvg.js - About 1 hr to fix

                          Method supported_submit_values_multiple has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            def supported_submit_values_multiple
                              @ling = current_group.lings.find(params[:id])
                              stale_values = @ling.lings_properties.find(:all, conditions: {property_id: params[:property_id]})
                          
                              collection_authorize! :manage, stale_values if stale_values
                          Severity: Minor
                          Found in app/controllers/lings_controller.rb - About 1 hr to fix

                            Function createMarker has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                Gmaps4RailsGoogle.prototype.createMarker = function(args) {
                                  var defaultOptions, imageAnchorPosition, markerImage, markerLatLng, mergedOptions, shadowAnchorPosition, shadowImage;
                                  markerLatLng = this.createLatLng(args.Lat, args.Lng);
                                  if (args.marker_picture === "" && args.rich_marker === null) {
                                    defaultOptions = {
                            Severity: Minor
                            Found in public/javascripts/gmaps4rails/gmaps4rails.googlemaps.js - About 1 hr to fix

                              Function when has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  when: function( firstParam ) {
                                      var args = sliceDeferred.call( arguments, 0 ),
                                          i = 0,
                                          length = args.length,
                                          pValues = new Array( length ),
                              Severity: Minor
                              Found in public/javascripts/jquery.js - About 1 hr to fix

                                Function createMarker has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    Gmaps4RailsOpenlayers.prototype.createMarker = function(args) {
                                      var marker, style_mark;
                                      style_mark = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']);
                                      style_mark.fillOpacity = 1;
                                      if (this.markersLayer === null) {
                                Severity: Minor
                                Found in public/javascripts/gmaps4rails/gmaps4rails.openlayers.js - About 1 hr to fix

                                  Function Mouse has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          svg.Mouse = new (function() {
                                              this.events = [];
                                              this.hasEvents = function() { return this.events.length != 0; }
                                          
                                              this.onclick = function(x, y) {
                                  Severity: Minor
                                  Found in public/javascripts/canvg.js - About 1 hr to fix

                                    Method display_style_example has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      def display_style_example(style_id)
                                        result = "<table class='show-table table table-bordered table-striped table-hover'>"
                                        case style_id
                                        when 0
                                          result += "<tr>
                                    Severity: Minor
                                    Found in app/helpers/application_helper.rb - About 1 hr to fix

                                      Function getWH has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function getWH( elem, name, extra ) {
                                      
                                          // Start with offset property
                                          var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
                                              which = name === "width" ? cssWidth : cssHeight,
                                      Severity: Minor
                                      Found in public/javascripts/jquery.js - About 1 hr to fix

                                        Method supported_submit_values has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          def supported_submit_values
                                            @ling = current_group.lings.find(params[:id])
                                            fresh_vals = LingsProperty.find(:all,
                                                                        :conditions => {ling_id: @ling.id, property_id: params[:property_id]})
                                            if fresh_vals.count > 1
                                        Severity: Minor
                                        Found in app/controllers/lings_controller.rb - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language