Sorry, data for that comparison is no longer available.

teamdigitale/italia-app

View on GitHub
ts/features/wallet/onboarding/cobadge/screens/search/ko/CoBadgeKoSingleBankNotFound.tsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function CoBadgeKoSingleBankNotFound has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const CoBadgeKoSingleBankNotFound: React.FunctionComponent<Props> = props => {
  const { headerTitle, title, body, continueStr } = loadLocales();

  const onSearchAll = () => props.searchAll();

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

    const loadLocales = () => ({
      headerTitle: I18n.t("wallet.onboarding.coBadge.headerTitle"),
      title: I18n.t("wallet.onboarding.coBadge.search.koSingleBankNotFound.title"),
      body: I18n.t("wallet.onboarding.coBadge.search.koSingleBankNotFound.body"),
      continueStr: I18n.t("global.buttons.continue")
    ts/features/wallet/onboarding/cobadge/screens/search/ko/CoBadgeKoServiceError.tsx on lines 21..26
    ts/features/wallet/onboarding/cobadge/screens/start/ko/CoBadgeStartKoUnavailable.tsx on lines 20..25

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

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

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

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

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

    Refactorings

    Further Reading

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

            primary={{
              type: "Outline",
              buttonProps: {
                label: I18n.t("global.buttons.cancel"),
                accessibilityLabel: I18n.t("global.buttons.cancel"),
    ts/features/wallet/onboarding/bancomatPay/screens/add-account/AddBPayComponent.tsx on lines 73..80
    ts/features/wallet/onboarding/bancomatPay/screens/add-account/AddBPayComponent.tsx on lines 81..88
    ts/features/wallet/onboarding/bancomatPay/screens/searchBPay/BPayKoNotFound.tsx on lines 47..54
    ts/features/wallet/onboarding/common/searchBank/SearchStartScreen.tsx on lines 88..95
    ts/screens/wallet/payment/PickPaymentMethodScreen.tsx on lines 202..209

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

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

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

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

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

    Refactorings

    Further Reading

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

    export type Props = ReturnType<typeof mapDispatchToProps> &
      ReturnType<typeof mapStateToProps> &
      Pick<React.ComponentProps<typeof BaseScreenComponent>, "contextualHelp">;
    ts/features/wallet/onboarding/bancomatPay/screens/searchBPay/BPayKoNotFound.tsx on lines 15..17
    ts/features/wallet/onboarding/bancomatPay/screens/searchBPay/BPayKoTimeout.tsx on lines 16..18
    ts/features/wallet/onboarding/cobadge/screens/search/ko/CoBadgeKoNotFound.tsx on lines 20..22
    ts/features/wallet/onboarding/cobadge/screens/search/ko/CoBadgeKoServiceError.tsx on lines 17..19
    ts/features/wallet/onboarding/cobadge/screens/search/ko/CoBadgeKoTimeout.tsx on lines 21..23

    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

    There are no issues that match your filters.

    Category
    Status