adobe/brackets

View on GitHub
src/extensions/default/InlineTimingFunctionEditor/unittests.js

Summary

Maintainability
F
2 wks
Test Coverage

File unittests.js has 737 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
Severity: Major
Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js - About 1 day to fix

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

                    it("should convert step-start function to steps function parameters", function () {
                        runs(function () {
                            makeTimingFuncUI("step-start");
                            expect(timingFuncEditor).toBeTruthy();
                            expect(timingFuncEditor._stepParams).toBeTruthy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 543..551

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

    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

                    it("should load the initial steps function correctly", function () {
                        runs(function () {
                            makeTimingFuncUI("steps(5, start)");
                            expect(timingFuncEditor).toBeTruthy();
                            expect(timingFuncEditor._stepParams).toBeTruthy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 595..603

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

    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

                it("should match linear animation function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("animation-timing-function: linear;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("linear");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 348..353

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

    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

                it("should match step-start function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("transition-timing-function: step-start;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("step-start");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 137..142

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

    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

                it("should match step-end function value in lax mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("step-end", true);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("step-end");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 222..227

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

    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

                it("should match ease-in-out function value in lax mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("ease-in-out", true);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease-in-out");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 366..371

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

    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 makeTimingFunctionEditor(cursor) {
                runs(function () {
                    var promise = provider(testEditor, cursor);
                    if (promise) {
                        promise.done(function (inlineResult) {
    src/extensions/default/InlineColorEditor/unittests.js on lines 73..84

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

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

                it("should match ease-in-out animation function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("animation-timing-function: ease-in-out;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease-in-out");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match ease-out animation function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("animation-timing-function: ease-out;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease-out");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match linear function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("transition-timing-function: linear;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("linear");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match linear function value in lax mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("linear", true);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("linear");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match step-end function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("transition-timing-function: step-end;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("step-end");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359

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

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

                it("should match ease-in function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("transition-timing-function: ease-in;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease-in");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match step-start function value in lax mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("step-start", true);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("step-start");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match ease function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("transition-timing-function: ease;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match ease-in animation function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("animation-timing-function: ease-in;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease-in");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match ease-out function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("transition-timing-function: ease-out;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease-out");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match ease-in function value in lax mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("ease-in", true);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease-in");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match ease animation function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("animation-timing-function: ease;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match ease function value in lax mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("ease", true);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match ease-out function value in lax mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("ease-out", true);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease-out");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 216..221
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

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

                it("should match ease-in-out function in declaration in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("transition-timing-function: ease-in-out;", false);
                    expect(match.length).toEqual(1);
                    expect(match[0]).toEqual("ease-in-out");
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 143..148
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 149..154
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 155..160
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 161..166
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 168..173
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 174..179
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 180..185
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 186..191
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 192..197
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 198..203
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 204..209
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 210..215
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 354..359
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 360..365

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

    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

                it("should match bezier curve function in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("cubic-bezier(.1, .2, .3, .4)", false);
                    expect(match).toBeTruthy();
                    expectArraysToBeEqual(match, ["cubic-bezier(.1, .2, .3, .4)", ".1", ".2", ".3", ".4"]);
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 99..104

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

    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

                it("should match bezier curve function in lax mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("cubic-bezier(.1, .2, .3, .4)", true);
                    expect(match).toBeTruthy();
                    expectArraysToBeEqual(match, ["cubic-bezier(.1, .2, .3, .4)", ".1", ".2", ".3", ".4"]);
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 93..98

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

    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

                it("should match steps function in strict mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("steps(3, start)", false);
                    expect(match).toBeTruthy();
                    expectArraysToBeEqual(match, ["steps(3, start)", "3", "start"]);
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 295..300

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

    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

                it("should match steps function in lax mode", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("steps(3, start)", true);
                    expect(match).toBeTruthy();
                    expectArraysToBeEqual(match, ["steps(3, start)", "3", "start"]);
                    expect(match.originalString).toBeFalsy();
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 289..294

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

    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 testInvalidBezier(str, expectedArray) {
                    var match = TimingFunctionUtils.timingFunctionMatch(str, false);
                    runs(function () {
                        expectArraysToBeEqual(match, expectedArray);
                        expect(match.originalString).toEqual(str);
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 280..286

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

    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 testInvalidStep(str, expectedArray) {
                    var match = TimingFunctionUtils.timingFunctionMatch(str, false);
                    runs(function () {
                        expectArraysToBeEqual(match, expectedArray);
                        expect(match.originalString).toEqual(str);
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 84..90

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

    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

                    it("should not move point P2 x-value out-of-range on drag", function () {
                        testCubicBezierDrag({
                            downItem:  "P2",        // mouse down on this element
                            clickAt:   [5, 5],
                            dragItem:  "curve",     // drag over this element
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 705..713

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

    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

                    it("should move point P2 on drag", function () {
                        testCubicBezierDrag({
                            downItem:  "P2",        // mouse down on this element
                            clickAt:   [5, 5],
                            dragItem:  "curve",     // drag over this element
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 714..722

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

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

                    it("should change end to start on left arrow in steps()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "steps(5, end)",
                            item:      "canvas",
                            key:       KeyEvent.DOM_VK_LEFT
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 845..852
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 869..876
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 877..884

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

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

                    it("should not change start to end on left arrow in steps()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "steps(5, start)",
                            item:      "canvas",
                            key:       KeyEvent.DOM_VK_LEFT
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 845..852
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 853..860
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 877..884

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

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

                    it("should change start to end on right arrow in steps()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "steps(5, start)",
                            item:      "canvas",
                            key:       KeyEvent.DOM_VK_RIGHT
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 853..860
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 869..876
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 877..884

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

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

                    it("should not change end to start on right arrow in steps()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "steps(5, end)",
                            item:      "canvas",
                            key:       KeyEvent.DOM_VK_RIGHT
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 845..852
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 853..860
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 869..876

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

    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

                    it("should not decrease count to be less than 1 on down arrow in steps()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "steps(1)",
                            item:      "canvas",
                            key:       KeyEvent.DOM_VK_DOWN
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 837..844

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

    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

                    it("should decrease count by 1 on down arrow in steps()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "steps(5)",
                            item:      "canvas",
                            key:       KeyEvent.DOM_VK_DOWN
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 861..868

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

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

                    it("should increase P1 y-value by .1 on shift up arrow in cubic-bezier()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "cubic-bezier(.42, 0, .58, 1)",
                            item:      "P1",
                            key:       KeyEvent.DOM_VK_UP,
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 768..776
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 777..785
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 786..794
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 795..803

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

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

                    it("should decrease P2 x-value by .02 on left arrow in cubic-bezier()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "cubic-bezier(.42, 0, .58, 1)",
                            item:      "P2",
                            key:       KeyEvent.DOM_VK_LEFT,
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 759..767
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 777..785
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 786..794
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 795..803

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

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

                    it("should not increase P2 x-value above 0 on shift right arrow in cubic-bezier()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "cubic-bezier(0, 0, 1, 1)",
                            item:      "P2",
                            key:       KeyEvent.DOM_VK_RIGHT,
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 759..767
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 768..776
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 777..785
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 786..794

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

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

                    it("should not decrease P1 x-value below 0 on left arrow in cubic-bezier()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "cubic-bezier(0, 0, 1, 1)",
                            item:      "P1",
                            key:       KeyEvent.DOM_VK_LEFT,
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 759..767
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 768..776
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 777..785
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 795..803

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

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

                    it("should decrease P2 y-value by .1 on shift down arrow in cubic-bezier()", function () {
                        triggerTimingFunctionEditorKey({
                            func:      "cubic-bezier(.42, 0, .58 ,1)",
                            item:      "P2",
                            key:       KeyEvent.DOM_VK_DOWN,
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 759..767
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 768..776
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 786..794
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 795..803

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

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

                it("should match bezier curve function in full line of shorthand css", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("    transition: top 100ms cubic-bezier(.37, .28, .83, .94) 0;", false);
                    expectArraysToBeEqual(match, ["cubic-bezier(.37, .28, .83, .94)", ".37", ".28", ".83", ".94"]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 105..109
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 110..114
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 120..124
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 125..129

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

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

                it("should match bezier curve function with no optional whitespace", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("cubic-bezier(.1,.2,.3,.4)", false);
                    expectArraysToBeEqual(match, ["cubic-bezier(.1,.2,.3,.4)", ".1", ".2", ".3", ".4"]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 105..109
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 110..114
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 115..119
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 120..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 61.

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

                it("should match bezier curve function in full line of longhand css", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("    transition-timing-function: cubic-bezier(.37, .28, .83, .94);", false);
                    expectArraysToBeEqual(match, ["cubic-bezier(.37, .28, .83, .94)", ".37", ".28", ".83", ".94"]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 105..109
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 115..119
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 120..124
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 125..129

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

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

                it("should match bezier curve function with leading zeros", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("cubic-bezier(0.1, 0.2, 0.3, 0.4)", false);
                    expectArraysToBeEqual(match, ["cubic-bezier(0.1, 0.2, 0.3, 0.4)", "0.1", "0.2", "0.3", "0.4"]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 105..109
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 110..114
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 115..119
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 125..129

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

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

                it("should match bezier curve function with negative value", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("cubic-bezier(0, -.2, 1, 1.2)", false);
                    expectArraysToBeEqual(match, ["cubic-bezier(0, -.2, 1, 1.2)", "0", "-.2", "1", "1.2"]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 110..114
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 115..119
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 120..124
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 125..129

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

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

                it("should match steps function with second parameter of end", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("steps(12, end)", false);
                    expectArraysToBeEqual(match, ["steps(12, end)", "12", "end"]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 311..315
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 321..325
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 331..335

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

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

                it("should match steps function with only 1 parameter", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("steps(8)", false);
                    expectArraysToBeEqual(match, ["steps(8)", "8", undefined]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 316..320
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 326..330
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 336..340

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

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

                it("should match steps function in full line of shorthand css", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("    transition: top 100ms steps(10) 0;", false);
                    expectArraysToBeEqual(match, ["steps(10)", "10", undefined]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 306..310
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 326..330
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 336..340

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

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

                it("should match steps function with leading zeros", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("steps(04, end)", false);
                    expectArraysToBeEqual(match, ["steps(04, end)", "04", "end"]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 301..305
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 311..315
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 331..335

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

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

                it("should match steps function with no optional whitespace with 2 params", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("steps(3,end)", false);
                    expectArraysToBeEqual(match, ["steps(3,end)", "3", "end"]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 301..305
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 311..315
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 321..325

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

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

                it("should match steps function with no optional whitespace with 1 param", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("steps(3)", false);
                    expectArraysToBeEqual(match, ["steps(3)", "3", undefined]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 306..310
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 316..320
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 336..340

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

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

                it("should match steps function in full line of longhand css", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("    transition-timing-function: steps(5, start);", false);
                    expectArraysToBeEqual(match, ["steps(5, start)", "5", "start"]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 301..305
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 321..325
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 331..335

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

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

                it("should match steps function with extra optional whitespace with 1 param", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("steps( 7 )", false);
                    expectArraysToBeEqual(match, ["steps( 7 )", "7", undefined]);
                    expect(match.originalString).toBeFalsy();
                });
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 306..310
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 316..320
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 326..330

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

    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

                beforeEach(function () {
                    var mock = SpecRunnerUtils.createMockEditor(testContentCSS, "css");
                    testDocument = mock.doc;
                    testEditor = mock.editor;
                });
    Severity: Major
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 2 other locations - About 45 mins to fix
    src/extensions/default/InlineColorEditor/unittests.js on lines 118..122
    src/extensions/default/InlineColorEditor/unittests.js on lines 325..329

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

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

                    it("should convert ease-out function to cubic-bezier function parameters", function () {
                        runs(function () {
                            makeTimingFuncUI("ease-out");
                            expectArraysToBeEqual(timingFuncEditor._cubicBezierCoords, ["0", "0", ".58", "1"]);
                        });
    Severity: Major
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 4 other locations - About 40 mins to fix
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 565..570
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 571..576
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 577..582
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 589..594

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

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

                    it("should convert ease-in function to cubic-bezier function parameters", function () {
                        runs(function () {
                            makeTimingFuncUI("ease-in");
                            expectArraysToBeEqual(timingFuncEditor._cubicBezierCoords, [".42", "0", "1", "1"]);
                        });
    Severity: Major
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 4 other locations - About 40 mins to fix
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 565..570
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 571..576
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 583..588
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 589..594

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

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

                    it("should convert linear function to cubic-bezier function parameters", function () {
                        runs(function () {
                            makeTimingFuncUI("linear");
                            expectArraysToBeEqual(timingFuncEditor._cubicBezierCoords, ["0", "0", "1", "1"]);
                        });
    Severity: Major
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 4 other locations - About 40 mins to fix
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 571..576
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 577..582
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 583..588
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 589..594

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

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

                    it("should convert ease function to cubic-bezier function parameters", function () {
                        runs(function () {
                            makeTimingFuncUI("ease");
                            expectArraysToBeEqual(timingFuncEditor._cubicBezierCoords, [".25", ".1", ".25", "1"]);
                        });
    Severity: Major
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 4 other locations - About 40 mins to fix
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 565..570
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 577..582
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 583..588
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 589..594

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

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

                    it("should convert ease-in-out function to cubic-bezier function parameters", function () {
                        runs(function () {
                            makeTimingFuncUI("ease-in-out");
                            expectArraysToBeEqual(timingFuncEditor._cubicBezierCoords, [".42", "0", ".58", "1"]);
                        });
    Severity: Major
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 4 other locations - About 40 mins to fix
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 565..570
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 571..576
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 577..582
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 583..588

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

    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

                    it("should move point P1 on mousedown in curve", function () {
                        testCubicBezierClick({
                            item:      "curve",
                            clickAt:   translatePointFromBezierToCanvas([0.5, 0.1]),
                            expected:  [".5", ".1", ".58", "1"]
    Severity: Minor
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 1 other location - About 40 mins to fix
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 689..695

    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

                    it("should move point P2 on mousedown in curve", function () {
                        testCubicBezierClick({
                            item:      "curve",
                            clickAt:   translatePointFromBezierToCanvas([0.6, 1.2]),
                            expected:  [".42", "0", ".6", "1.2"]
    Severity: Minor
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 1 other location - About 40 mins to fix
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 682..688

    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

                    function makeKeyEvent(opts) {
                        return $.Event("keydown", { keyCode: opts.key, shiftKey: !!opts.shift });
                    }
    Severity: Minor
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 1 other location - About 35 mins to fix
    src/extensions/default/InlineColorEditor/unittests.js on lines 798..800

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

    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

                it("should not match cubic-bezier function with invalid whitespace", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("cubic-bezier (0, 0, 1, 1)", false);
                    expect(match).toBeFalsy();
                });
    Severity: Minor
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 1 other location - About 30 mins to fix
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 415..418

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

    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

                it("should not match steps function with no parens", function () {
                    match = TimingFunctionUtils.timingFunctionMatch("steps", false);
                    expect(match).toBeFalsy();
                });
    Severity: Minor
    Found in src/extensions/default/InlineTimingFunctionEditor/unittests.js and 1 other location - About 30 mins to fix
    src/extensions/default/InlineTimingFunctionEditor/unittests.js on lines 253..256

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

    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