dappros/ethora

View on GitHub

Showing 8,855 of 8,855 total issues

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

export const testHandler = (data) => {
    console.log('=> Message received from ', data.receiver, data.message);
    sendMessage(
        data,
        messages.testMessage,
Severity: Major
Found in bots/huthut/handlers/test.js and 5 other locations - About 50 mins to fix
bots/botTemplate/handlers/test.js on lines 4..13
bots/merchantBot/handlers/test.js on lines 4..13
bots/questionnaire/handlers/test.js on lines 4..13
bots/raffle/handlers/test.js on lines 4..13
bots/translateBot/handlers/test.js on lines 4..13

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

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

export const testHandler = (data) => {
    console.log('=> Message received from ', data.userJID, data.message);
    sendMessage(
        data,
        messages.testMessage,
Severity: Major
Found in bots/raffle/handlers/test.js and 5 other locations - About 50 mins to fix
bots/botTemplate/handlers/test.js on lines 4..13
bots/huthut/handlers/test.js on lines 4..13
bots/merchantBot/handlers/test.js on lines 4..13
bots/questionnaire/handlers/test.js on lines 4..13
bots/translateBot/handlers/test.js on lines 4..13

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

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

export const testHandler = (data) => {
    console.log('=> Message received from ', data.userJID, data.message);
    sendMessage(
        data,
        messages.testMessage,
Severity: Major
Found in bots/merchantBot/handlers/test.js and 5 other locations - About 50 mins to fix
bots/botTemplate/handlers/test.js on lines 4..13
bots/huthut/handlers/test.js on lines 4..13
bots/questionnaire/handlers/test.js on lines 4..13
bots/raffle/handlers/test.js on lines 4..13
bots/translateBot/handlers/test.js on lines 4..13

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

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

export const testHandler = (data) => {
    console.log('=> Message received from ', data.receiver, data.message);
    sendMessage(
        data,
        messages.testMessage,
Severity: Major
Found in bots/questionnaire/handlers/test.js and 5 other locations - About 50 mins to fix
bots/botTemplate/handlers/test.js on lines 4..13
bots/huthut/handlers/test.js on lines 4..13
bots/merchantBot/handlers/test.js on lines 4..13
bots/raffle/handlers/test.js on lines 4..13
bots/translateBot/handlers/test.js on lines 4..13

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

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

export const testHandler = (data) => {
    console.log('=> Message received from ', data.userJID, data.message);
    sendMessage(
        data,
        messages.testMessage,
Severity: Major
Found in bots/translateBot/handlers/test.js and 5 other locations - About 50 mins to fix
bots/botTemplate/handlers/test.js on lines 4..13
bots/huthut/handlers/test.js on lines 4..13
bots/merchantBot/handlers/test.js on lines 4..13
bots/questionnaire/handlers/test.js on lines 4..13
bots/raffle/handlers/test.js on lines 4..13

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

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

export const testHandler = (data) => {
    console.log('=> Message received from ', data.userJID, data.message);
    sendMessage(
        data,
        messages.testMessage,
Severity: Major
Found in bots/botTemplate/handlers/test.js and 5 other locations - About 50 mins to fix
bots/huthut/handlers/test.js on lines 4..13
bots/merchantBot/handlers/test.js on lines 4..13
bots/questionnaire/handlers/test.js on lines 4..13
bots/raffle/handlers/test.js on lines 4..13
bots/translateBot/handlers/test.js on lines 4..13

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

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

  const onLogout = () => {
    clearUser();
    xmpp.stop();
    if (active) {
      deactivate();
Severity: Minor
Found in client-web/src/components/Menu.tsx and 1 other location - About 50 mins to fix
client-web/src/pages/Privacy/ManageData.tsx on lines 40..47

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

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

      <HomeStack.Screen
        name={'DebugScreen'}
        component={DebugScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

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

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

        <>
          <Typography variant="h6" style={{ margin: "16px" }}>
            Transactions
          </Typography>
          <Transactions transactions={transactions.items} />
Severity: Minor
Found in client-web/src/pages/Profile/OtherProfile.tsx and 1 other location - About 50 mins to fix
client-web/src/pages/Profile/MyProfile.tsx on lines 110..115

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

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

      <HomeStack.Screen
        name={'NewChatScreen'}
        component={NewChatScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

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

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

        <Box>
          <Typography variant="h6" style={{ margin: "16px" }}>
            Transactions
          </Typography>
          <Transactions transactions={transactions.items} />
Severity: Minor
Found in client-web/src/pages/Profile/MyProfile.tsx and 1 other location - About 50 mins to fix
client-web/src/pages/Profile/OtherProfile.tsx on lines 97..102

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

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

      <HomeStack.Screen
        name={'ChatScreen'}
        component={ChatScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

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

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

      <HomeStack.Screen
        name={'TransactionsScreen'}
        component={TransactionsScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

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

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

      <HomeStack.Screen
        name={'AccountScreen'}
        component={AccountScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

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

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

      <HomeStack.Screen
        name={'CoinPurchaseScreen'}
        component={CoinPurchaseScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

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

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

      <HomeStack.Screen
        name={'AuthenticationScreen'}
        component={AuthenticationScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324

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

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

      <HomeStack.Screen
        name={'MintScreen'}
        component={MintScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

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

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

      <HomeStack.Screen
        name={'PrivacyAndDataScreen'}
        component={PrivacyAndDataScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

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

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

      <HomeStack.Screen
        name={'RoomsListScreem'}
        component={RoomListScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

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

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

      <HomeStack.Screen
        name={'ScanScreen'}
        component={ScanScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

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

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

Severity
Category
Status
Source
Language