cipele46/cipele46-web

View on GitHub

Showing 215 of 215 total issues

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

                send: function( headers, complete ) {

                    // Get a new xhr
                    var handle, i,
                        xhr = s.xhr();
Severity: Major
Found in public/js/jquery.js - About 3 hrs to fix

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

    function defaultPrefilter( elem, props, opts ) {
        var index, prop, value, length, dataShow, tween, hooks, oldfire,
            anim = this,
            style = elem.style,
            orig = {},
    Severity: Major
    Found in public/js/jquery.js - About 3 hrs to fix

      Function clean has 86 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          clean: function( elems, context, fragment, scripts ) {
              var i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags,
                  safe = context === document && safeFragment,
                  ret = [];
      
      Severity: Major
      Found in public/js/jquery.js - About 3 hrs to fix

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

                        if ( settings.leadingZero ) {
                        
                            if ( daysLeft < 10 ) {
                                daysLeft = "0" + daysLeft;
                            }
        Severity: Major
        Found in public/js/jquery.jcountdown1.3.js and 1 other location - About 3 hrs to fix
        public/js/jquery.jcountdown1.3.js on lines 164..181

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

        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

                                if ( opts.leadingZero ) {
                                
                                    if ( daysLeft < 10 ) {
                                        daysLeft = "0" + daysLeft;
                                    }
        Severity: Major
        Found in public/js/jquery.jcountdown1.3.js and 1 other location - About 3 hrs to fix
        public/js/jquery.jcountdown1.3.js on lines 84..101

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

        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

        if("device-width"===_41.substring(l-12,l)){
        _46=screen.width;
        if(_42!==null){
        if(_43==="length"){
        return ((min&&_46>=_44)||(max&&_46<_44)||(!min&&!max&&_46===_44));
        Severity: Major
        Found in public/js/css3-mediaqueries.js and 1 other location - About 3 hrs to fix
        public/js/css3-mediaqueries.js on lines 561..648

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

        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

        if("device-height"===_41.substring(l-13,l)){
        _47=screen.height;
        if(_42!==null){
        if(_43==="length"){
        return ((min&&_47>=_44)||(max&&_47<_44)||(!min&&!max&&_47===_44));
        Severity: Major
        Found in public/js/css3-mediaqueries.js and 1 other location - About 3 hrs to fix
        public/js/css3-mediaqueries.js on lines 549..649

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

        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

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

                        init: function( options ){
                            
                            var opts = $.extend( {}, defaults, options ),
                                template;
                            
        Severity: Major
        Found in public/js/jquery.jcountdown1.3.js - About 3 hrs to fix

          Function app has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
          Open

          var app = (function($, window, document, undefined) {
              var $window = $(window),
                  $document = $(document);
          
              var _pageInit = function() {
          Severity: Minor
          Found in app/assets/javascripts/front/app.js - About 3 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function Animation has 76 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function Animation( elem, properties, options ) {
              var result,
                  index = 0,
                  tweenerIndex = 0,
                  length = animationPrefilters.length,
          Severity: Major
          Found in public/js/jquery.js - About 3 hrs to fix

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

                var _cardBoardInit = function() {
            
                    $("article.card, article.card-details").on("click", function(event){
            
                        var $eventTarget = $(event.target);
            Severity: Major
            Found in app/assets/javascripts/front/app.js - About 2 hrs to fix

              Function add has 71 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  add: function( elem, types, handler, data, selector ) {
              
                      var elemData, eventHandle, events,
                          t, tns, type, namespaces, handleObj,
                          handleObjIn, handlers, special;
              Severity: Major
              Found in public/js/jquery.js - About 2 hrs to fix

                Function matcherFromGroupMatchers has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
                    var bySet = setMatchers.length > 0,
                        byElement = elementMatchers.length > 0,
                        superMatcher = function( seed, context, xml, results, expandContext ) {
                            var elem, j, matcher,
                Severity: Major
                Found in public/js/jquery.js - About 2 hrs to fix

                  Function done has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          function done( status, nativeStatusText, responses, headers ) {
                              var isSuccess, success, error, response, modified,
                                  statusText = nativeStatusText;
                  
                              // Called once
                  Severity: Major
                  Found in public/js/jquery.js - About 2 hrs to fix

                    Function domManip has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        domManip: function( args, table, callback ) {
                    
                            // Flatten any nested arrays
                            args = [].concat.apply( [], args );
                    
                    Severity: Major
                    Found in public/js/jquery.js - About 2 hrs to fix

                      Function dispatch has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          dispatch: function( event ) {
                      
                              // Make a writable jQuery.Event from the native event object
                              event = jQuery.event.fix( event || window.event );
                      
                      Severity: Major
                      Found in public/js/jquery.js - About 2 hrs to fix

                        Function changeSettings has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                        changeSettings: function( options ) {
                        
                                            //Like resume but with resetting/changing options
                                            
                                            return this.each(function() {
                        Severity: Major
                        Found in public/js/jquery.jcountdown1.3.js - About 2 hrs to fix

                          Function superMatcher has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  superMatcher = function( seed, context, xml, results, expandContext ) {
                                      var elem, j, matcher,
                                          setMatched = [],
                                          matchedCount = 0,
                                          i = "0",
                          Severity: Major
                          Found in public/js/jquery.js - About 2 hrs to fix

                            Function Deferred has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                Deferred: function( func ) {
                                    var tuples = [
                                            // action, add listener, listener list, final state
                                            [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                                            [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
                            Severity: Major
                            Found in public/js/jquery.js - About 2 hrs to fix

                              Function timerFunc has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                          timerFunc = function() {
                              
                                              var $this = this,
                                                  template,
                                                  todaysDate,
                              Severity: Major
                              Found in public/js/jquery.jcountdown1.3.js - About 2 hrs to fix
                                Severity
                                Category
                                Status
                                Source
                                Language