mangroveorg/datawinners

View on GitHub
datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js

Summary

Maintainability
F
2 wks
Test Coverage

File validation-ui-tests.js has 816 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*global
    module:false,
    equal:false,
    notEqual:false,
    strictEqual:false,

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

    test('min Attribute of 2012-W05 should fail for value of 2011-W01', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 746..769
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 771..795
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 877..900
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 982..1006
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1034..1058
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1060..1084
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1112..1136
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1164..1188

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

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

    test('max Attribute of 2010-09 should fail for value of 2011-03', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 746..769
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 771..795
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 877..900
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1034..1058
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1060..1084
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1112..1136
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1164..1188
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1190..1214

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

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

    test('max Attribute of 2010-W09 should fail for value of 2011-W03', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 746..769
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 771..795
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 877..900
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 982..1006
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1034..1058
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1060..1084
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1164..1188
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1190..1214

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

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

    test('min Attribute of 20 should fail for value of "8" with text type', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 746..769
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 877..900
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 982..1006
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1034..1058
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1060..1084
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1112..1136
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1164..1188
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1190..1214

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

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

    test('min Attribute of 2012-05 should fail for value of 2011-01', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 746..769
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 771..795
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 877..900
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 982..1006
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1034..1058
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1112..1136
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1164..1188
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1190..1214

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

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

    test('min Attribute of 2010-W09 should fail for value of 2010-W08', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 746..769
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 771..795
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 877..900
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 982..1006
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1034..1058
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1060..1084
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1112..1136
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1190..1214

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

    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

    test('max Attribute of 30 should fail for value of "100" with text type', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 720..744
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 851..875

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

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

    test('max Attribute of 30 should fail for value of "100"', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 746..769
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 771..795
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 982..1006
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1034..1058
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1060..1084
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1112..1136
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1164..1188
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1190..1214

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

    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

    test('min Attribute of 20 should fail for value of 8', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 851..875
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 902..926

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

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

    test('min Attribute of 2010-09 should fail for value of 2010-08', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 746..769
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 771..795
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 877..900
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 982..1006
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1060..1084
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1112..1136
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1164..1188
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1190..1214

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

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

    test('min Attribute of 20 should fail for value of "8"', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 771..795
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 877..900
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 982..1006
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1034..1058
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1060..1084
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1112..1136
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1164..1188
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1190..1214

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

    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

    test('max Attribute of 30 should fail for value of 100', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 720..744
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 902..926

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

    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

    test('min Attribute of 20 should pass for value of 110', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 928..953

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

    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

    test('max Attribute of 30 should pass for value of "5"', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 824..849
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1008..1032
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1086..1110
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1138..1162

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

    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

    test('max Attribute of 2010-09 should succeed for value of 2010-08', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 824..849
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 955..980
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1086..1110
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1138..1162

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

    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

    test('min Attribute of 2012-03 should succeed for value of 2013-01', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 824..849
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 955..980
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1008..1032
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1138..1162

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

    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

    test('max Attribute of 30 should pass for value of 5', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 797..822

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

    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

    test('MIN Attribute of 20 should pass for value of "110"', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 955..980
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1008..1032
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1086..1110
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1138..1162

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

    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

    test('max Attribute of 2010-W09 should succeed for value of 2010-W08', function () {
    
        var vm = {
            someNumber: ko.validatedObservable()
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 824..849
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 955..980
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1008..1032
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 1086..1110

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

    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

    module('HTML5 UI Tests', {
        setup: function () {
    
        },
        teardown: function () {
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 15..24

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

    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

    module('UI Tests', {
        setup: function () {
    
        },
        teardown: function () {
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 649..658

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

    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

        var vm = {
            firstName: ko.observable('').extend({ required: true }),
            someObj: {
                lastName: ko.observable().extend({ minLength : 2 })
            }
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 477..482

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

    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

        var vm = {
            firstName: ko.observable('a').extend({ required: true }),
            someObj: {
                lastName: ko.observable().extend({ minLength: 2 })
            }
    datawinners/media/javascript/Knockout-Validation/Tests/validation-ui-tests.js on lines 440..445

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

    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

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

        var vm = {
            testObj: ko.observable().extend({ min: 1, max: 100 }),
            dummyProp: ko.observable().extend({ required: true })
        };
    datawinners/media/javascript/Knockout-Validation/Tests/validation-tests.js on lines 292..295

    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

    There are no issues that match your filters.

    Category
    Status