wahyd4/ocelots

View on GitHub

Showing 52 of 98 total issues

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

/* ===================================================
 * bootstrap-transition.js v2.1.1
 * http://twitter.github.com/bootstrap/javascript.html#transitions
 * ===================================================
 * Copyright 2012 Twitter, Inc.
Severity: Major
Found in public/bootstrap/js/bootstrap.js - About 3 days to fix

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

    /*!
     * fancyBox - jQuery Plugin
     * version: 2.1.0 (Mon, 20 Aug 2012)
     * @requires jQuery v1.6 or later
     *
    Severity: Major
    Found in public/fancyapps-fancyBox-2bb0da9/source/jquery.fancybox.js - About 3 days to fix

      Function ajaxSubmit has 515 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      $.fn.ajaxSubmit = function(options) {
          /*jshint scripturl:true */
      
          // fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
          if (!this.length) {
      Severity: Major
      Found in public/jquery.form.js - About 2 days to fix

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

        /*!
         * jQuery Form Plugin
         * version: 3.20 (20-NOV-2012)
         * @requires jQuery v1.5 or later
         *
        Severity: Major
        Found in public/jquery.form.js - About 1 day to fix

          Function fileUploadIframe has 346 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function fileUploadIframe(a) {
                  var form = $form[0], el, i, s, g, id, $io, io, xhr, sub, n, timedOut, timeoutHandle;
                  var useProp = !!$.fn.prop;
                  var deferred = $.Deferred();
          
          
          Severity: Major
          Found in public/jquery.form.js - About 1 day to fix

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

                var a = function () {
                    function e(a) {
                        return Array.isArray ? Array.isArray(a) : a.constructor.toString().indexOf("Array") != -1
                    }
            
            
            Severity: Major
            Found in include.js - About 1 day to fix

              Consider simplifying this complex logical expression.
              Open

                  if (!navigator.id.request || navigator.id._shimmed) {
                      var c = "https://login.persona.org", d = navigator.userAgent, e = d.indexOf("Fennec/") != -1 || d.indexOf("Firefox/") != -1 && d.indexOf("Android") != -1, f = e ? undefined : "menubar=0,location=1,resizable=1,scrollbars=1,status=0,dialog=1,minimizable=1,width=700,height=375", g, h = {login:null, logout:null, ready:null}, i, j = undefined;
              
                      function k(a) {
                          a !== !0;
              Severity: Critical
              Found in include.js - About 7 hrs to fix

                File include.js has 464 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /**
                 * Uncompressed source can be found at https://login.persona.org/include.orig.js
                 *
                 * This Source Code Form is subject to the terms of the Mozilla Public
                 * License, v. 2.0. If a copy of the MPL was not distributed with this
                Severity: Minor
                Found in include.js - About 7 hrs to fix

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

                          _setDimension: function () {
                              var viewport   = F.getViewport(),
                                  steps      = 0,
                                  canShrink  = false,
                                  canExpand  = false,
                  Severity: Major
                  Found in public/fancyapps-fancyBox-2bb0da9/source/jquery.fancybox.js - About 6 hrs to fix

                    Function build has 157 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            return{build:function (b) {
                                var g = function (a) {
                                    if (b.debugOutput && window.console && window.console.log) {
                                        try {
                                            typeof a != "string" && (a = JSON.stringify(a))
                    Severity: Major
                    Found in include.js - About 6 hrs to fix

                      Function cb has 129 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              function cb(e) {
                                  if (xhr.aborted || callbackProcessed) {
                                      return;
                                  }
                                  try {
                      Severity: Major
                      Found in public/jquery.form.js - About 5 hrs to fix

                        Function open has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                open: function (group, opts) {
                                    if (!group) {
                                        return;
                                    }
                        
                        
                        Severity: Major
                        Found in public/fancyapps-fancyBox-2bb0da9/source/jquery.fancybox.js - About 3 hrs to fix

                          Function _start has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  _start: function (index) {
                                      var coming = {},
                                          obj,
                                          href,
                                          type,
                          Severity: Major
                          Found in public/fancyapps-fancyBox-2bb0da9/source/jquery.fancybox.js - About 3 hrs to fix

                            Function _afterLoad has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    _afterLoad: function () {
                                        var coming   = F.coming,
                                            previous = F.current,
                                            placeholder = 'fancybox-placeholder',
                                            current,
                            Severity: Major
                            Found in public/fancyapps-fancyBox-2bb0da9/source/jquery.fancybox.js - About 3 hrs to fix

                              Consider simplifying this complex logical expression.
                              Open

                                  if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
                                      (t == 'checkbox' || t == 'radio') && !el.checked ||
                                      (t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
                                      tag == 'select' && el.selectedIndex == -1)) {
                                          return null;
                              Severity: Critical
                              Found in public/jquery.form.js - About 3 hrs to fix

                                Function doSubmit has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        function doSubmit() {
                                            // make sure form attrs are set
                                            var t = $form.attr('target'), a = $form.attr('action');
                                
                                            // update form attrs in IE friendly way
                                Severity: Major
                                Found in public/jquery.form.js - About 2 hrs to fix

                                  Function formToArray has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  $.fn.formToArray = function(semantic, elements) {
                                      var a = [];
                                      if (this.length === 0) {
                                          return a;
                                      }
                                  Severity: Major
                                  Found in public/jquery.form.js - About 2 hrs to fix

                                    Function bindEvents has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            bindEvents: function () {
                                                var current = F.current,
                                                    keys;
                                    
                                                if (!current) {
                                    Severity: Major
                                    Found in public/fancyapps-fancyBox-2bb0da9/source/jquery.fancybox.js - About 2 hrs to fix

                                      Function init has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              init: function (opts, obj) {
                                                  var that = this,
                                                      list,
                                                      thumbWidth  = opts.width  || 50,
                                                      thumbHeight = opts.height || 50,

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

                                          , show: function () {
                                              var $tip
                                                , inside
                                                , pos
                                                , actualWidth
                                        Severity: Minor
                                        Found in public/bootstrap/js/bootstrap.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language