Matho/refinerycms-photo-gallery

View on GitHub

Showing 315 of 315 total issues

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

(function (h, k, j, e) {
    var c = {}, g;

    function m(o, p) {
        var n;
app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.html5.js on lines 1..765

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

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

(function (h, k, j, e) {
    var c = {}, g;

    function m(o, p) {
        var n;
app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js on lines 1526..2290

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

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

(function () {
    var f = 0, k = [], m = {}, i = {}, a = {"<":"lt", ">":"gt", "&":"amp", '"':"quot", "'":"#39"}, l = /[<>&\"\']/g, b, c = window.setTimeout, d = {}, e;

    function h() {
        this.returnValue = false
app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js on lines 2..618

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

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

(function () {
    var f = 0, l = [], n = {}, j = {}, a = {"<":"lt", ">":"gt", "&":"amp", '"':"quot", "'":"#39"}, m = /[<>&\"\']/g, b, c = window.setTimeout, d = {}, e;

    function h() {
        this.returnValue = false
app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.js on lines 2..618

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

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

(function (f, b, d, e) {
    var a = {}, g = {};

    function c() {
        var h;
app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.flash.js on lines 1..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 3111.

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

(function (f, b, d, e) {
    var a = {}, g = {};

    function c() {
        var h;
app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js on lines 1098..1322

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

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

;var MXI_DEBUG = true;
/**
 * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
 * v1.3.5
 *
Severity: Major
Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 2 wks to fix

    File plupload.full.js has 2469 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*1.5.4*/
    (function () {
        var f = 0, l = [], n = {}, j = {}, a = {"<":"lt", ">":"gt", "&":"amp", '"':"quot", "'":"#39"}, m = /[<>&\"\']/g, b, c = window.setTimeout, d = {}, e;
    
        function h() {

      Function Uploader has 820 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      plupload.Uploader = function(options) {
          /**
          Fires when the current RunTime has been initialized.
          
          @event Init

        File plupload.dev.js has 1084 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /**
         * Plupload - multi-runtime File Uploader
         * v2.1.9
         *
         * Copyright 2013, Moxiecode Systems AB

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

          /*!
           * fancyBox - jQuery Plugin
           * version: 2.0.6 (16/04/2012)
           * @requires jQuery v1.6 or later
           *

            File jquery.ui.plupload.js has 793 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /**
             * jquery.ui.plupload.js
             *
             * Copyright 2013, Moxiecode Systems AB
             * Released under GPL License.

              Function XMLHttpRequest has 365 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function XMLHttpRequest() {
                      var self = this,
                          // this (together with _p() @see below) is here to gracefully upgrade to setter/getter syntax where possible
                          props = {
                              /**
              Severity: Major
              Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 1 day to fix

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

                        try {
                            try {
                                control = new ActiveXObject('AgControl.AgControl');
                
                                if (control.IsVersionSupported(version)) {
                app/assets/javascripts/refinery/photo_gallery/admin/plupload/plupload.full.js on lines 895..932

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

                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

                        try {
                            try {
                                o = new ActiveXObject("AgControl.AgControl");
                                if (o.IsVersionSupported(s)) {
                                    v = true
                app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js on lines 9980..10028

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

                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 ExifParser has 348 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function ExifParser(data) {
                        var __super__, tags, tagDescs, offsets, idx, Tiff;
                        
                        BinaryReader.call(this, data);
                
                
                Severity: Major
                Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 1 day to fix

                  File plupload.html5.js has 743 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  (function (h, k, j, e) {
                      var c = {}, g;
                  
                      function m(o, p) {
                          var n;

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

                        }, init:function (p, r) {
                            var n, q;
                    
                            function o(w) {
                                var u, t, v = [], x, s = {};

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

                          }, init:function (p, r) {
                              var n, q;
                      
                              function o(w) {
                                  var u, t, v = [], x, s = {};

                        Function HTML5Image has 293 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function HTML5Image() {
                                var me = this
                                , _img, _imgInfo, _canvas, _binStr, _blob
                                , _modified = false // is set true whenever image is modified
                                , _preserveHeaders = true
                        Severity: Major
                        Found in app/assets/javascripts/refinery/photo_gallery/admin/plupload/moxie.js - About 1 day to fix
                          Severity
                          Category
                          Status
                          Source
                          Language