Ontica/Empiria.Land.Intranet

View on GitHub
src/app/presentation/land/transaction.presentation.handler.ts

Summary

Maintainability
D
2 days
Test Coverage

Function applyEffects has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  applyEffects(effectType: EffectType, params?: any): void {

    let transactionList = null;

    switch (effectType) {
Severity: Minor
Found in src/app/presentation/land/transaction.presentation.handler.ts - About 1 hr to fix

    Function execute has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      execute<T>(command: Command): Promise<T> {
    
        switch (command.type as CommandType) {
    
          case CommandType.CREATE_TRANSACTION:
    Severity: Minor
    Found in src/app/presentation/land/transaction.presentation.handler.ts - About 1 hr to fix

      Function dispatch has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        dispatch(actionType: ActionType, params?: any): void {
          switch (actionType) {
      
            case ActionType.SELECT_TRANSACTION:
              Assertion.assertValue(params.transactionUID, 'params.transactionUID');
      Severity: Minor
      Found in src/app/presentation/land/transaction.presentation.handler.ts - About 1 hr to fix

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

              case CommandType.UPLOAD_TRANSACTION_FILE:
                return this.data.uploadTransactionMediaFile(command.payload.transactionUID,
                                                            command.payload.file,
                                                            command.payload.mediaContent).firstValue() as Promise<T>;
        src/app/presentation/land/registration.presentation.handler.ts on lines 176..179

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

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

              case CommandType.DELETE_TRANSACTION_SERVICE:
                return this.data.deleteTransactionService(command.payload.transactionUID,
                                                          command.payload.requestedServiceUID).firstValue() as Promise<T>;
        src/app/presentation/land/registration.presentation.handler.ts on lines 152..154
        src/app/presentation/land/registration.presentation.handler.ts on lines 156..158
        src/app/presentation/land/registration.presentation.handler.ts on lines 160..162
        src/app/presentation/land/registration.presentation.handler.ts on lines 164..166
        src/app/presentation/land/registration.presentation.handler.ts on lines 168..170
        src/app/presentation/land/registration.presentation.handler.ts on lines 172..174
        src/app/presentation/land/transaction.presentation.handler.ts on lines 243..245
        src/app/presentation/land/transaction.presentation.handler.ts on lines 256..258
        src/app/presentation/land/transaction.presentation.handler.ts on lines 270..272
        src/app/presentation/land/transaction.presentation.handler.ts on lines 282..284

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

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

              case CommandType.REMOVE_TRANSACTION_FILE:
                return this.data.removeTransactionMediaFile(command.payload.transactionUID,
                                                            command.payload.mediaFileUID).firstValue() as Promise<T>;
        src/app/presentation/land/registration.presentation.handler.ts on lines 152..154
        src/app/presentation/land/registration.presentation.handler.ts on lines 156..158
        src/app/presentation/land/registration.presentation.handler.ts on lines 160..162
        src/app/presentation/land/registration.presentation.handler.ts on lines 164..166
        src/app/presentation/land/registration.presentation.handler.ts on lines 168..170
        src/app/presentation/land/registration.presentation.handler.ts on lines 172..174
        src/app/presentation/land/transaction.presentation.handler.ts on lines 243..245
        src/app/presentation/land/transaction.presentation.handler.ts on lines 256..258
        src/app/presentation/land/transaction.presentation.handler.ts on lines 260..262
        src/app/presentation/land/transaction.presentation.handler.ts on lines 270..272

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

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

              case CommandType.UPDATE_TRANSACTION:
                return this.data.updateTransaction(command.payload.transactionUID,
                                                   command.payload.transaction).firstValue() as Promise<T>;
        src/app/presentation/land/registration.presentation.handler.ts on lines 152..154
        src/app/presentation/land/registration.presentation.handler.ts on lines 156..158
        src/app/presentation/land/registration.presentation.handler.ts on lines 160..162
        src/app/presentation/land/registration.presentation.handler.ts on lines 164..166
        src/app/presentation/land/registration.presentation.handler.ts on lines 168..170
        src/app/presentation/land/registration.presentation.handler.ts on lines 172..174
        src/app/presentation/land/transaction.presentation.handler.ts on lines 256..258
        src/app/presentation/land/transaction.presentation.handler.ts on lines 260..262
        src/app/presentation/land/transaction.presentation.handler.ts on lines 270..272
        src/app/presentation/land/transaction.presentation.handler.ts on lines 282..284

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

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

              case CommandType.SET_PAYMENT:
                return this.data.setPayment(command.payload.transactionUID,
                                            command.payload.payment).firstValue() as Promise<T>;
        src/app/presentation/land/registration.presentation.handler.ts on lines 152..154
        src/app/presentation/land/registration.presentation.handler.ts on lines 156..158
        src/app/presentation/land/registration.presentation.handler.ts on lines 160..162
        src/app/presentation/land/registration.presentation.handler.ts on lines 164..166
        src/app/presentation/land/registration.presentation.handler.ts on lines 168..170
        src/app/presentation/land/registration.presentation.handler.ts on lines 172..174
        src/app/presentation/land/transaction.presentation.handler.ts on lines 243..245
        src/app/presentation/land/transaction.presentation.handler.ts on lines 256..258
        src/app/presentation/land/transaction.presentation.handler.ts on lines 260..262
        src/app/presentation/land/transaction.presentation.handler.ts on lines 282..284

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

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

              case CommandType.ADD_TRANSACTION_SERVICE:
                return this.data.addTransactionService(command.payload.transactionUID,
                                                       command.payload.requestedService).firstValue() as Promise<T>;
        src/app/presentation/land/registration.presentation.handler.ts on lines 152..154
        src/app/presentation/land/registration.presentation.handler.ts on lines 156..158
        src/app/presentation/land/registration.presentation.handler.ts on lines 160..162
        src/app/presentation/land/registration.presentation.handler.ts on lines 164..166
        src/app/presentation/land/registration.presentation.handler.ts on lines 168..170
        src/app/presentation/land/registration.presentation.handler.ts on lines 172..174
        src/app/presentation/land/transaction.presentation.handler.ts on lines 243..245
        src/app/presentation/land/transaction.presentation.handler.ts on lines 260..262
        src/app/presentation/land/transaction.presentation.handler.ts on lines 270..272
        src/app/presentation/land/transaction.presentation.handler.ts on lines 282..284

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

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

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

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

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

        Refactorings

        Further Reading

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

              case CommandType.GENERATE_PAYMENT_ORDER:
                return this.data.generatePaymentOrder(command.payload.transactionUID).firstValue() as Promise<T>;
        Severity: Major
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 8 other locations - About 45 mins to fix
        src/app/presentation/land/registration.presentation.handler.ts on lines 181..182
        src/app/presentation/land/registration.presentation.handler.ts on lines 185..186
        src/app/presentation/land/transaction.presentation.handler.ts on lines 240..241
        src/app/presentation/land/transaction.presentation.handler.ts on lines 247..248
        src/app/presentation/land/transaction.presentation.handler.ts on lines 250..251
        src/app/presentation/land/transaction.presentation.handler.ts on lines 253..254
        src/app/presentation/land/transaction.presentation.handler.ts on lines 267..268
        src/app/presentation/land/transaction.presentation.handler.ts on lines 274..275

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

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

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

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

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

        Refactorings

        Further Reading

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

              case CommandType.CLONE_TRANSACTION:
                return this.data.cloneTransaction(command.payload.transactionUID).firstValue() as Promise<T>;
        Severity: Major
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 8 other locations - About 45 mins to fix
        src/app/presentation/land/registration.presentation.handler.ts on lines 181..182
        src/app/presentation/land/registration.presentation.handler.ts on lines 185..186
        src/app/presentation/land/transaction.presentation.handler.ts on lines 240..241
        src/app/presentation/land/transaction.presentation.handler.ts on lines 250..251
        src/app/presentation/land/transaction.presentation.handler.ts on lines 253..254
        src/app/presentation/land/transaction.presentation.handler.ts on lines 264..265
        src/app/presentation/land/transaction.presentation.handler.ts on lines 267..268
        src/app/presentation/land/transaction.presentation.handler.ts on lines 274..275

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

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

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

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

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

        Refactorings

        Further Reading

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

              case CommandType.CREATE_TRANSACTION:
                return this.data.createTransaction(command.payload.transaction).firstValue() as Promise<T>;
        Severity: Major
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 8 other locations - About 45 mins to fix
        src/app/presentation/land/registration.presentation.handler.ts on lines 181..182
        src/app/presentation/land/registration.presentation.handler.ts on lines 185..186
        src/app/presentation/land/transaction.presentation.handler.ts on lines 247..248
        src/app/presentation/land/transaction.presentation.handler.ts on lines 250..251
        src/app/presentation/land/transaction.presentation.handler.ts on lines 253..254
        src/app/presentation/land/transaction.presentation.handler.ts on lines 264..265
        src/app/presentation/land/transaction.presentation.handler.ts on lines 267..268
        src/app/presentation/land/transaction.presentation.handler.ts on lines 274..275

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

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

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

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

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

        Refactorings

        Further Reading

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

              case CommandType.DELETE_TRANSACTION:
                return this.data.deleteTransaction(command.payload.transactionUID).firstValue() as Promise<T>;
        Severity: Major
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 8 other locations - About 45 mins to fix
        src/app/presentation/land/registration.presentation.handler.ts on lines 181..182
        src/app/presentation/land/registration.presentation.handler.ts on lines 185..186
        src/app/presentation/land/transaction.presentation.handler.ts on lines 240..241
        src/app/presentation/land/transaction.presentation.handler.ts on lines 247..248
        src/app/presentation/land/transaction.presentation.handler.ts on lines 253..254
        src/app/presentation/land/transaction.presentation.handler.ts on lines 264..265
        src/app/presentation/land/transaction.presentation.handler.ts on lines 267..268
        src/app/presentation/land/transaction.presentation.handler.ts on lines 274..275

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

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

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

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

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

        Refactorings

        Further Reading

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

              case CommandType.SUBMIT_TRANSACTION:
                return this.data.submitTransaction(command.payload.transactionUID).firstValue() as Promise<T>;
        Severity: Major
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 8 other locations - About 45 mins to fix
        src/app/presentation/land/registration.presentation.handler.ts on lines 181..182
        src/app/presentation/land/registration.presentation.handler.ts on lines 185..186
        src/app/presentation/land/transaction.presentation.handler.ts on lines 240..241
        src/app/presentation/land/transaction.presentation.handler.ts on lines 247..248
        src/app/presentation/land/transaction.presentation.handler.ts on lines 250..251
        src/app/presentation/land/transaction.presentation.handler.ts on lines 264..265
        src/app/presentation/land/transaction.presentation.handler.ts on lines 267..268
        src/app/presentation/land/transaction.presentation.handler.ts on lines 274..275

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

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

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

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

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

        Refactorings

        Further Reading

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

              case CommandType.CANCEL_PAYMENT:
                return this.data.cancelPayment(command.payload.transactionUID).firstValue() as Promise<T>;
        Severity: Major
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 8 other locations - About 45 mins to fix
        src/app/presentation/land/registration.presentation.handler.ts on lines 181..182
        src/app/presentation/land/registration.presentation.handler.ts on lines 185..186
        src/app/presentation/land/transaction.presentation.handler.ts on lines 240..241
        src/app/presentation/land/transaction.presentation.handler.ts on lines 247..248
        src/app/presentation/land/transaction.presentation.handler.ts on lines 250..251
        src/app/presentation/land/transaction.presentation.handler.ts on lines 253..254
        src/app/presentation/land/transaction.presentation.handler.ts on lines 264..265
        src/app/presentation/land/transaction.presentation.handler.ts on lines 267..268

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

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

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

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

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

        Refactorings

        Further Reading

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

              case CommandType.CANCEL_PAYMENT_ORDER:
                return this.data.cancelPaymentOrder(command.payload.transactionUID).firstValue() as Promise<T>;
        Severity: Major
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 8 other locations - About 45 mins to fix
        src/app/presentation/land/registration.presentation.handler.ts on lines 181..182
        src/app/presentation/land/registration.presentation.handler.ts on lines 185..186
        src/app/presentation/land/transaction.presentation.handler.ts on lines 240..241
        src/app/presentation/land/transaction.presentation.handler.ts on lines 247..248
        src/app/presentation/land/transaction.presentation.handler.ts on lines 250..251
        src/app/presentation/land/transaction.presentation.handler.ts on lines 253..254
        src/app/presentation/land/transaction.presentation.handler.ts on lines 264..265
        src/app/presentation/land/transaction.presentation.handler.ts on lines 274..275

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

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

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

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

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

        Refactorings

        Further Reading

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

          constructor(private data: TransactionDataService) {
            super({
              initialState,
              selectors: SelectorType,
              effects: EffectType,
        Severity: Minor
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 1 other location - About 45 mins to fix
        src/app/presentation/land/registration.presentation.handler.ts on lines 86..94

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

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

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

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

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

        Refactorings

        Further Reading

        Similar blocks of code found in 9 locations. Consider refactoring.
        Invalid

              case SelectorType.PROVIDED_SERVICE_LIST:
                provider = () => this.data.getProvidedServices();
        
                return super.selectFirst<U>(selectorType, provider);
        Severity: Major
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 8 other locations - About 35 mins to fix
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 77..80
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 99..102
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 105..108
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 111..114
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 117..120
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 123..126
        src/app/presentation/land/transaction.presentation.handler.ts on lines 124..127
        src/app/presentation/land/transaction.presentation.handler.ts on lines 129..132

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 47.

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

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

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

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

        Refactorings

        Further Reading

        Similar blocks of code found in 9 locations. Consider refactoring.
        Invalid

              case SelectorType.AGENCY_LIST:
                provider = () => this.data.getAgencies();
        
                return super.selectFirst<U>(selectorType, provider);
        Severity: Major
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 8 other locations - About 35 mins to fix
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 77..80
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 99..102
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 105..108
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 111..114
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 117..120
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 123..126
        src/app/presentation/land/transaction.presentation.handler.ts on lines 124..127
        src/app/presentation/land/transaction.presentation.handler.ts on lines 134..137

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 47.

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

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

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

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

        Refactorings

        Further Reading

        Similar blocks of code found in 9 locations. Consider refactoring.
        Invalid

              case SelectorType.TRANSACTION_TYPE_LIST:
                provider = () => this.data.getTransactionTypes();
        
                return super.selectFirst<U>(selectorType, provider);
        Severity: Major
        Found in src/app/presentation/land/transaction.presentation.handler.ts and 8 other locations - About 35 mins to fix
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 77..80
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 99..102
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 105..108
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 111..114
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 117..120
        src/app/presentation/land/recordable-subjects.presentation.handler.ts on lines 123..126
        src/app/presentation/land/transaction.presentation.handler.ts on lines 129..132
        src/app/presentation/land/transaction.presentation.handler.ts on lines 134..137

        Duplicated Code

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

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

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

        Tuning

        This issue has a mass of 47.

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

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

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

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

        Refactorings

        Further Reading

        There are no issues that match your filters.

        Category
        Status