mambax7/publisher

View on GitHub
assets/js/jquery.easing.js

Summary

Maintainability
F
3 days
Test Coverage

`` has 31 functions (exceeds 20 allowed). Consider refactoring.
Open

    {
        def: 'easeOutQuad',
        swing: function (x, t, b, c, d) {
            //alert(jQuery.easing.default);
            return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
Severity: Minor
Found in assets/js/jquery.easing.js - About 3 hrs to fix

    Function easeInOutBack has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            easeInOutBack: function (x, t, b, c, d, s) {
    Severity: Minor
    Found in assets/js/jquery.easing.js - About 45 mins to fix

      Function easeInBack has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              easeInBack: function (x, t, b, c, d, s) {
      Severity: Minor
      Found in assets/js/jquery.easing.js - About 45 mins to fix

        Function easeOutBack has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                easeOutBack: function (x, t, b, c, d, s) {
        Severity: Minor
        Found in assets/js/jquery.easing.js - About 45 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/jquery.easing.js - About 35 mins to fix

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

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

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

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

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

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

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

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

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

                            easeInExpo: function (x, t, b, c, d) {
                    Severity: Minor
                    Found in assets/js/jquery.easing.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/jquery.easing.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/jquery.easing.js - About 35 mins to fix

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              if (a < Math.abs(c)) {
                                                                                  a = c;
                                                                                  var s = p / 4;
                                                                              }
                                                                              else var s = p / (2 * Math.PI) * Math.asin(c / a);
                                                                  Severity: Major
                                                                  Found in assets/js/jquery.easing.js and 2 other locations - About 1 hr to fix
                                                                  assets/js/jquery.easing.js on lines 126..130
                                                                  assets/js/jquery.easing.js on lines 140..144

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

                                                                  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 3 locations. Consider refactoring.
                                                                  Open

                                                                              if (a < Math.abs(c)) {
                                                                                  a = c;
                                                                                  var s = p / 4;
                                                                              }
                                                                              else var s = p / (2 * Math.PI) * Math.asin(c / a);
                                                                  Severity: Major
                                                                  Found in assets/js/jquery.easing.js and 2 other locations - About 1 hr to fix
                                                                  assets/js/jquery.easing.js on lines 140..144
                                                                  assets/js/jquery.easing.js on lines 154..158

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

                                                                  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 3 locations. Consider refactoring.
                                                                  Open

                                                                              if (a < Math.abs(c)) {
                                                                                  a = c;
                                                                                  var s = p / 4;
                                                                              }
                                                                              else var s = p / (2 * Math.PI) * Math.asin(c / a);
                                                                  Severity: Major
                                                                  Found in assets/js/jquery.easing.js and 2 other locations - About 1 hr to fix
                                                                  assets/js/jquery.easing.js on lines 126..130
                                                                  assets/js/jquery.easing.js on lines 154..158

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

                                                                  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

                                                                              return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
                                                                  Severity: Major
                                                                  Found in assets/js/jquery.easing.js and 1 other location - About 1 hr to fix
                                                                  assets/js/jquery.easing.js on lines 159..159

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

                                                                  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 (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
                                                                  Severity: Major
                                                                  Found in assets/js/jquery.easing.js and 1 other location - About 1 hr to fix
                                                                  assets/js/jquery.easing.js on lines 131..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 58.

                                                                  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

                                                                  There are no issues that match your filters.

                                                                  Category
                                                                  Status