hummingbird-me/hummingbird

View on GitHub

Showing 419 of 859 total issues

File jquery-ui-custom-1.10.3.js has 9969 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! jQuery UI - v1.10.3 - 2013-05-22
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.menu.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */

Severity: Major
Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 1 mo to fix

    File handlebars-1.0.0.js has 1714 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
    
    Copyright (C) 2011 by Yehuda Katz
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    Severity: Major
    Found in app/assets/javascripts/old/handlebars-1.0.0.js - About 4 days to fix

      File moment.js has 1041 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // moment.js
      // version : 2.0.0
      // author : Tim Wood
      // license : MIT
      // momentjs.com
      Severity: Major
      Found in app/assets/javascripts/old/moment.js - About 2 days to fix

        Function handlebars has 459 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var handlebars = (function(){
        var parser = {trace: function trace() { },
        yy: {},
        symbols_: {"error":2,"root":3,"program":4,"EOF":5,"simpleInverse":6,"statements":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"CLOSE_UNESCAPED":24,"OPEN_PARTIAL":25,"partialName":26,"params":27,"hash":28,"dataName":29,"param":30,"STRING":31,"INTEGER":32,"BOOLEAN":33,"hashSegments":34,"hashSegment":35,"ID":36,"EQUALS":37,"DATA":38,"pathSegments":39,"SEP":40,"$accept":0,"$end":1},
        terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",31:"STRING",32:"INTEGER",33:"BOOLEAN",36:"ID",37:"EQUALS",38:"DATA",40:"SEP"},
        Severity: Major
        Found in app/assets/javascripts/old/handlebars-1.0.0.js - About 2 days to fix

          File backbone-1.0.0.js has 929 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          //     Backbone.js 1.0.0
          
          //     (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc.
          //     Backbone may be freely distributed under the MIT license.
          //     For all details and documentation:
          Severity: Major
          Found in app/assets/javascripts/old/backbone-1.0.0.js - About 2 days to fix

            File underscore-1.4.4.js has 848 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // Underscore.js 1.4.4
            // ===================
            
            // > http://underscorejs.org
            // > (c) 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
            Severity: Major
            Found in app/assets/javascripts/old/underscore-1.4.4.js - About 2 days to fix

              Function lexer has 235 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var lexer = (function(){
              var lexer = ({EOF:1,
              parseError:function parseError(str, hash) {
                      if (this.yy.parser) {
                          this.yy.parser.parseError(str, hash);
              Severity: Major
              Found in app/assets/javascripts/old/handlebars-1.0.0.js - About 1 day to fix

                File jstorage.js has 534 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*
                 * ----------------------------- JSTORAGE -------------------------------------
                 * Simple local storage wrapper to save data on the browser side, supporting
                 * all major browsers - IE6+, Firefox2+, Safari4+, Chrome4+ and Opera 10.5+
                 *
                Severity: Major
                Found in app/assets/javascripts/old/jstorage.js - About 1 day to fix

                  File multiselect.js has 505 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */
                  /*
                   * jQuery MultiSelect UI Widget 1.14pre
                   * Copyright (c) 2012 Eric Hynds
                   *
                  Severity: Major
                  Found in app/assets/javascripts/old/multiselect.js - About 1 day to fix

                    Function _create has 197 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _create: function() {
                            // Some browsers only repeat keydown events, not keypress events,
                            // so we use the suppressKeyPress flag to determine if we've already
                            // handled the keydown event. #7269
                            // Unfortunately the code for & in keypress is the same as the up arrow,
                    Severity: Major
                    Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 7 hrs to fix

                      File flipsnap.js has 490 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /**
                       * flipsnap.js
                       *
                       * @version  0.6.0
                       * @url http://pxgrid.github.com/js-flipsnap/
                      Severity: Minor
                      Found in public/2014/assets/js/flipsnap.js - About 7 hrs to fix

                        File flipsnap.js has 490 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /**
                         * flipsnap.js
                         *
                         * @version  0.6.0
                         * @url http://pxgrid.github.com/js-flipsnap/
                        Severity: Minor
                        Found in public/2013/assets/js/flipsnap.js - About 7 hrs to fix

                          File api_v1.rb has 479 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          class API_v1 < Grape::API
                            version 'v1', using: :path, format: :json, vendor: 'hummingbird'
                            formatter :json, lambda {|object, env| MultiJson.dump(object) }
                            rescue_from ActiveRecord::RecordNotFound
                          
                          
                          Severity: Minor
                          Found in app/api/api_v1.rb - About 7 hrs to fix

                            Function _generateHTML has 169 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _generateHTML: function(inst) {
                                    var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
                                        controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
                                        monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
                                        selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
                            Severity: Major
                            Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 6 hrs to fix

                              File hogan-2.0.0.js has 436 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /*
                               *  Copyright 2011 Twitter, Inc.
                               *  Licensed under the Apache License, Version 2.0 (the "License");
                               *  you may not use this file except in compliance with the License.
                               *  You may obtain a copy of the License at
                              Severity: Minor
                              Found in app/assets/javascripts/old/hogan-2.0.0.js - About 6 hrs to fix

                                Method filter_new has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
                                Open

                                  def filter_new
                                    @filter_years = %w(Upcoming 2010s 2000s 1990s 1980s 1970s Older)
                                
                                    respond_to do |format|
                                      format.html do
                                Severity: Minor
                                Found in app/controllers/anime_controller.rb - About 6 hrs to fix

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function _iCheck has 153 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  $.fn[_iCheck] = function(options, fire) {
                                
                                    // Walker
                                    var handle = ':' + _checkbox + ', :' + _radio,
                                      stack = $(),
                                Severity: Major
                                Found in app/assets/javascripts/old/jquery.icheck.js - About 6 hrs to fix

                                  Function parseDate has 148 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      parseDate: function (format, value, settings) {
                                          if (format == null || value == null) {
                                              throw "Invalid arguments";
                                          }
                                  
                                  
                                  Severity: Major
                                  Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 5 hrs to fix

                                    Function autosize has 148 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        $.fn.autosize = function (options) {
                                            if (!this.length) {
                                                return this;
                                            }
                                    
                                    
                                    Severity: Major
                                    Found in app/assets/javascripts/old/jquery.autosize.js - About 5 hrs to fix

                                      Function position has 147 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      $.fn.position = function( options ) {
                                          if ( !options || !options.of ) {
                                              return _position.apply( this, arguments );
                                          }
                                      
                                      
                                      Severity: Major
                                      Found in app/assets/javascripts/old/jquery-ui-custom-1.10.3.js - About 5 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language