ZuluPro/myblog

View on GitHub

Showing 163 of 163 total issues

Identical blocks of code found in 2 locations. 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 and 1 other location - About 1 wk to fix
myblog/photos/static/js/ug-theme-default.js on lines 11..278

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

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 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 and 1 other location - About 1 wk to fix
myblog/photos/static/themes/tiles/ug-theme-tiles.js on lines 11..277

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

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

class FilesFormatter(SettingsFormatter):
    title = 'STATIC, MEDIA AND FILES'

    def get_text(self):
        text = self._format_section(self.title)
Severity: Major
Found in myblog/myapp/setting_formatters/formatters.py and 1 other location - About 1 day to fix
myblog/myapp/setting_formatters/formatters.py on lines 163..182

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

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

class DjangoFormattersFormatter(SettingsFormatter):
    title = 'FORMATTERS'

    def get_text(self):
        text = self._format_section(self.title)
Severity: Major
Found in myblog/myapp/setting_formatters/formatters.py and 1 other location - About 1 day to fix
myblog/myapp/setting_formatters/formatters.py on lines 112..131

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

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

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

      class TestFormatter(SettingsFormatter):
          title = 'DEBUG AND TEST'
      
          def get_text(self):
              text = self._format_section(self.title)
      Severity: Major
      Found in myblog/myapp/setting_formatters/formatters.py and 1 other location - About 1 day to fix
      myblog/myapp/setting_formatters/formatters.py on lines 213..225

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

      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

      class AuthFormatter(SettingsFormatter):
          title = 'AUTHENTICATION'
      
          def get_text(self):
              text = self._format_section(self.title)
      Severity: Major
      Found in myblog/myapp/setting_formatters/formatters.py and 1 other location - About 1 day to fix
      myblog/myapp/setting_formatters/formatters.py on lines 371..383

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

      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 (!self.rtl) {
                section.css({left: -(100 * topbar.data('index')) + '%'});
                section.find('>.name').css({left: 100 * topbar.data('index') + '%'});
              } else {
                section.css({right: -(100 * topbar.data('index')) + '%'});
      myblog/myapp/static/zinnia/js/foundation/foundation.topbar.js on lines 220..226

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

      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 (!self.rtl) {
                    section.css({left: -(100 * topbar.data('index')) + '%'});
                    section.find('>.name').css({left: 100 * topbar.data('index') + '%'});
                  } else {
                    section.css({right: -(100 * topbar.data('index')) + '%'});
      myblog/myapp/static/zinnia/js/foundation/foundation.topbar.js on lines 259..265

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

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

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

                        } else {
                          $.data(handle, 'bar_o', $(handle).parent().offset().left);
                          $.data(handle, 'bar_l', $(handle).parent().outerWidth());
                          $.data(handle, 'handle_o', $(handle).offset().left);
                          $.data(handle, 'handle_l', $(handle).outerWidth());
                  myblog/myapp/static/zinnia/js/foundation/foundation.slider.js on lines 181..186

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

                  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 (settings.vertical) {
                          $.data(handle, 'bar_o', $(handle).parent().offset().top);
                          $.data(handle, 'bar_l', $(handle).parent().outerHeight());
                          $.data(handle, 'handle_o', $(handle).offset().top);
                          $.data(handle, 'handle_l', $(handle).outerHeight());
                  myblog/myapp/static/zinnia/js/foundation/foundation.slider.js on lines 186..191

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

                  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 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
                      Severity
                      Category
                      Status
                      Source
                      Language