ZuluPro/myblog

View on GitHub

Showing 64 of 163 total issues

File foundation.joyride.js has 690 lines of code (exceeds 250 allowed). Consider refactoring.
Open

;(function ($, window, document, undefined) {
  'use strict';

  var Modernizr = Modernizr || false;

Severity: Major
Found in myblog/myapp/static/zinnia/js/foundation/foundation.joyride.js - About 1 day to fix

    Function Orbit has 250 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var Orbit = function(el, settings) {
        // Don't reinitialize plugin
        if (el.hasClass(settings.slides_container_class)) {
          return this;
        }
    Severity: Major
    Found in myblog/myapp/static/zinnia/js/foundation/foundation.orbit.js - About 1 day to fix

      File foundation.clearing.js has 433 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      ;(function ($, window, document, undefined) {
        'use strict';
      
        Foundation.libs.clearing = {
          name : 'clearing',
      Severity: Minor
      Found in myblog/myapp/static/zinnia/js/foundation/foundation.clearing.js - About 6 hrs to fix

        File foundation.orbit.js has 403 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        ;(function ($, window, document, undefined) {
          'use strict';
        
          var noop = function() {};
        
        
        Severity: Minor
        Found in myblog/myapp/static/zinnia/js/foundation/foundation.orbit.js - About 5 hrs to fix

          Function UGTheme_tiles has 132 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function UGTheme_tiles(){
          
              var t = this;
              var g_gallery = new UniteGalleryMain(), g_objGallery, g_objects, g_objWrapper; 
              var g_tiles = new UGTiles(), g_lightbox = new UGLightbox(), g_objPreloader, g_objTilesWrapper;
          Severity: Major
          Found in myblog/photos/static/themes/tiles/ug-theme-tiles.js - About 5 hrs to fix

            Function UGTheme_tiles has 132 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function UGTheme_tiles(){
            
                var t = this;
                var g_gallery = new UniteGalleryMain(), g_objGallery, g_objects, g_objWrapper; 
                var g_tiles = new UGTiles(), g_lightbox = new UGLightbox(), g_objPreloader, g_objTilesWrapper;
            Severity: Major
            Found in myblog/photos/static/js/ug-theme-default.js - About 5 hrs to fix

              File foundation.js has 376 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*
               * Foundation Responsive Library
               * http://foundation.zurb.com
               * Copyright 2014, ZURB
               * Free to use under the MIT license.
              Severity: Minor
              Found in myblog/myapp/static/zinnia/js/foundation/foundation.js - About 5 hrs to fix

                File formatters.py has 348 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                import sys
                import os
                import cStringIO
                import django
                from django.db.models.loading import get_models
                Severity: Minor
                Found in myblog/myapp/setting_formatters/formatters.py - About 4 hrs to fix

                  File foundation.reveal.js has 343 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  ;(function ($, window, document, undefined) {
                    'use strict';
                  
                    Foundation.libs.reveal = {
                      name : 'reveal',
                  Severity: Minor
                  Found in myblog/myapp/static/zinnia/js/foundation/foundation.reveal.js - About 4 hrs to fix

                    File foundation.topbar.js has 341 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    ;(function ($, window, document, undefined) {
                      'use strict';
                    
                      Foundation.libs.topbar = {
                        name : 'topbar',
                    Severity: Minor
                    Found in myblog/myapp/static/zinnia/js/foundation/foundation.topbar.js - About 4 hrs to fix

                      Function events has 97 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          events : function (bar) {
                            var self = this,
                                S = this.S;
                      
                            S(this.scope)
                      Severity: Major
                      Found in myblog/myapp/static/zinnia/js/foundation/foundation.topbar.js - About 3 hrs to fix

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

                            show : function (init, is_prev) {
                              var $timer = null;
                        
                              // are we paused?
                              if (this.settings.$li === undefined
                        Severity: Major
                        Found in myblog/myapp/static/zinnia/js/foundation/foundation.joyride.js - About 2 hrs to fix

                          Function events has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              events : function (scope) {
                                var self = this,
                                    S = self.S;
                          
                                S(this.scope)
                          Severity: Major
                          Found in myblog/myapp/static/zinnia/js/foundation/foundation.dropdown.js - About 2 hrs to fix

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

                                self.init = function() {
                                  self.build_markup();
                                  if (settings.timer) {
                                    timer = self.create_timer();
                                    Foundation.utils.image_loaded(this.slides().children('img'), timer.start);
                            Severity: Major
                            Found in myblog/myapp/static/zinnia/js/foundation/foundation.orbit.js - About 2 hrs to fix

                              Function UGTheme_tiles has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function UGTheme_tiles(){
                              
                                  var t = this;
                                  var g_gallery = new UniteGalleryMain(), g_objGallery, g_objects, g_objWrapper; 
                                  var g_tiles = new UGTiles(), g_lightbox = new UGLightbox(), g_objPreloader, g_objTilesWrapper;
                              Severity: Minor
                              Found in myblog/photos/static/js/ug-theme-default.js - About 2 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 UGTheme_tiles has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function UGTheme_tiles(){
                              
                                  var t = this;
                                  var g_gallery = new UniteGalleryMain(), g_objGallery, g_objects, g_objWrapper; 
                                  var g_tiles = new UGTiles(), g_lightbox = new UGLightbox(), g_objPreloader, g_objTilesWrapper;
                              Severity: Minor
                              Found in myblog/photos/static/themes/tiles/ug-theme-tiles.js - About 2 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 pos_default has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  pos_default : function (init) {
                                    var $nub = this.settings.$next_tip.find('.joyride-nub'),
                                        nub_width = Math.ceil($nub.outerWidth() / 2),
                                        nub_height = Math.ceil($nub.outerHeight() / 2),
                                        toggle = init || false;
                              Severity: Major
                              Found in myblog/myapp/static/zinnia/js/foundation/foundation.joyride.js - About 2 hrs to fix

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

                                    open : function (target, ajax_settings) {
                                      var self = this,
                                          modal;
                                
                                      if (target) {
                                Severity: Major
                                Found in myblog/myapp/static/zinnia/js/foundation/foundation.reveal.js - About 2 hrs to fix

                                  Function toggle has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      toggle: function (toggleEl) {
                                        var self = this,
                                            topbar;
                                  
                                        if (toggleEl) {
                                  Severity: Major
                                  Found in myblog/myapp/static/zinnia/js/foundation/foundation.topbar.js - About 2 hrs to fix

                                    Function events has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        events : function () {
                                          var self = this;
                                    
                                          $(this.scope)
                                            .off('.joyride')
                                    Severity: Major
                                    Found in myblog/myapp/static/zinnia/js/foundation/foundation.joyride.js - About 2 hrs to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language