IconoclastLabs/MotionMeetup

View on GitHub

Showing 37 of 37 total issues

`` 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 app/assets/javascripts/easing.js - About 3 hrs 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 app/assets/javascripts/easing.js and 2 other locations - About 1 hr to fix
    app/assets/javascripts/easing.js on lines 122..123
    app/assets/javascripts/easing.js on lines 129..130

    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 app/assets/javascripts/easing.js and 2 other locations - About 1 hr to fix
    app/assets/javascripts/easing.js on lines 122..123
    app/assets/javascripts/easing.js on lines 136..137

    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 app/assets/javascripts/easing.js and 2 other locations - About 1 hr to fix
    app/assets/javascripts/easing.js on lines 129..130
    app/assets/javascripts/easing.js on lines 136..137

    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 app/assets/javascripts/easing.js and 1 other location - About 1 hr to fix
    app/assets/javascripts/easing.js on lines 138..138

    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 app/assets/javascripts/easing.js and 1 other location - About 1 hr to fix
    app/assets/javascripts/easing.js on lines 124..124

    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

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

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