gecos-team/gecoscc-ui

View on GitHub

Showing 776 of 1,621 total issues

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

                            if key_value['key'] == PROVIDES_TOKEN:
                                package['provides'] = key_value['value']
Severity: Major
Found in gecoscc/commands/synchronize_repositories.py and 7 other locations - About 35 mins to fix
gecoscc/commands/synchronize_repositories.py on lines 221..222
gecoscc/commands/synchronize_repositories.py on lines 224..225
gecoscc/commands/synchronize_repositories.py on lines 227..228
gecoscc/commands/synchronize_repositories.py on lines 230..231
gecoscc/commands/synchronize_repositories.py on lines 233..234
gecoscc/commands/synchronize_repositories.py on lines 239..240
gecoscc/commands/synchronize_repositories.py on lines 242..243

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

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

        api.api_request('PUT', '/organizations/%s/groups/admins'%(organization), data={ "groupname": admins_group["groupname"], 
            "actors": {
                "users": admins_group['users'],
                "groups": admins_group["groups"]
Severity: Minor
Found in gecoscc/views/admins.py and 1 other location - About 35 mins to fix
gecoscc/commands/create_chef_administrator.py on lines 186..190

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

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

                            if key_value['key'] == REPLACES_TOKEN:
                                package['replaces'] = key_value['value']
Severity: Major
Found in gecoscc/commands/synchronize_repositories.py and 7 other locations - About 35 mins to fix
gecoscc/commands/synchronize_repositories.py on lines 221..222
gecoscc/commands/synchronize_repositories.py on lines 224..225
gecoscc/commands/synchronize_repositories.py on lines 227..228
gecoscc/commands/synchronize_repositories.py on lines 230..231
gecoscc/commands/synchronize_repositories.py on lines 233..234
gecoscc/commands/synchronize_repositories.py on lines 236..237
gecoscc/commands/synchronize_repositories.py on lines 239..240

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

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

                api.api_request('PUT', '/organizations/default/groups/admins',
                                data={ "groupname": admins_group["groupname"], 
                    "actors": {
                        "users": admins_group['users'],
                        "groups": admins_group["groups"]
Severity: Minor
Found in gecoscc/commands/create_chef_administrator.py and 1 other location - About 35 mins to fix
gecoscc/views/admins.py on lines 633..636

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

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

                            if key_value['key'] == ARCHITECTURE_TOKEN:
                                package['architecture'] = key_value['value']
Severity: Major
Found in gecoscc/commands/synchronize_repositories.py and 7 other locations - About 35 mins to fix
gecoscc/commands/synchronize_repositories.py on lines 221..222
gecoscc/commands/synchronize_repositories.py on lines 224..225
gecoscc/commands/synchronize_repositories.py on lines 230..231
gecoscc/commands/synchronize_repositories.py on lines 233..234
gecoscc/commands/synchronize_repositories.py on lines 236..237
gecoscc/commands/synchronize_repositories.py on lines 239..240
gecoscc/commands/synchronize_repositories.py on lines 242..243

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

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

                            if key_value['key'] == CONFLICTS_TOKEN:
                                package['conflicts'] = key_value['value']
Severity: Major
Found in gecoscc/commands/synchronize_repositories.py and 7 other locations - About 35 mins to fix
gecoscc/commands/synchronize_repositories.py on lines 221..222
gecoscc/commands/synchronize_repositories.py on lines 224..225
gecoscc/commands/synchronize_repositories.py on lines 227..228
gecoscc/commands/synchronize_repositories.py on lines 230..231
gecoscc/commands/synchronize_repositories.py on lines 233..234
gecoscc/commands/synchronize_repositories.py on lines 236..237
gecoscc/commands/synchronize_repositories.py on lines 242..243

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

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

                            if key_value['key'] == VERSION_TOKEN:
                                package['version'] = key_value['value']
Severity: Major
Found in gecoscc/commands/synchronize_repositories.py and 7 other locations - About 35 mins to fix
gecoscc/commands/synchronize_repositories.py on lines 221..222
gecoscc/commands/synchronize_repositories.py on lines 227..228
gecoscc/commands/synchronize_repositories.py on lines 230..231
gecoscc/commands/synchronize_repositories.py on lines 233..234
gecoscc/commands/synchronize_repositories.py on lines 236..237
gecoscc/commands/synchronize_repositories.py on lines 239..240
gecoscc/commands/synchronize_repositories.py on lines 242..243

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

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

        with open('gecoscc/test_resources/node_default.json') as file:
            node_default_json = file.read().replace(
                '%(chef_url)s', CHEF_URL).replace(
                    '%s(node_name)s', chef_node_id)
Severity: Major
Found in gecoscc/tests.py and 3 other locations - About 35 mins to fix
gecoscc/tests.py on lines 232..235
gecoscc/tests.py on lines 238..241
gecoscc/tests.py on lines 440..443

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

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

                            if key_value['key'] == DEPENDS_TOKEN:
                                package['depends'] = key_value['value']
Severity: Major
Found in gecoscc/commands/synchronize_repositories.py and 7 other locations - About 35 mins to fix
gecoscc/commands/synchronize_repositories.py on lines 221..222
gecoscc/commands/synchronize_repositories.py on lines 224..225
gecoscc/commands/synchronize_repositories.py on lines 227..228
gecoscc/commands/synchronize_repositories.py on lines 230..231
gecoscc/commands/synchronize_repositories.py on lines 236..237
gecoscc/commands/synchronize_repositories.py on lines 239..240
gecoscc/commands/synchronize_repositories.py on lines 242..243

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

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

                            if key_value['key'] == PACKAGE_NAME_TOKEN:
                                package['name'] = key_value['value']
Severity: Major
Found in gecoscc/commands/synchronize_repositories.py and 7 other locations - About 35 mins to fix
gecoscc/commands/synchronize_repositories.py on lines 224..225
gecoscc/commands/synchronize_repositories.py on lines 227..228
gecoscc/commands/synchronize_repositories.py on lines 230..231
gecoscc/commands/synchronize_repositories.py on lines 233..234
gecoscc/commands/synchronize_repositories.py on lines 236..237
gecoscc/commands/synchronize_repositories.py on lines 239..240
gecoscc/commands/synchronize_repositories.py on lines 242..243

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

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

            with open('gecoscc/test_resources/node_attributes.json') as file:
                node_attributes_json = file.read().replace(
                    '%(chef_url)s', CHEF_URL).replace(
                        '%s(node_name)s', chef_node_id)
Severity: Major
Found in gecoscc/tests.py and 3 other locations - About 35 mins to fix
gecoscc/tests.py on lines 232..235
gecoscc/tests.py on lines 238..241
gecoscc/tests.py on lines 426..429

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

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

                            if key_value['key'] == DESCRIPTION_TOKEN:
                                package['description'] = key_value['value']
Severity: Major
Found in gecoscc/commands/synchronize_repositories.py and 7 other locations - About 35 mins to fix
gecoscc/commands/synchronize_repositories.py on lines 221..222
gecoscc/commands/synchronize_repositories.py on lines 224..225
gecoscc/commands/synchronize_repositories.py on lines 227..228
gecoscc/commands/synchronize_repositories.py on lines 233..234
gecoscc/commands/synchronize_repositories.py on lines 236..237
gecoscc/commands/synchronize_repositories.py on lines 239..240
gecoscc/commands/synchronize_repositories.py on lines 242..243

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

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

            if (jQuery.type(openNodes['current']) == "undefined") {
                openNodes['current'] = this.model.get("id");
            }
Severity: Major
Found in gecoscc/static/js/computer.js and 3 other locations - About 35 mins to fix
gecoscc/static/js/computer.js on lines 285..287
gecoscc/static/js/computer.js on lines 540..542
gecoscc/static/js/computer.js on lines 567..569

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

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

            if (jQuery.type(openNodes['current']) == "undefined") {
                openNodes['current'] = this.model.get("id");
            }
Severity: Major
Found in gecoscc/static/js/computer.js and 3 other locations - About 35 mins to fix
gecoscc/static/js/computer.js on lines 285..287
gecoscc/static/js/computer.js on lines 518..520
gecoscc/static/js/computer.js on lines 540..542

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

        $.fn.spinbox.noConflict = function noConflict() {
            $.fn.spinbox = old;
            return this;
        };
Severity: Major
Found in gecoscc/static/js/libs/fuelux.js and 3 other locations - About 35 mins to fix
gecoscc/static/js/libs/fuelux.js on lines 5135..5138
gecoscc/static/js/libs/fuelux.js on lines 8068..8071
gecoscc/static/js/libs/fuelux.js on lines 8350..8353

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

        $.fn.pillbox.noConflict = function noConflict() {
            $.fn.pillbox = old;
            return this;
        };
Severity: Major
Found in gecoscc/static/js/libs/fuelux.js and 3 other locations - About 35 mins to fix
gecoscc/static/js/libs/fuelux.js on lines 3075..3078
gecoscc/static/js/libs/fuelux.js on lines 8068..8071
gecoscc/static/js/libs/fuelux.js on lines 8350..8353

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

        $.fn.scheduler.noConflict = function noConflict() {
            $.fn.scheduler = old;
            return this;
        };
Severity: Major
Found in gecoscc/static/js/libs/fuelux.js and 3 other locations - About 35 mins to fix
gecoscc/static/js/libs/fuelux.js on lines 3075..3078
gecoscc/static/js/libs/fuelux.js on lines 5135..5138
gecoscc/static/js/libs/fuelux.js on lines 8350..8353

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

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

            if (jQuery.type(openNodes['current']) == "undefined") {
                openNodes['current'] = this.model.get("id");
            }
Severity: Major
Found in gecoscc/static/js/computer.js and 3 other locations - About 35 mins to fix
gecoscc/static/js/computer.js on lines 285..287
gecoscc/static/js/computer.js on lines 518..520
gecoscc/static/js/computer.js on lines 567..569

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

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

            if (jQuery.type(openNodes['current']) == "undefined") {
                openNodes['current'] = this.model.get("id");
            }
Severity: Major
Found in gecoscc/static/js/computer.js and 3 other locations - About 35 mins to fix
gecoscc/static/js/computer.js on lines 518..520
gecoscc/static/js/computer.js on lines 540..542
gecoscc/static/js/computer.js on lines 567..569

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

        $.fn.picker.noConflict = function noConflict() {
            $.fn.picker = old;
            return this;
        };
Severity: Major
Found in gecoscc/static/js/libs/fuelux.js and 3 other locations - About 35 mins to fix
gecoscc/static/js/libs/fuelux.js on lines 3075..3078
gecoscc/static/js/libs/fuelux.js on lines 5135..5138
gecoscc/static/js/libs/fuelux.js on lines 8068..8071

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

Severity
Category
Status
Source
Language