katrotz/splitify

View on GitHub

Showing 98 of 98 total issues

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

ItemShareController = ApplicationController.extend({
  template: 'itemShare',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/item/controller/main.item.share.js and 17 other locations - About 35 mins to fix
lib/routing/auth/controller/main.profile.js on lines 1..6
lib/routing/bill/controller/main.bill.list.js on lines 1..6
lib/routing/bill/controller/main.bill.view.js on lines 1..6
lib/routing/item/controller/main.item.create.js on lines 1..6
lib/routing/item/controller/main.item.list.js on lines 1..6
lib/routing/item/controller/main.item.recent.js on lines 1..6
lib/routing/item/controller/main.item.view.js on lines 1..6
lib/routing/participant/controller/main.participant.list.js on lines 1..6
lib/routing/participant/controller/main.participant.view.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.create.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.delete.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.recent.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.view.js on lines 1..6
lib/routing/table/controller/main.table.create.js on lines 1..6
lib/routing/table/controller/main.table.js on lines 1..6
lib/routing/table/controller/main.table.list.js on lines 1..6
lib/routing/table/controller/main.table.view.js on lines 1..6

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

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

BillListController = ApplicationController.extend({
  template: 'billList',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/bill/controller/main.bill.list.js and 17 other locations - About 35 mins to fix
lib/routing/auth/controller/main.profile.js on lines 1..6
lib/routing/bill/controller/main.bill.view.js on lines 1..6
lib/routing/item/controller/main.item.create.js on lines 1..6
lib/routing/item/controller/main.item.list.js on lines 1..6
lib/routing/item/controller/main.item.recent.js on lines 1..6
lib/routing/item/controller/main.item.share.js on lines 1..6
lib/routing/item/controller/main.item.view.js on lines 1..6
lib/routing/participant/controller/main.participant.list.js on lines 1..6
lib/routing/participant/controller/main.participant.view.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.create.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.delete.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.recent.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.view.js on lines 1..6
lib/routing/table/controller/main.table.create.js on lines 1..6
lib/routing/table/controller/main.table.js on lines 1..6
lib/routing/table/controller/main.table.list.js on lines 1..6
lib/routing/table/controller/main.table.view.js on lines 1..6

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

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

ItemRecentController = ApplicationController.extend({
  template: 'itemRecent',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/item/controller/main.item.recent.js and 17 other locations - About 35 mins to fix
lib/routing/auth/controller/main.profile.js on lines 1..6
lib/routing/bill/controller/main.bill.list.js on lines 1..6
lib/routing/bill/controller/main.bill.view.js on lines 1..6
lib/routing/item/controller/main.item.create.js on lines 1..6
lib/routing/item/controller/main.item.list.js on lines 1..6
lib/routing/item/controller/main.item.share.js on lines 1..6
lib/routing/item/controller/main.item.view.js on lines 1..6
lib/routing/participant/controller/main.participant.list.js on lines 1..6
lib/routing/participant/controller/main.participant.view.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.create.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.delete.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.recent.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.view.js on lines 1..6
lib/routing/table/controller/main.table.create.js on lines 1..6
lib/routing/table/controller/main.table.js on lines 1..6
lib/routing/table/controller/main.table.list.js on lines 1..6
lib/routing/table/controller/main.table.view.js on lines 1..6

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

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

ItemListController = ApplicationController.extend({
  template: 'itemList',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/item/controller/main.item.list.js and 17 other locations - About 35 mins to fix
lib/routing/auth/controller/main.profile.js on lines 1..6
lib/routing/bill/controller/main.bill.list.js on lines 1..6
lib/routing/bill/controller/main.bill.view.js on lines 1..6
lib/routing/item/controller/main.item.create.js on lines 1..6
lib/routing/item/controller/main.item.recent.js on lines 1..6
lib/routing/item/controller/main.item.share.js on lines 1..6
lib/routing/item/controller/main.item.view.js on lines 1..6
lib/routing/participant/controller/main.participant.list.js on lines 1..6
lib/routing/participant/controller/main.participant.view.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.create.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.delete.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.recent.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.view.js on lines 1..6
lib/routing/table/controller/main.table.create.js on lines 1..6
lib/routing/table/controller/main.table.js on lines 1..6
lib/routing/table/controller/main.table.list.js on lines 1..6
lib/routing/table/controller/main.table.view.js on lines 1..6

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

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

RestaurantRecentController = ApplicationController.extend({
  template: 'restaurantRecent',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/restaurant/controller/main.restaurant.recent.js and 17 other locations - About 35 mins to fix
lib/routing/auth/controller/main.profile.js on lines 1..6
lib/routing/bill/controller/main.bill.list.js on lines 1..6
lib/routing/bill/controller/main.bill.view.js on lines 1..6
lib/routing/item/controller/main.item.create.js on lines 1..6
lib/routing/item/controller/main.item.list.js on lines 1..6
lib/routing/item/controller/main.item.recent.js on lines 1..6
lib/routing/item/controller/main.item.share.js on lines 1..6
lib/routing/item/controller/main.item.view.js on lines 1..6
lib/routing/participant/controller/main.participant.list.js on lines 1..6
lib/routing/participant/controller/main.participant.view.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.create.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.delete.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.view.js on lines 1..6
lib/routing/table/controller/main.table.create.js on lines 1..6
lib/routing/table/controller/main.table.js on lines 1..6
lib/routing/table/controller/main.table.list.js on lines 1..6
lib/routing/table/controller/main.table.view.js on lines 1..6

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

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

TableCreateController = ApplicationController.extend({
  template: 'tableCreate',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/table/controller/main.table.create.js and 17 other locations - About 35 mins to fix
lib/routing/auth/controller/main.profile.js on lines 1..6
lib/routing/bill/controller/main.bill.list.js on lines 1..6
lib/routing/bill/controller/main.bill.view.js on lines 1..6
lib/routing/item/controller/main.item.create.js on lines 1..6
lib/routing/item/controller/main.item.list.js on lines 1..6
lib/routing/item/controller/main.item.recent.js on lines 1..6
lib/routing/item/controller/main.item.share.js on lines 1..6
lib/routing/item/controller/main.item.view.js on lines 1..6
lib/routing/participant/controller/main.participant.list.js on lines 1..6
lib/routing/participant/controller/main.participant.view.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.create.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.delete.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.recent.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.view.js on lines 1..6
lib/routing/table/controller/main.table.js on lines 1..6
lib/routing/table/controller/main.table.list.js on lines 1..6
lib/routing/table/controller/main.table.view.js on lines 1..6

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

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

RestaurantCreateController = ApplicationController.extend({
  template: 'restaurantCreate',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/restaurant/controller/main.restaurant.create.js and 17 other locations - About 35 mins to fix
lib/routing/auth/controller/main.profile.js on lines 1..6
lib/routing/bill/controller/main.bill.list.js on lines 1..6
lib/routing/bill/controller/main.bill.view.js on lines 1..6
lib/routing/item/controller/main.item.create.js on lines 1..6
lib/routing/item/controller/main.item.list.js on lines 1..6
lib/routing/item/controller/main.item.recent.js on lines 1..6
lib/routing/item/controller/main.item.share.js on lines 1..6
lib/routing/item/controller/main.item.view.js on lines 1..6
lib/routing/participant/controller/main.participant.list.js on lines 1..6
lib/routing/participant/controller/main.participant.view.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.delete.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.recent.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.view.js on lines 1..6
lib/routing/table/controller/main.table.create.js on lines 1..6
lib/routing/table/controller/main.table.js on lines 1..6
lib/routing/table/controller/main.table.list.js on lines 1..6
lib/routing/table/controller/main.table.view.js on lines 1..6

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

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

TableViewController = ApplicationController.extend({
  template: 'tableView',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/table/controller/main.table.view.js and 17 other locations - About 35 mins to fix
lib/routing/auth/controller/main.profile.js on lines 1..6
lib/routing/bill/controller/main.bill.list.js on lines 1..6
lib/routing/bill/controller/main.bill.view.js on lines 1..6
lib/routing/item/controller/main.item.create.js on lines 1..6
lib/routing/item/controller/main.item.list.js on lines 1..6
lib/routing/item/controller/main.item.recent.js on lines 1..6
lib/routing/item/controller/main.item.share.js on lines 1..6
lib/routing/item/controller/main.item.view.js on lines 1..6
lib/routing/participant/controller/main.participant.list.js on lines 1..6
lib/routing/participant/controller/main.participant.view.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.create.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.delete.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.recent.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.view.js on lines 1..6
lib/routing/table/controller/main.table.create.js on lines 1..6
lib/routing/table/controller/main.table.js on lines 1..6
lib/routing/table/controller/main.table.list.js on lines 1..6

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

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

ItemViewController = ApplicationController.extend({
  template: 'itemView',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/item/controller/main.item.view.js and 17 other locations - About 35 mins to fix
lib/routing/auth/controller/main.profile.js on lines 1..6
lib/routing/bill/controller/main.bill.list.js on lines 1..6
lib/routing/bill/controller/main.bill.view.js on lines 1..6
lib/routing/item/controller/main.item.create.js on lines 1..6
lib/routing/item/controller/main.item.list.js on lines 1..6
lib/routing/item/controller/main.item.recent.js on lines 1..6
lib/routing/item/controller/main.item.share.js on lines 1..6
lib/routing/participant/controller/main.participant.list.js on lines 1..6
lib/routing/participant/controller/main.participant.view.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.create.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.delete.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.recent.js on lines 1..6
lib/routing/restaurant/controller/main.restaurant.view.js on lines 1..6
lib/routing/table/controller/main.table.create.js on lines 1..6
lib/routing/table/controller/main.table.js on lines 1..6
lib/routing/table/controller/main.table.list.js on lines 1..6
lib/routing/table/controller/main.table.view.js on lines 1..6

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

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

describe('Meteor stubs', function () {
  it('is available', function () {
    MeteorStubs.install();
    MeteorStubs.uninstall();
  });
packages/meteor-jasmine/test-app/tests/jasmine/client/unit/meteor-stubs-spec.js on lines 1..6
packages/meteor-jasmine/test-app/tests/jasmine/server/integration/meteor-stubs-spec.js on lines 1..6
packages/meteor-jasmine/test-app/tests/jasmine/server/unit/meteor-stubs-spec.js on lines 1..6

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

describe('Meteor stubs', function () {
  it('is available', function () {
    MeteorStubs.install();
    MeteorStubs.uninstall();
  });
packages/meteor-jasmine/test-app/tests/jasmine/client/integration/meteor-stubs-spec.js on lines 1..6
packages/meteor-jasmine/test-app/tests/jasmine/client/unit/meteor-stubs-spec.js on lines 1..6
packages/meteor-jasmine/test-app/tests/jasmine/server/unit/meteor-stubs-spec.js on lines 1..6

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

describe('Meteor stubs', function () {
  it('is available', function () {
    MeteorStubs.install();
    MeteorStubs.uninstall();
  });
packages/meteor-jasmine/test-app/tests/jasmine/client/integration/meteor-stubs-spec.js on lines 1..6
packages/meteor-jasmine/test-app/tests/jasmine/client/unit/meteor-stubs-spec.js on lines 1..6
packages/meteor-jasmine/test-app/tests/jasmine/server/integration/meteor-stubs-spec.js on lines 1..6

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

describe('Meteor stubs', function () {
  it('is available', function () {
    MeteorStubs.install();
    MeteorStubs.uninstall();
  });
packages/meteor-jasmine/test-app/tests/jasmine/client/integration/meteor-stubs-spec.js on lines 1..6
packages/meteor-jasmine/test-app/tests/jasmine/server/integration/meteor-stubs-spec.js on lines 1..6
packages/meteor-jasmine/test-app/tests/jasmine/server/unit/meteor-stubs-spec.js on lines 1..6

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

Avoid too many return statements within this function.
Open

            return { pass: false }
Severity: Major
Found in packages/meteor-jasmine/src/client/unit/assets/jasmine-jquery.js - About 30 mins to fix

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

    describe('PackageToTest', function () {
      it('has foo bar', function () {
        expect(PackageToTest.foo).toEqual('bar')
      })
    })
    packages/meteor-jasmine/test-app/packages/package-to-test/tests/server/example-spec.js on lines 1..5

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 45.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Avoid too many return statements within this function.
    Open

                  return { pass: false }
    Severity: Major
    Found in packages/meteor-jasmine/src/client/integration/assets/jasmine-jquery.js - About 30 mins to fix

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

      describe('PackageToTest', function () {
        it('has foo bar', function () {
          expect(PackageToTest.foo).toEqual('bar')
        })
      })
      packages/meteor-jasmine/test-app/packages/package-to-test/tests/client/example-spec.js on lines 1..5

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 45.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Avoid too many return statements within this function.
      Open

          return (a < b ? -1 : 1)
      Severity: Major
      Found in packages/meteor-jasmine/src/server/lib/load-order-sort.js - About 30 mins to fix
        Severity
        Category
        Status
        Source
        Language