Showing 20,971 of 20,976 total issues

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

var Sizzle =
/*!
 * Sizzle CSS Selector Engine v2.2.0-pre
 * http://sizzlejs.com/
 *
Severity: Major
Found in public/assets/js/core/jquery/1.11.3/jquery-1.11.3.js and 1 other location - About 3 mos to fix
public/assets/js/core/jquery/2.1.4/jquery-2.1.4.js on lines 553..2611

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 14424.

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

var Sizzle =
/*!
 * Sizzle CSS Selector Engine v2.2.0-pre
 * http://sizzlejs.com/
 *
Severity: Major
Found in public/assets/js/core/jquery/2.1.4/jquery-2.1.4.js and 1 other location - About 3 mos to fix
public/assets/js/core/jquery/1.11.3/jquery-1.11.3.js on lines 591..2649

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 14424.

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

  AbstractChosen = (function() {
    function AbstractChosen(form_field, options) {
      this.form_field = form_field;
      this.options = options != null ? options : {};
      if (!AbstractChosen.browser_is_supported()) {
Severity: Major
Found in public/assets/js/core/chosen/chosen.jquery.js and 1 other location - About 3 wks to fix
public/assets/js/core/chosen/chosen.proto.js on lines 116..521

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 4139.

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

  AbstractChosen = (function() {
    function AbstractChosen(form_field, options) {
      this.form_field = form_field;
      this.options = options != null ? options : {};
      if (!AbstractChosen.browser_is_supported()) {
Severity: Major
Found in public/assets/js/core/chosen/chosen.proto.js and 1 other location - About 3 wks to fix
public/assets/js/core/chosen/chosen.jquery.js on lines 116..521

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 4139.

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

File Plus.php has 2926 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
Severity: Major
Found in lib/Ajde/Social/Provider/Google/Google/Service/Plus.php - About 1 wk to fix

    File phpqrcode.php has 2575 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /*
     * PHP QR Code encoder
     *
    Severity: Major
    Found in lib/Ajde/Resource/Qrcode/lib/phpqrcode.php - About 1 wk to fix

      File Cssmin.php has 2547 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      class Ajde_Resource_Local_Compressor_Css_Cssmin extends CssMin
      {
          private $_contents;
      Severity: Major
      Found in lib/Ajde/Resource/Local/Compressor/lib/Cssmin.php - About 1 wk to fix

        Function Wysiwyg has 1409 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function Wysiwyg() {
                // - the item is added by this.ui.appendControls and then appendItem
                // - click triggers this.triggerControl
                // cmd or[key] - designMode exec function name
                // tags - activates control for these tags (@see checkTargets)
        Severity: Major
        Found in public/assets/js/core/jwysiwyg/jwysiwyg.js - About 1 wk to fix

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

          jQuery.extend({
          
              Deferred: function( func ) {
                  var tuples = [
                          // action, add listener, listener list, final state
          Severity: Major
          Found in public/assets/js/core/jquery/2.1.4/jquery-2.1.4.js and 1 other location - About 6 days to fix
          public/assets/js/core/jquery/1.11.3/jquery-1.11.3.js on lines 3280..3420

          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 1133.

          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

          jQuery.extend({
          
              Deferred: function( func ) {
                  var tuples = [
                          // action, add listener, listener list, final state
          Severity: Major
          Found in public/assets/js/core/jquery/1.11.3/jquery-1.11.3.js and 1 other location - About 6 days to fix
          public/assets/js/core/jquery/2.1.4/jquery-2.1.4.js on lines 3231..3370

          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 1133.

          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

          File jwysiwyg.js has 2432 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * WYSIWYG - jQuery plugin 0.97
           * (0.97.2 - From infinity)
           *
           * Copyright (c) 2008-2009 Juan M Martinez, 2010-2011 Akzhan Abdulin and all contributors
          Severity: Major
          Found in public/assets/js/core/jwysiwyg/jwysiwyg.js - About 6 days to fix

            Function Sizzle has 1355 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            (function( window ) {
            
            var i,
                support,
                Expr,
            Severity: Major
            Found in public/assets/js/core/jquery/1.11.3/jquery-1.11.3.js - About 6 days to fix

              Function Sizzle has 1355 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              (function( window ) {
              
              var i,
                  support,
                  Expr,
              Severity: Major
              Found in public/assets/js/core/jquery/2.1.4/jquery-2.1.4.js - About 6 days to fix

                File selectize.js has 2379 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /**
                 * sifter.js
                 * Copyright (c) 2013 Brian Reavis & contributors
                 *
                 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
                Severity: Major
                Found in public/assets/js/core/selectize/selectize.js - About 6 days to fix

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

                  // Generated by CoffeeScript 1.6.3
                  /*
                  Copyright 2013 Marco Braak
                  
                  Licensed under the Apache License, Version 2.0 (the "License");
                  Severity: Major
                  Found in public/assets/js/core/jqtree/tree.jquery.js - About 6 days to fix

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

                    jQuery.Callbacks = function( options ) {
                    
                        // Convert options from String-formatted to Object-formatted if needed
                        // (we check in cache first)
                        options = typeof options === "string" ?
                    Severity: Major
                    Found in public/assets/js/core/jquery/1.11.3/jquery-1.11.3.js and 1 other location - About 6 days to fix
                    public/assets/js/core/jquery/2.1.4/jquery-2.1.4.js on lines 3066..3228

                    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 1026.

                    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

                    jQuery.Callbacks = function( options ) {
                    
                        // Convert options from String-formatted to Object-formatted if needed
                        // (we check in cache first)
                        options = typeof options === "string" ?
                    Severity: Major
                    Found in public/assets/js/core/jquery/2.1.4/jquery-2.1.4.js and 1 other location - About 6 days to fix
                    public/assets/js/core/jquery/1.11.3/jquery-1.11.3.js on lines 3115..3277

                    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 1026.

                    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

                    jQuery.fn.extend({
                        fadeTo: function( speed, to, easing, callback ) {
                    
                            // show any hidden elements after setting opacity to 0
                            return this.filter( isHidden ).css( "opacity", 0 ).show()
                    Severity: Major
                    Found in public/assets/js/core/jquery/1.11.3/jquery-1.11.3.js and 1 other location - About 6 days to fix
                    public/assets/js/core/jquery/2.1.4/jquery-2.1.4.js on lines 6704..6822

                    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 1018.

                    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

                    jQuery.fn.extend({
                        fadeTo: function( speed, to, easing, callback ) {
                    
                            // Show any hidden elements after setting opacity to 0
                            return this.filter( isHidden ).css( "opacity", 0 ).show()
                    Severity: Major
                    Found in public/assets/js/core/jquery/2.1.4/jquery-2.1.4.js and 1 other location - About 6 days to fix
                    public/assets/js/core/jquery/1.11.3/jquery-1.11.3.js on lines 7485..7603

                    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 1018.

                    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

                    File class.phpmailer.php has 1893 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /**
                     * PHPMailer - PHP email creation and transport class.
                     * PHP Version 5.0.0
                     * Version 5.2.7.
                    Severity: Major
                    Found in lib/Ajde/Mailer/class.phpmailer.php - About 5 days to fix
                      Severity
                      Category
                      Status
                      Source
                      Language