wahyd4/ocelots

View on GitHub

Showing 98 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

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                          $.fn.popover = function (option) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('popover')
                                , options = typeof option == 'object' && option
                        Severity: Major
                        Found in public/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                        public/bootstrap/js/bootstrap.js on lines 1992..2000

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 125.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                          $.fn.affix = function (option) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('affix')
                                , options = typeof option == 'object' && option
                        Severity: Major
                        Found in public/bootstrap/js/bootstrap.js and 1 other location - About 4 hrs to fix
                        public/bootstrap/js/bootstrap.js on lines 1321..1329

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 125.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 4 locations. Consider refactoring.
                        Open

                          $.fn.tooltip = function ( option ) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('tooltip')
                                , options = typeof option == 'object' && option
                        Severity: Major
                        Found in public/bootstrap/js/bootstrap.js and 3 other locations - About 4 hrs to fix
                        public/bootstrap/js/bootstrap.js on lines 544..552
                        public/bootstrap/js/bootstrap.js on lines 1463..1471
                        public/bootstrap/js/bootstrap.js on lines 1890..1898

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 123.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 4 locations. Consider refactoring.
                        Open

                          $.fn.collapse = function (option) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('collapse')
                                , options = typeof option == 'object' && option
                        Severity: Major
                        Found in public/bootstrap/js/bootstrap.js and 3 other locations - About 4 hrs to fix
                        public/bootstrap/js/bootstrap.js on lines 1214..1222
                        public/bootstrap/js/bootstrap.js on lines 1463..1471
                        public/bootstrap/js/bootstrap.js on lines 1890..1898

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 123.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 4 locations. Consider refactoring.
                        Open

                          $.fn.scrollspy = function (option) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('scrollspy')
                                , options = typeof option == 'object' && option
                        Severity: Major
                        Found in public/bootstrap/js/bootstrap.js and 3 other locations - About 4 hrs to fix
                        public/bootstrap/js/bootstrap.js on lines 544..552
                        public/bootstrap/js/bootstrap.js on lines 1214..1222
                        public/bootstrap/js/bootstrap.js on lines 1890..1898

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 123.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 4 locations. Consider refactoring.
                        Open

                          $.fn.typeahead = function (option) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('typeahead')
                                , options = typeof option == 'object' && option
                        Severity: Major
                        Found in public/bootstrap/js/bootstrap.js and 3 other locations - About 4 hrs to fix
                        public/bootstrap/js/bootstrap.js on lines 544..552
                        public/bootstrap/js/bootstrap.js on lines 1214..1222
                        public/bootstrap/js/bootstrap.js on lines 1463..1471

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 123.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                        (function() {
                          var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                          ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                          var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
                        })();
                        Severity: Major
                        Found in public/ga.js and 1 other location - About 4 hrs to fix
                        public/uservoice.js on lines 2..6

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 116.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                        (function() {
                          var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true;
                          uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/5ZpcaLisAVBrQKDlRrOA.js';
                          var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s);
                        })();
                        Severity: Major
                        Found in public/uservoice.js and 1 other location - About 4 hrs to fix
                        public/ga.js on lines 5..9

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 116.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                          $.fn.alert = function (option) {
                            return this.each(function () {
                              var $this = $(this)
                                , data = $this.data('alert')
                              if (!data) $this.data('alert', (data = new Alert(this)))
                        Severity: Major
                        Found in public/bootstrap/js/bootstrap.js and 1 other location - About 3 hrs to fix
                        public/bootstrap/js/bootstrap.js on lines 701..708

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 114.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Severity
                        Category
                        Status
                        Source
                        Language