katrotz/splitify

View on GitHub

Showing 66 of 98 total issues

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

Player.prototype.resume = function() {
  if (this.isPlaying) {
    throw new Error('song is already playing');
  }

packages/meteor-jasmine/src/client/integration/sample-tests/sample/src/Player.js on lines 14..20
packages/meteor-jasmine/src/client/unit/sample-tests/sample/src/Player.js on lines 14..20
packages/meteor-jasmine/src/server/integration/sample-tests/sample/src/Player.js on lines 14..20

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

Player.prototype.resume = function() {
  if (this.isPlaying) {
    throw new Error('song is already playing');
  }

packages/meteor-jasmine/src/client/integration/sample-tests/sample/src/Player.js on lines 14..20
packages/meteor-jasmine/src/client/unit/sample-tests/sample/src/Player.js on lines 14..20
packages/meteor-jasmine/src/server/unit/sample-tests/sample/src/Player.js on lines 14..20

Duplicated Code

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

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

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

Tuning

This issue has a mass of 49.

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

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

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

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

Refactorings

Further Reading

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

BillViewController = ApplicationController.extend({
  template: 'billView',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/bill/controller/main.bill.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/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

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

ParticipantListController = ApplicationController.extend({
  template: 'participantList',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/participant/controller/main.participant.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.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.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

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

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

RestaurantDeleteController = ApplicationController.extend({
  template: 'restaurantDelete',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/restaurant/controller/main.restaurant.delete.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.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

ItemCreateController = ApplicationController.extend({
  template: 'itemCreate',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/item/controller/main.item.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.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

TableController = ApplicationController.extend({
  template: 'table',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/table/controller/main.table.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.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

TableListController = ApplicationController.extend({
  template: 'tableList',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/table/controller/main.table.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.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.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

ParticipantViewController = ApplicationController.extend({
  template: 'participantView',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/participant/controller/main.participant.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/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

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

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

AuthProfileController = ApplicationController.extend({
  template: 'profile',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/auth/controller/main.profile.js and 17 other locations - About 35 mins to fix
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
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

RestaurantViewController = ApplicationController.extend({
  template: 'restaurantView',
  yieldRegions: {},
  subscriptions: function() {},
  data: function() {}
Severity: Major
Found in lib/routing/restaurant/controller/main.restaurant.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/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

Severity
Category
Status
Source
Language