CaffGeek/MBACNationals

View on GitHub

Showing 1,938 of 7,504 total issues

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

        private IWebElement usernameTextField 
        { 
            get 
            { 
                _wait.Until(driver => driver.FindElement(By.Id("UserName")));
Severity: Minor
Found in UITestsFramework/Pages/LoginPage.cs and 1 other location - About 40 mins to fix
UITestsFramework/Pages/RegisterPage.cs on lines 11..18

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

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

        public void Handle(TeamRemoved e)
        {            
            var contingent = ContingentPracticePlans.SingleOrDefault(x => x.Id == e.Id);
            contingent.Teams.RemoveAll(x => x.Id == e.TeamId);
        }
Severity: Minor
Found in ReadModels/ContingentPracticePlanQueries.cs and 1 other location - About 40 mins to fix
ReadModels/ContingentViewQueries.cs on lines 157..161

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

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

        public void Handle(TeamRemoved e)
        {
            var contingent = Contingents.Single(x => x.Id == e.Id);
            contingent.Teams.RemoveAll(x => x.Id == e.TeamId);
        }
Severity: Minor
Found in ReadModels/ContingentViewQueries.cs and 1 other location - About 40 mins to fix
ReadModels/ContingentPracticePlanQueries.cs on lines 123..127

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

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

        public void Handle(ParticipantDesignatedAsAlternate e)
        {
            var team = Contingents.SelectMany(x => x.Teams)
                .Single(x => x.Id == e.TeamId);
            team.Alternate = e.Id;
Severity: Minor
Found in ReadModels/ContingentViewQueries.cs and 1 other location - About 40 mins to fix
ReadModels/ContingentViewQueries.cs on lines 196..201

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

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

        public void Handle(CoachAssignedToTeam e)
        {
            var team = Contingents.SelectMany(x => x.Teams)
                .Single(x => x.Id == e.TeamId);
            team.CoachId = e.Id;
Severity: Minor
Found in ReadModels/ContingentViewQueries.cs and 1 other location - About 40 mins to fix
ReadModels/ContingentViewQueries.cs on lines 189..194

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

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

        public void Apply(TeamPracticeRescheduled e)
        {
            var team = Teams.FirstOrDefault(x => x.Id.Equals(e.TeamId));
            if (team == null)
                return;
Severity: Minor
Found in Aggregates/Contingent/ContingentAggregate.cs and 1 other location - About 40 mins to fix
Aggregates/Contingent/ContingentAggregate.cs on lines 96..103

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

        public void Apply(ParticipantDesignatedAsAlternate e)
        {
            var team = Teams.FirstOrDefault(x => x.Id.Equals(e.TeamId));
            if (team == null)
                return;
Severity: Minor
Found in Aggregates/Contingent/ContingentAggregate.cs and 1 other location - About 40 mins to fix
Aggregates/Contingent/ContingentAggregate.cs on lines 82..89

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

  $.fn.alert.noConflict = function () {
    $.fn.alert = old
    return this
  }
Severity: Major
Found in Web.Admin/Content/bootstrap/js/bootstrap.js and 8 other locations - About 40 mins to fix
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 273..276
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 493..496
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 722..725
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 893..896
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 1221..1224
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2028..2031
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2182..2185
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2340..2343

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

  $.fn.button.noConflict = function () {
    $.fn.button = old
    return this
  }
Severity: Major
Found in Web.Admin/Content/bootstrap/js/bootstrap.js and 8 other locations - About 40 mins to fix
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 161..164
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 493..496
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 722..725
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 893..896
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 1221..1224
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2028..2031
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2182..2185
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2340..2343

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

  $.fn.modal.noConflict = function () {
    $.fn.modal = old
    return this
  }
Severity: Major
Found in Web.Admin/Content/bootstrap/js/bootstrap.js and 8 other locations - About 40 mins to fix
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 161..164
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 273..276
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 493..496
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 722..725
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 893..896
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2028..2031
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2182..2185
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2340..2343

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

  $.fn.carousel.noConflict = function () {
    $.fn.carousel = old
    return this
  }
Severity: Major
Found in Web.Admin/Content/bootstrap/js/bootstrap.js and 8 other locations - About 40 mins to fix
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 161..164
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 273..276
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 722..725
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 893..896
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 1221..1224
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2028..2031
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2182..2185
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2340..2343

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

  $.fn.dropdown.noConflict = function () {
    $.fn.dropdown = old
    return this
  }
Severity: Major
Found in Web.Admin/Content/bootstrap/js/bootstrap.js and 8 other locations - About 40 mins to fix
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 161..164
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 273..276
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 493..496
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 722..725
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 1221..1224
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2028..2031
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2182..2185
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2340..2343

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

  $.fn.scrollspy.noConflict = function () {
    $.fn.scrollspy = old
    return this
  }
Severity: Major
Found in Web.Admin/Content/bootstrap/js/bootstrap.js and 8 other locations - About 40 mins to fix
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 161..164
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 273..276
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 493..496
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 722..725
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 893..896
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 1221..1224
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2182..2185
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2340..2343

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

  $.fn.tab.noConflict = function () {
    $.fn.tab = old
    return this
  }
Severity: Major
Found in Web.Admin/Content/bootstrap/js/bootstrap.js and 8 other locations - About 40 mins to fix
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 161..164
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 273..276
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 493..496
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 722..725
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 893..896
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 1221..1224
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2028..2031
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2340..2343

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

  $.fn.collapse.noConflict = function () {
    $.fn.collapse = old
    return this
  }
Severity: Major
Found in Web.Admin/Content/bootstrap/js/bootstrap.js and 8 other locations - About 40 mins to fix
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 161..164
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 273..276
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 493..496
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 893..896
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 1221..1224
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2028..2031
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2182..2185
Web.Admin/Content/bootstrap/js/bootstrap.js on lines 2340..2343

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

        dataService.LoadHighScores('Teaching').then(function (data) {
            $scope.model.HighScores['Teaching'] = data.data;
        });
Severity: Major
Found in Web.Admin/ClientApp/Controllers/controller.highscores.js and 4 other locations - About 40 mins to fix
Web.Admin/ClientApp/Controllers/controller.highscores.js on lines 21..23
Web.Admin/ClientApp/Controllers/controller.highscores.js on lines 25..27
Web.Admin/ClientApp/Controllers/controller.highscores.js on lines 29..31
Web.Admin/ClientApp/Controllers/controller.highscores.js on lines 33..35

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

        dataService.LoadHighAverages('Teaching').then(function (data) {
            $scope.model.HighAverages['Teaching'] = data.data;
        });
Severity: Major
Found in Web.Admin/ClientApp/Controllers/controller.highscores.js and 4 other locations - About 40 mins to fix
Web.Admin/ClientApp/Controllers/controller.highscores.js on lines 17..19
Web.Admin/ClientApp/Controllers/controller.highscores.js on lines 21..23
Web.Admin/ClientApp/Controllers/controller.highscores.js on lines 25..27
Web.Admin/ClientApp/Controllers/controller.highscores.js on lines 33..35

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

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

function getAllUserSettings() {
    if ( 'object' !== typeof userSettings )
        return {};

    return wpCookies.getHash('wp-settings-' + userSettings.uid) || {};
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/js/utils.js and 1 other location - About 40 mins to fix
Web.Admin/2014/wordpress/wp-admin/js/utils.dev.js on lines 161..166

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

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

      if(!m) m = obj['is'+method.charAt(0).toUpperCase()+method.slice(1)];
Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/unittest.js on lines 395..395

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

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

        {
            $trk.css({zIndex:450});
            if (trackDoc)
            {
                $(document)
Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 89..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 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

Severity
Category
Status
Source
Language