swchoi727/LEP

View on GitHub

Showing 270 of 270 total issues

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

(function( global, factory ) {

    if ( typeof module === "object" && typeof module.exports === "object" ) {
        // For CommonJS and CommonJS-like environments where a proper window is present,
        // execute the factory and get jQuery
public/assets/application-87bc52163f117f0c38caad3c091d08f5.js on lines 16..10309

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

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

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

(function( global, factory ) {

    if ( typeof module === "object" && typeof module.exports === "object" ) {
        // For CommonJS and CommonJS-like environments where a proper window is present,
        // execute the factory and get jQuery
public/assets/application-7cf6226937f5953ea6488bb440274815.js on lines 16..10309

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

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

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

(function($, undefined) {

/**
 * Unobtrusive scripting adapter for jQuery
 * https://github.com/rails/jquery-ujs
public/assets/application-87bc52163f117f0c38caad3c091d08f5.js on lines 10310..10755

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

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

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

(function($, undefined) {

/**
 * Unobtrusive scripting adapter for jQuery
 * https://github.com/rails/jquery-ujs
public/assets/application-7cf6226937f5953ea6488bb440274815.js on lines 10310..10755

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

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 application-7cf6226937f5953ea6488bb440274815.js has 7122 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.11.1
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 2 wks to fix

    File application-87bc52163f117f0c38caad3c091d08f5.js has 7122 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery JavaScript Library v1.11.1
     * http://jquery.com/
     *
     * Includes Sizzle.js
    Severity: Major
    Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 2 wks to fix

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

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

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

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

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

              ajax: function( url, options ) {
          
                  // If url is an object, simulate pre-1.5 signature
                  if ( typeof url === "object" ) {
                      options = url;
          Severity: Major
          Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 1 day to fix

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

                ajax: function( url, options ) {
            
                    // If url is an object, simulate pre-1.5 signature
                    if ( typeof url === "object" ) {
                        options = url;
            Severity: Major
            Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 day to fix

              Function setDocument has 216 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              setDocument = Sizzle.setDocument = function( node ) {
                  var hasCompare,
                      doc = node ? node.ownerDocument || node : preferredDoc,
                      parent = doc.defaultView;
              
              
              Severity: Major
              Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 1 day to fix

                Function setDocument has 216 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                setDocument = Sizzle.setDocument = function( node ) {
                    var hasCompare,
                        doc = node ? node.ownerDocument || node : preferredDoc,
                        parent = doc.defaultView;
                
                
                Severity: Major
                Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 1 day to fix

                  Function Callbacks has 128 lines of code (exceeds 25 allowed). 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/application-7cf6226937f5953ea6488bb440274815.js - About 5 hrs to fix

                    Function Callbacks has 128 lines of code (exceeds 25 allowed). 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/application-87bc52163f117f0c38caad3c091d08f5.js - About 5 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if ( event.pageX == null && original.clientX != null ) {
                                      eventDoc = event.target.ownerDocument || document;
                                      doc = eventDoc.documentElement;
                                      body = eventDoc.body;
                      
                      
                      Severity: Critical
                      Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 5 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if ( event.pageX == null && original.clientX != null ) {
                                        eventDoc = event.target.ownerDocument || document;
                                        doc = eventDoc.documentElement;
                                        body = eventDoc.body;
                        
                        
                        Severity: Critical
                        Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 5 hrs to fix

                          Class AdminsController has 37 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          class AdminsController < ApplicationController
                          
                            before_filter :check_admin
                          
                            def check_admin
                          Severity: Minor
                          Found in app/controllers/admins_controller.rb - About 4 hrs to fix

                            Function defaultPrefilter has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function defaultPrefilter( elem, props, opts ) {
                                /* jshint validthis: true */
                                var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                                    anim = this,
                                    orig = {},
                            Severity: Major
                            Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 4 hrs to fix

                              Function defaultPrefilter has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function defaultPrefilter( elem, props, opts ) {
                                  /* jshint validthis: true */
                                  var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                                      anim = this,
                                      orig = {},
                              Severity: Major
                              Found in public/assets/application-87bc52163f117f0c38caad3c091d08f5.js - About 4 hrs to fix

                                Function trigger has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    trigger: function( event, data, elem, onlyHandlers ) {
                                        var handle, ontype, cur,
                                            bubbleType, special, tmp, i,
                                            eventPath = [ elem || document ],
                                            type = hasOwn.call( event, "type" ) ? event.type : event,
                                Severity: Major
                                Found in public/assets/application-7cf6226937f5953ea6488bb440274815.js - About 3 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language