assemblymade/meta

View on GitHub
app/assets/javascripts/routes.js

Summary

Maintainability
F
1 mo
Test Coverage

File routes.js has 590 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// This is a generated file, to regen run:
// rake js:routes

var exports = module.exports = {};
exports.api_org_bounties_path = function(options){
Severity: Major
Found in app/assets/javascripts/routes.js - About 1 day to fix

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

    exports.product_post_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 448..459

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

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

    exports.product_task_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 448..459
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.award_product_wip_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 448..459
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.product_wip_reopen_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.product_update_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 448..459
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.product_person_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 448..459
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.product_update_unsubscribe_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 448..459
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.product_asset_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 448..459
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.product_wip_assign_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 448..459
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.discussion_comment_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 448..459
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.product_update_subscribe_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 435..446
    app/assets/javascripts/routes.js on lines 448..459
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.product_wip_close_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 11 other locations - About 6 hrs to fix
    app/assets/javascripts/routes.js on lines 214..225
    app/assets/javascripts/routes.js on lines 305..316
    app/assets/javascripts/routes.js on lines 331..342
    app/assets/javascripts/routes.js on lines 344..355
    app/assets/javascripts/routes.js on lines 357..368
    app/assets/javascripts/routes.js on lines 370..381
    app/assets/javascripts/routes.js on lines 396..407
    app/assets/javascripts/routes.js on lines 409..420
    app/assets/javascripts/routes.js on lines 422..433
    app/assets/javascripts/routes.js on lines 448..459
    app/assets/javascripts/routes.js on lines 578..589

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

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

    exports.heart_stories_user_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.awarded_bounties_user_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.news_feed_item_update_task_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_people_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_screenshots_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.heartables_lovers_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.idea_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_metrics_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.idea_mark_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.weekly_product_metrics_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_follow_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_assets_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_wips_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.new_product_post_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_repos_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_financials_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.new_product_wip_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.readraptor_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.user_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_activity_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_tips_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.daily_product_metrics_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.discussion_comments_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.new_product_asset_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_posts_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.edit_product_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_unfollow_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.snippet_product_metrics_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 604..615
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.product_chat_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 29 other locations - About 5 hrs to fix
    app/assets/javascripts/routes.js on lines 45..56
    app/assets/javascripts/routes.js on lines 84..95
    app/assets/javascripts/routes.js on lines 110..121
    app/assets/javascripts/routes.js on lines 123..134
    app/assets/javascripts/routes.js on lines 136..147
    app/assets/javascripts/routes.js on lines 162..173
    app/assets/javascripts/routes.js on lines 175..186
    app/assets/javascripts/routes.js on lines 188..199
    app/assets/javascripts/routes.js on lines 201..212
    app/assets/javascripts/routes.js on lines 227..238
    app/assets/javascripts/routes.js on lines 240..251
    app/assets/javascripts/routes.js on lines 253..264
    app/assets/javascripts/routes.js on lines 266..277
    app/assets/javascripts/routes.js on lines 279..290
    app/assets/javascripts/routes.js on lines 292..303
    app/assets/javascripts/routes.js on lines 318..329
    app/assets/javascripts/routes.js on lines 383..394
    app/assets/javascripts/routes.js on lines 461..472
    app/assets/javascripts/routes.js on lines 474..485
    app/assets/javascripts/routes.js on lines 487..498
    app/assets/javascripts/routes.js on lines 500..511
    app/assets/javascripts/routes.js on lines 513..524
    app/assets/javascripts/routes.js on lines 526..537
    app/assets/javascripts/routes.js on lines 539..550
    app/assets/javascripts/routes.js on lines 552..563
    app/assets/javascripts/routes.js on lines 565..576
    app/assets/javascripts/routes.js on lines 591..602
    app/assets/javascripts/routes.js on lines 617..628
    app/assets/javascripts/routes.js on lines 630..641

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 147.

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

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

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

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

    Refactorings

    Further Reading

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

    exports.new_idea_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 5 other locations - About 4 hrs to fix
    app/assets/javascripts/routes.js on lines 19..30
    app/assets/javascripts/routes.js on lines 32..43
    app/assets/javascripts/routes.js on lines 58..69
    app/assets/javascripts/routes.js on lines 97..108
    app/assets/javascripts/routes.js on lines 149..160

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

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

    exports.new_user_session_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 5 other locations - About 4 hrs to fix
    app/assets/javascripts/routes.js on lines 19..30
    app/assets/javascripts/routes.js on lines 32..43
    app/assets/javascripts/routes.js on lines 58..69
    app/assets/javascripts/routes.js on lines 71..82
    app/assets/javascripts/routes.js on lines 149..160

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

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

    exports.start_idea_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 5 other locations - About 4 hrs to fix
    app/assets/javascripts/routes.js on lines 32..43
    app/assets/javascripts/routes.js on lines 58..69
    app/assets/javascripts/routes.js on lines 71..82
    app/assets/javascripts/routes.js on lines 97..108
    app/assets/javascripts/routes.js on lines 149..160

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

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

    exports.notifications_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 5 other locations - About 4 hrs to fix
    app/assets/javascripts/routes.js on lines 19..30
    app/assets/javascripts/routes.js on lines 32..43
    app/assets/javascripts/routes.js on lines 58..69
    app/assets/javascripts/routes.js on lines 71..82
    app/assets/javascripts/routes.js on lines 97..108

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

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

    exports.discover_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 5 other locations - About 4 hrs to fix
    app/assets/javascripts/routes.js on lines 19..30
    app/assets/javascripts/routes.js on lines 58..69
    app/assets/javascripts/routes.js on lines 71..82
    app/assets/javascripts/routes.js on lines 97..108
    app/assets/javascripts/routes.js on lines 149..160

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

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

    exports.ideas_path = function(options){
      if (options && options.data) {
        var op_params = []
        for(var key in options.data){
          op_params.push([key, options.data[key]].join('='));
    Severity: Major
    Found in app/assets/javascripts/routes.js and 5 other locations - About 4 hrs to fix
    app/assets/javascripts/routes.js on lines 19..30
    app/assets/javascripts/routes.js on lines 32..43
    app/assets/javascripts/routes.js on lines 71..82
    app/assets/javascripts/routes.js on lines 97..108
    app/assets/javascripts/routes.js on lines 149..160

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

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status