teamdigitale/italia-app

View on GitHub
ts/store/actions/navigation.ts

Summary

Maintainability
F
5 days
Test Coverage

File navigation.ts has 345 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { CommonActions } from "@react-navigation/native";
import { CreditCardDetailScreenNavigationParams } from "../../features/wallet/creditCard/screen/CreditCardDetailScreen";
import NavigationService from "../../navigation/NavigationService";
import ROUTES from "../../navigation/routes";
import { CieCardReaderScreenNavigationParams } from "../../screens/authentication/cie/CieCardReaderScreen";
Severity: Minor
Found in ts/store/actions/navigation.ts - About 4 hrs to fix

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

    export const navigateToCobadgeDetailScreen = (
      cobadge: CreditCardPaymentMethod
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 1 other location - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 309..315

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

    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

    export const navigateToBPayDetailScreen = (bPay: BPayPaymentMethod) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
          screen: ROUTES.WALLET_BPAY_DETAIL,
          params: { bPay }
    Severity: Major
    Found in ts/store/actions/navigation.ts and 1 other location - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 320..328

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

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

    export const navigateToPrivacyScreen = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.PROFILE_NAVIGATOR, {
          screen: ROUTES.PROFILE_PRIVACY_MAIN,
          params: {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 3 other locations - About 1 hr to fix
    ts/features/wallet/onboarding/bancomatPay/navigation/action.ts on lines 10..18
    ts/features/wallet/onboarding/bancomatPay/navigation/action.ts on lines 24..32
    ts/features/wallet/onboarding/cobadge/navigation/action.ts on lines 28..36

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

    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

    export const navigateToPaymentOutcomeCode = (
      params: PaymentOutcomeCodeMessageNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 1 other location - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 105..113

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

    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

    export const navigateToServicesPreferenceModeSelectionScreen = (
      params: OnboardingServicesPreferenceScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.ONBOARDING, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 1 other location - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 461..469

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

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

    export const navigateToPaymentManualDataInsertion = (
      params?: ManualDataInsertionScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToPaymentHistoryDetail = (
      params: PaymentHistoryDetailsScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToAddCreditCardOutcomeCode = (
      params: AddCreditCardOutcomeCodeMessageNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToCreditCardDetailScreen = (
      params: CreditCardDetailScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToWalletConfirmCardDetails = (
      params: ConfirmCardDetailsScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToPaymentTransactionErrorScreen = (
      params: TransactionErrorScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToPaymentConfirmPaymentMethodScreen = (
      params: ConfirmPaymentMethodScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToTransactionDetailsScreen = (
      params: TransactionDetailsScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToCieCardReaderScreen = (
      params?: CieCardReaderScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.AUTHENTICATION, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456

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

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

    export const navigateToPaymentPickPaymentMethodScreen = (
      params: PickPaymentMethodScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToCreditCardOnboardingAttempt = (
      params: CreditCardOnboardingAttemptDetailScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToPaymentPickPspScreen = (
      params: PickPspScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToWalletAddPaymentMethod = (
      params: AddPaymentMethodScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToWalletAddCreditCard = (
      params: AddCardScreenNavigationParams
    ) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.WALLET_NAVIGATOR, {
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 385..391
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

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

    export const navigateToWalletHome = (params?: WalletHomeNavigationParams) =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.MAIN, {
          screen: ROUTES.WALLET_HOME,
          params
    Severity: Major
    Found in ts/store/actions/navigation.ts and 14 other locations - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 239..247
    ts/store/actions/navigation.ts on lines 252..260
    ts/store/actions/navigation.ts on lines 265..273
    ts/store/actions/navigation.ts on lines 278..286
    ts/store/actions/navigation.ts on lines 333..341
    ts/store/actions/navigation.ts on lines 346..354
    ts/store/actions/navigation.ts on lines 359..367
    ts/store/actions/navigation.ts on lines 372..380
    ts/store/actions/navigation.ts on lines 396..404
    ts/store/actions/navigation.ts on lines 409..417
    ts/store/actions/navigation.ts on lines 422..430
    ts/store/actions/navigation.ts on lines 435..443
    ts/store/actions/navigation.ts on lines 448..456
    ts/store/actions/navigation.ts on lines 498..506

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

    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

    export const resetToAuthenticationRoute = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.reset({
          index: 0,
          routes: [{ name: ROUTES.AUTHENTICATION }]
    Severity: Major
    Found in ts/store/actions/navigation.ts and 1 other location - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 44..50

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

    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

    export const navigateToMainNavigatorAction = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.reset({
          index: 0,
          routes: [{ name: ROUTES.MAIN }]
    Severity: Major
    Found in ts/store/actions/navigation.ts and 1 other location - About 1 hr to fix
    ts/store/actions/navigation.ts on lines 33..39

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

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

    export const navigateToSPIDTestIDP = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.AUTHENTICATION, {
          screen: ROUTES.AUTHENTICATION_IDP_TEST
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 3 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 65..70
    ts/store/actions/navigation.ts on lines 139..144
    ts/store/actions/navigation.ts on lines 478..483

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 49.

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

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

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

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

    Refactorings

    Further Reading

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

    export const navigateToIdpSelectionScreenAction = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.AUTHENTICATION, {
          screen: ROUTES.AUTHENTICATION_IDP_SELECTION
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 3 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 139..144
    ts/store/actions/navigation.ts on lines 478..483
    ts/store/actions/navigation.ts on lines 522..527

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 49.

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

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

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

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

    Refactorings

    Further Reading

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

    export const navigateToEmailForwardingPreferenceScreen = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.PROFILE_NAVIGATOR, {
          screen: ROUTES.PROFILE_PREFERENCES_EMAIL_FORWARDING
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 3 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 65..70
    ts/store/actions/navigation.ts on lines 478..483
    ts/store/actions/navigation.ts on lines 522..527

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 49.

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

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

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

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

    Refactorings

    Further Reading

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

    export const navigateToCieInvalidScreen = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.AUTHENTICATION, {
          screen: ROUTES.CIE_EXPIRED_SCREEN
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 3 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 65..70
    ts/store/actions/navigation.ts on lines 139..144
    ts/store/actions/navigation.ts on lines 522..527

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 49.

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

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

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

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

    Refactorings

    Further Reading

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

    export const navigateToCalendarPreferenceScreen = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.PROFILE_NAVIGATOR, {
          screen: ROUTES.PROFILE_PREFERENCES_CALENDAR
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 8 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 75..80
    ts/store/actions/navigation.ts on lines 85..90
    ts/store/actions/navigation.ts on lines 95..100
    ts/store/actions/navigation.ts on lines 159..164
    ts/store/actions/navigation.ts on lines 169..174
    ts/store/actions/navigation.ts on lines 179..184
    ts/store/actions/navigation.ts on lines 189..194
    ts/store/actions/navigation.ts on lines 488..493

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

    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

    export const navigateToLanguagePreferenceScreen = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.PROFILE_NAVIGATOR, {
          screen: ROUTES.PROFILE_PREFERENCES_LANGUAGE
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 8 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 75..80
    ts/store/actions/navigation.ts on lines 85..90
    ts/store/actions/navigation.ts on lines 95..100
    ts/store/actions/navigation.ts on lines 149..154
    ts/store/actions/navigation.ts on lines 169..174
    ts/store/actions/navigation.ts on lines 179..184
    ts/store/actions/navigation.ts on lines 189..194
    ts/store/actions/navigation.ts on lines 488..493

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

    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

    export const navigateToRemoveAccountDetailScreen = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.PROFILE_NAVIGATOR, {
          screen: ROUTES.PROFILE_REMOVE_ACCOUNT_DETAILS
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 8 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 75..80
    ts/store/actions/navigation.ts on lines 85..90
    ts/store/actions/navigation.ts on lines 95..100
    ts/store/actions/navigation.ts on lines 149..154
    ts/store/actions/navigation.ts on lines 159..164
    ts/store/actions/navigation.ts on lines 169..174
    ts/store/actions/navigation.ts on lines 179..184
    ts/store/actions/navigation.ts on lines 488..493

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

    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

    export const navigateToOnboardingPinScreenAction = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.ONBOARDING, {
          screen: ROUTES.ONBOARDING_PIN
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 8 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 85..90
    ts/store/actions/navigation.ts on lines 95..100
    ts/store/actions/navigation.ts on lines 149..154
    ts/store/actions/navigation.ts on lines 159..164
    ts/store/actions/navigation.ts on lines 169..174
    ts/store/actions/navigation.ts on lines 179..184
    ts/store/actions/navigation.ts on lines 189..194
    ts/store/actions/navigation.ts on lines 488..493

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

    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

    export const navigateToCiePinScreen = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.AUTHENTICATION, {
          screen: ROUTES.CIE_PIN_SCREEN
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 8 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 75..80
    ts/store/actions/navigation.ts on lines 85..90
    ts/store/actions/navigation.ts on lines 95..100
    ts/store/actions/navigation.ts on lines 149..154
    ts/store/actions/navigation.ts on lines 159..164
    ts/store/actions/navigation.ts on lines 169..174
    ts/store/actions/navigation.ts on lines 179..184
    ts/store/actions/navigation.ts on lines 189..194

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

    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

    export const navigateToRemoveAccountSuccess = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.PROFILE_NAVIGATOR, {
          screen: ROUTES.PROFILE_REMOVE_ACCOUNT_SUCCESS
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 8 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 75..80
    ts/store/actions/navigation.ts on lines 85..90
    ts/store/actions/navigation.ts on lines 95..100
    ts/store/actions/navigation.ts on lines 149..154
    ts/store/actions/navigation.ts on lines 159..164
    ts/store/actions/navigation.ts on lines 169..174
    ts/store/actions/navigation.ts on lines 189..194
    ts/store/actions/navigation.ts on lines 488..493

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

    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

    export const navigateToLogout = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.PROFILE_NAVIGATOR, {
          screen: ROUTES.PROFILE_LOGOUT
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 8 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 75..80
    ts/store/actions/navigation.ts on lines 85..90
    ts/store/actions/navigation.ts on lines 95..100
    ts/store/actions/navigation.ts on lines 149..154
    ts/store/actions/navigation.ts on lines 159..164
    ts/store/actions/navigation.ts on lines 179..184
    ts/store/actions/navigation.ts on lines 189..194
    ts/store/actions/navigation.ts on lines 488..493

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

    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

    export const navigateToOnboardingServicePreferenceCompleteAction = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.ONBOARDING, {
          screen: ROUTES.ONBOARDING_SERVICES_PREFERENCE_COMPLETE
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 8 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 75..80
    ts/store/actions/navigation.ts on lines 85..90
    ts/store/actions/navigation.ts on lines 149..154
    ts/store/actions/navigation.ts on lines 159..164
    ts/store/actions/navigation.ts on lines 169..174
    ts/store/actions/navigation.ts on lines 179..184
    ts/store/actions/navigation.ts on lines 189..194
    ts/store/actions/navigation.ts on lines 488..493

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

    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

    export const navigateToTosScreen = () =>
      NavigationService.dispatchNavigationAction(
        CommonActions.navigate(ROUTES.ONBOARDING, {
          screen: ROUTES.ONBOARDING_TOS
        })
    Severity: Major
    Found in ts/store/actions/navigation.ts and 8 other locations - About 40 mins to fix
    ts/store/actions/navigation.ts on lines 75..80
    ts/store/actions/navigation.ts on lines 95..100
    ts/store/actions/navigation.ts on lines 149..154
    ts/store/actions/navigation.ts on lines 159..164
    ts/store/actions/navigation.ts on lines 169..174
    ts/store/actions/navigation.ts on lines 179..184
    ts/store/actions/navigation.ts on lines 189..194
    ts/store/actions/navigation.ts on lines 488..493

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

    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