rimiti/g8-js-sdk

View on GitHub
src/singletons.js

Summary

Maintainability
D
2 days
Test Coverage

SDK has 22 functions (exceeds 20 allowed). Consider refactoring.
Open

export default class SDK {
  constructor(configuration) {
    this.configuration = configuration;
    this.common = Common;
  }
Severity: Minor
Found in src/singletons.js - About 2 hrs to fix

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

      get usersCommissionsRequests() {
        if (!this.usersCommissionsRequestsClass) {
          this.usersCommissionsRequestsClass = new UsersCommissionsRequests(this.configuration);
        }
        return this.usersCommissionsRequestsClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237

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

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

      get usersId() {
        if (!this.usersIdClass) {
          this.usersIdClass = new UsersId(this.configuration);
        }
        return this.usersIdClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCommissions() {
        if (!this.usersCommissionsClass) {
          this.usersCommissionsClass = new UsersCommissions(this.configuration);
        }
        return this.usersCommissionsClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersOrdersId() {
        if (!this.usersOrdersIdClass) {
          this.usersOrdersIdClass = new UsersOrdersId(this.configuration);
        }
        return this.usersOrdersIdClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersOrdersProducts() {
        if (!this.usersOrdersProductsClass) {
          this.usersOrdersProductsClass = new UsersOrdersProducts(this.configuration);
        }
        return this.usersOrdersProductsClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCompaniesUsersId() {
        if (!this.usersCompaniesUsersIdClass) {
          this.usersCompaniesUsersIdClass = new UsersCompaniesUsersId(this.configuration);
        }
        return this.usersCompaniesUsersIdClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get logins() {
        if (!this.loginsClass) {
          this.loginsClass = new Logins(this.configuration);
        }
        return this.loginsClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCompaniesId() {
        if (!this.usersCompaniesIdClass) {
          this.usersCompaniesIdClass = new UsersCompaniesId(this.configuration);
        }
        return this.usersCompaniesIdClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersOrders() {
        if (!this.usersOrdersClass) {
          this.usersOrdersClass = new UsersOrders(this.configuration);
        }
        return this.usersOrdersClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCompaniesOrdersInvoices() {
        if (!this.usersCompaniesOrdersInvoicesClass) {
          this.usersCompaniesOrdersInvoicesClass = new UsersCompaniesOrdersInvoices(this.configuration);
        }
        return this.usersCompaniesOrdersInvoicesClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 243..248

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

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

      get users() {
        if (!this.usersClass) {
          this.usersClass = new Users(this.configuration);
        }
        return this.usersClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCompaniesPaymentMethodsId() {
        if (!this.usersCompaniesPaymentMethodsIdClass) {
          this.usersCompaniesPaymentMethodsIdClass = new UsersCompaniesPaymentMethodsId(this.configuration);
        }
        return this.usersCompaniesPaymentMethodsIdClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCompanies() {
        if (!this.usersCompaniesClass) {
          this.usersCompaniesClass = new UsersCompanies(this.configuration);
        }
        return this.usersCompaniesClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCompaniesMarketplace() {
        if (!this.usersCompaniesMarketplaceClass) {
          this.usersCompaniesMarketplaceClass = new UsersCompaniesMarketplace(this.configuration);
        }
        return this.usersCompaniesMarketplaceClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCompaniesUsers() {
        if (!this.usersCompaniesUsersClass) {
          this.usersCompaniesUsersClass = new UsersCompaniesUsers(this.configuration);
        }
        return this.usersCompaniesUsersClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCompaniesPaymentMethods() {
        if (!this.usersCompaniesPaymentMethodsClass) {
          this.usersCompaniesPaymentMethodsClass = new UsersCompaniesPaymentMethods(this.configuration);
        }
        return this.usersCompaniesPaymentMethodsClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersDevicesPositions() {
        if (!this.usersDevicesPositionsClass) {
          this.usersDevicesPositionsClass = new UsersDevicesPositions(this.configuration);
        }
        return this.usersDevicesPositionsClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCompaniesOrdersId() {
        if (!this.usersCompaniesOrdersIdClass) {
          this.usersCompaniesOrdersIdClass = new UsersCompaniesOrdersId(this.configuration);
        }
        return this.usersCompaniesOrdersIdClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get passwords() {
        if (!this.passwordsClass) {
          this.passwordsClass = new Passwords(this.configuration);
        }
        return this.passwordsClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 210..215
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

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

      get usersCompaniesOrders() {
        if (!this.usersCompaniesOrdersClass) {
          this.usersCompaniesOrdersClass = new UsersCompaniesOrders(this.configuration);
        }
        return this.usersCompaniesOrdersClass;
    Severity: Major
    Found in src/singletons.js and 19 other locations - About 50 mins to fix
    src/singletons.js on lines 34..39
    src/singletons.js on lines 45..50
    src/singletons.js on lines 56..61
    src/singletons.js on lines 67..72
    src/singletons.js on lines 78..83
    src/singletons.js on lines 89..94
    src/singletons.js on lines 100..105
    src/singletons.js on lines 111..116
    src/singletons.js on lines 122..127
    src/singletons.js on lines 133..138
    src/singletons.js on lines 144..149
    src/singletons.js on lines 155..160
    src/singletons.js on lines 166..171
    src/singletons.js on lines 177..182
    src/singletons.js on lines 188..193
    src/singletons.js on lines 199..204
    src/singletons.js on lines 221..226
    src/singletons.js on lines 232..237
    src/singletons.js on lines 243..248

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

    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