railstaichung/rails-taichung

View on GitHub

Showing 51 of 177 total issues

Function Jcrop has 1301 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  $.Jcrop = function (obj, opt) {
    var options = $.extend({}, $.Jcrop.defaults),
        docOffset,
        _ua = navigator.userAgent.toLowerCase(),
        is_msie = /msie/.test(_ua),
Severity: Major
Found in app/assets/javascripts/jquery.Jcrop.js - About 6 days to fix

    File Jcrop.js has 2042 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*! Jcrop.js v2.0.4 - build: 20151117
     *  @copyright 2008-2015 Tapmodo Interactive LLC
     *  @license Free software under MIT License
     *  @website http://jcrop.org/
     **/
    Severity: Major
    Found in app/assets/javascripts/Jcrop.js - About 5 days to fix

      File bootstrap-datetimepicker.js has 1707 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* =========================================================
       * bootstrap-datetimepicker.js
       * =========================================================
       * Copyright 2012 Stefan Petre
       *
      Severity: Major
      Found in app/assets/javascripts/bootstrap-datetimepicker.js - About 4 days to fix

        File jquery.Jcrop.js has 1386 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /**
         * jquery.Jcrop.js v0.9.12
         * jQuery Image Cropping Plugin - released under MIT License
         * Author: Kelly Hallman <khallman@gmail.com>
         * http://github.com/tapmodo/Jcrop
        Severity: Major
        Found in app/assets/javascripts/jquery.Jcrop.js - About 3 days to fix

          File gmaps_google.js has 793 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          (function() {
            this.Gmaps = {
              build: function(type, options) {
                var model;
                if (options == null) {
          Severity: Major
          Found in public/javascripts/gmaps_google.js - About 1 day to fix

            Function Coords has 244 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                var Coords = (function () {
                  var x1 = 0,
                      y1 = 0,
                      x2 = 0,
                      y2 = 0,
            Severity: Major
            Found in app/assets/javascripts/jquery.Jcrop.js - About 1 day to fix

              Function Modernizr has 240 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var Modernizr = (function( window, document, undefined ) {
              
                  var version = '2.7.1',
              
                  Modernizr = {},
              Severity: Major
              Found in app/assets/javascripts/Jcrop.js - About 1 day to fix

                Function Selection has 215 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var Selection = (function () {
                      var awake,
                          hdep = 370,
                          borders = {},
                          handle = {},
                Severity: Major
                Found in app/assets/javascripts/jquery.Jcrop.js - About 1 day to fix

                  Function click has 185 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      click: function (e) {
                        e.stopPropagation();
                        e.preventDefault();
                        var target = $(e.target).closest('span, td, th, legend');
                        if (target.is('.' + this.icontype)) {
                  Severity: Major
                  Found in app/assets/javascripts/bootstrap-datetimepicker.js - About 7 hrs to fix

                    Function Datetimepicker has 168 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      var Datetimepicker = function (element, options) {
                        var that = this;
                    
                        this.element = $(element);
                    
                    
                    Severity: Major
                    Found in app/assets/javascripts/bootstrap-datetimepicker.js - About 6 hrs to fix

                      Function fill has 165 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          fill: function () {
                            if (this.date == null || this.viewDate == null) {
                              return;
                            }
                            var d = new Date(this.viewDate),
                      Severity: Major
                      Found in app/assets/javascripts/bootstrap-datetimepicker.js - About 6 hrs to fix

                        Function Handler has 161 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          this.Gmaps.Objects.Handler = (function() {
                            function Handler(type, options) {
                              this.type = type;
                              if (options == null) {
                                options = {};
                        Severity: Major
                        Found in public/javascripts/gmaps_google.js - About 6 hrs to fix

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

                              parseDate: function (date, format, language, type, timezone) {
                                if (date instanceof Date) {
                                  var dateUTC = new Date(date.valueOf() - date.getTimezoneOffset() * 60000);
                                  dateUTC.setMilliseconds(0);
                                  return dateUTC;
                          Severity: Major
                          Found in app/assets/javascripts/bootstrap-datetimepicker.js - About 5 hrs to fix

                            Function keydown has 123 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                keydown: function (e) {
                                  if (this.picker.is(':not(:visible)')) {
                                    if (e.keyCode == 27) // allow escape to hide and re-show picker
                                      this.show();
                                    return;
                            Severity: Major
                            Found in app/assets/javascripts/bootstrap-datetimepicker.js - About 4 hrs to fix

                              Function Shade has 110 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  var Shade = (function() {
                                    var enabled = false,
                                        holder = $('<div />').css({
                                          position: 'absolute',
                                          zIndex: 240,
                              Severity: Major
                              Found in app/assets/javascripts/jquery.Jcrop.js - About 4 hrs to fix

                                Function Marker has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  this.Gmaps.Google.Builders.Marker = (function(_super) {
                                    __extends(Marker, _super);
                                
                                    Marker.CURRENT_INFOWINDOW = void 0;
                                
                                
                                Severity: Major
                                Found in public/javascripts/gmaps_google.js - About 4 hrs to fix

                                  Function getFixed has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                        function getFixed() //{{{
                                        {
                                          if (!options.aspectRatio) {
                                            return getRect();
                                          }
                                  Severity: Major
                                  Found in app/assets/javascripts/jquery.Jcrop.js - About 3 hrs to fix

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

                                        formatDate:       function (date, format, language, type, timezone) {
                                          if (date == null) {
                                            return '';
                                          }
                                          var val;
                                    Severity: Major
                                    Found in app/assets/javascripts/bootstrap-datetimepicker.js - About 3 hrs to fix

                                      Function Tracker has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          var Tracker = (function () {
                                            var onMove = function () {},
                                                onDone = function () {},
                                                trackDoc = options.trackDocument;
                                      
                                      
                                      Severity: Major
                                      Found in app/assets/javascripts/jquery.Jcrop.js - About 2 hrs to fix

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

                                            var KeyManager = (function () {
                                              var $keymgr = $('<input type="radio" />').css({
                                                position: 'fixed',
                                                left: '-120px',
                                                width: '12px'
                                        Severity: Major
                                        Found in app/assets/javascripts/jquery.Jcrop.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language