mambax7/extgallery

View on GitHub

Showing 9,653 of 9,653 total issues

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

        if ( typeof o.wrapper.target == 'string' )
        {
            o.wrapper.target = $(o.wrapper.target);
        }
Severity: Minor
Found in assets/js/TosRUs/src/js/jquery.tosrus.js and 1 other location - About 40 mins to fix
assets/js/TosRUs/src/js/jquery.tosrus.js on lines 1382..1385

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

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 ( typeof o[ btn ].button == 'string' )
        {
                o[ btn ].button = $(o[ btn ].button);
        }
Severity: Minor
Found in assets/js/TosRUs/src/js/jquery.tosrus.js and 1 other location - About 40 mins to fix
assets/js/TosRUs/src/js/jquery.tosrus.js on lines 1282..1285

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

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

            next: function(dontPause, bypassHistory) {
                this.gotoIndex(this.getNextIndex(this.currentImage.index), dontPause, bypassHistory);
                return this;
            },
Severity: Minor
Found in assets/js/galleriffic/jquery.galleriffic.js and 1 other location - About 40 mins to fix
assets/js/galleriffic/jquery.galleriffic.js on lines 448..451

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

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 ('h' === $text[1] and preg_match('/^<(https?:[\/]{2}\S+?)>/i', $text, $matches)) {
                            $element_url = $matches[1];
                            $element_url = str_replace('&', '&amp;', $element_url);
                            $element_url = str_replace('<', '&lt;', $element_url);

assets/js/magnific_popup/redaxo/magnific_popup/classes/class.parsedown.inc.php on lines 842..854

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

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 (preg_match('/^https?:[\/]{2}\S+\b/i', $text, $matches)) {
                        $element_url = $matches[0];
                        $element_url = str_replace('&', '&amp;', $element_url);
                        $element_url = str_replace('<', '&lt;', $element_url);

assets/js/magnific_popup/redaxo/magnific_popup/classes/class.parsedown.inc.php on lines 796..812

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

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 galleria has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    galleria: function (_, t, b, c, d) {
Severity: Minor
Found in assets/js/galleria/galleria-1.3.5.js - About 35 mins to fix

    Function complete has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            var complete = (function( data, next, active, queue, thumb ) {
    Severity: Minor
    Found in assets/js/galleria/galleria-1.3.3.js - About 35 mins to fix

      Function galleria has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          galleria: function (_, t, b, c, d) {
      Severity: Minor
      Found in assets/js/galleria/galleria-1.3.3.js - About 35 mins to fix

        Function galleria has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            galleria: function (_, t, b, c, d) {
        Severity: Minor
        Found in assets/js/galleria/galleria-1.1.js - About 35 mins to fix

          Function complete has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  var complete = (function( data, next, active, queue, thumb ) {
          Severity: Minor
          Found in assets/js/galleria/galleria-1.3.5.js - About 35 mins to fix

            Function easing has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                        easing: function(x,t,b,c,d) {
            Severity: Minor
            Found in assets/js/galleria/galleria-1.3.3.js - About 35 mins to fix

              Function easeout has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      this.easeout = function (x, t, b, c, d) {
              Severity: Minor
              Found in assets/js/galleria/galleria-1.3.3.js - About 35 mins to fix

                Function easeInQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    easeInQuad: function (x, t, b, c, d) {
                Severity: Minor
                Found in assets/js/galleryview/easing.js - About 35 mins to fix

                  Function galleriaOut has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      galleriaOut: function (_, t, b, c, d) {
                  Severity: Minor
                  Found in assets/js/galleria/galleria-1.3.3.js - About 35 mins to fix

                    Function easeOutQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        easeOutQuad: function (x, t, b, c, d) {
                    Severity: Minor
                    Found in assets/js/galleryview/easing.js - About 35 mins to fix

                      Function galleriaIn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          galleriaIn: function (_, t, b, c, d) {
                      Severity: Minor
                      Found in assets/js/galleria/galleria-1.1.js - About 35 mins to fix

                        Function galleriaIn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            galleriaIn: function (_, t, b, c, d) {
                        Severity: Minor
                        Found in assets/js/galleria/galleria-1.3.5.js - About 35 mins to fix

                          Function galleriaOut has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              galleriaOut: function (_, t, b, c, d) {
                          Severity: Minor
                          Found in assets/js/galleria/galleria-1.3.5.js - About 35 mins to fix

                            Function easeout has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    this.easeout = function (x, t, b, c, d) {
                            Severity: Minor
                            Found in assets/js/galleria/galleria-1.3.5.js - About 35 mins to fix

                              Function easeInOutQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  easeInOutQuad: function (x, t, b, c, d) {
                              Severity: Minor
                              Found in assets/js/galleryview/easing.js - About 35 mins to fix
                                Severity
                                Category
                                Status
                                Source
                                Language