dappros/ethora

View on GitHub

Showing 8,855 of 8,855 total issues

Function RightActions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const RightActions = (props: RightActionsProps) => {
  const {jid, leaveChat, swipeRef} = props;
  const jidWithoutConference = jid?.split('@')[0];
  const isDefaultChat = checkIsDefaultChat(jidWithoutConference);
  const {loginStore} = useStores();

Function TransactionsScreen has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const TransactionsScreen = observer(() => {
  const {walletStore, loginStore} = useStores();
  useEffect(() => {
    walletStore.fetchOwnTransactions(
      loginStore.initialData.walletAddress,
Severity: Minor
Found in client-reactnative/src/Screens/Profile/TransactionsScreen.tsx - About 1 hr to fix

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

export const presenceMessageHandler = (data) => {
    console.log('=> presenceMessageHandler || Message received from ', data.userJID, data.message);
    return sendMessage(
        data,
        messages.exampleBotMessage.helloPresence,
Severity: Major
Found in bots/botTemplate/handlers/helloMessage.js and 9 other locations - About 1 hr to fix
bots/autoResponder/handlers/help.js on lines 4..15
bots/botTemplate/handlers/help.js on lines 4..15
bots/gptBot/handlers/helloMessage.js on lines 4..13
bots/gptBot/handlers/help.js on lines 4..15
bots/raffle/handlers/botInitiate.js on lines 4..14
bots/raffle/handlers/helloMessage.js on lines 4..13
bots/raffle/handlers/help.js on lines 4..15
bots/translateBot/handlers/helloMessage.js on lines 4..13
bots/translateBot/handlers/help.js on lines 4..15

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

export const botInitiate = (data) => {
    console.log('=> botInitiate | Message received from ', data.userJID, data.message);

    return sendMessage(
        data,
Severity: Major
Found in bots/raffle/handlers/botInitiate.js and 9 other locations - About 1 hr to fix
bots/autoResponder/handlers/help.js on lines 4..15
bots/botTemplate/handlers/helloMessage.js on lines 4..13
bots/botTemplate/handlers/help.js on lines 4..15
bots/gptBot/handlers/helloMessage.js on lines 4..13
bots/gptBot/handlers/help.js on lines 4..15
bots/raffle/handlers/helloMessage.js on lines 4..13
bots/raffle/handlers/help.js on lines 4..15
bots/translateBot/handlers/helloMessage.js on lines 4..13
bots/translateBot/handlers/help.js on lines 4..15

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

export const presenceMessageHandler = (data) => {
    console.log('=> presenceMessageHandler || Message received from ', data.userJID, data.message);
    return sendMessage(
        data,
        messages.exampleBotMessage.helloPresence,
Severity: Major
Found in bots/translateBot/handlers/helloMessage.js and 9 other locations - About 1 hr to fix
bots/autoResponder/handlers/help.js on lines 4..15
bots/botTemplate/handlers/helloMessage.js on lines 4..13
bots/botTemplate/handlers/help.js on lines 4..15
bots/gptBot/handlers/helloMessage.js on lines 4..13
bots/gptBot/handlers/help.js on lines 4..15
bots/raffle/handlers/botInitiate.js on lines 4..14
bots/raffle/handlers/helloMessage.js on lines 4..13
bots/raffle/handlers/help.js on lines 4..15
bots/translateBot/handlers/help.js on lines 4..15

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

export const presenceMessageHandler = (data) => {
    console.log('=> presenceMessageHandler || Message received from ', data.userJID, data.message);
    return sendMessage(
        data,
        messages.exampleBotMessage.helloPresence,
Severity: Major
Found in bots/raffle/handlers/helloMessage.js and 9 other locations - About 1 hr to fix
bots/autoResponder/handlers/help.js on lines 4..15
bots/botTemplate/handlers/helloMessage.js on lines 4..13
bots/botTemplate/handlers/help.js on lines 4..15
bots/gptBot/handlers/helloMessage.js on lines 4..13
bots/gptBot/handlers/help.js on lines 4..15
bots/raffle/handlers/botInitiate.js on lines 4..14
bots/raffle/handlers/help.js on lines 4..15
bots/translateBot/handlers/helloMessage.js on lines 4..13
bots/translateBot/handlers/help.js on lines 4..15

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

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

export const userLimitHandler = (data) => {
    console.log('=> Message received from ', data.userJID, data.message);
    sendMessage(
        data,
        messages.exampleBotMessage.userLimit,
Severity: Major
Found in bots/botTemplate/handlers/userLimit.js and 2 other locations - About 1 hr to fix
bots/raffle/handlers/userLimit.js on lines 4..13
bots/translateBot/handlers/userLimit.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 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 10 locations. Consider refactoring.
Open

export const helpHandler = (data) => {
    console.log('=> helpHandler | Message received from ', data.userJID, data.message);

    return sendMessage(
        data,
Severity: Major
Found in bots/gptBot/handlers/help.js and 9 other locations - About 1 hr to fix
bots/autoResponder/handlers/help.js on lines 4..15
bots/botTemplate/handlers/helloMessage.js on lines 4..13
bots/botTemplate/handlers/help.js on lines 4..15
bots/gptBot/handlers/helloMessage.js on lines 4..13
bots/raffle/handlers/botInitiate.js on lines 4..14
bots/raffle/handlers/helloMessage.js on lines 4..13
bots/raffle/handlers/help.js on lines 4..15
bots/translateBot/handlers/helloMessage.js on lines 4..13
bots/translateBot/handlers/help.js on lines 4..15

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

export const helpHandler = (data) => {
    console.log('=> helpHandler | Message received from ', data.userJID, data.message);

    return sendMessage(
        data,
Severity: Major
Found in bots/botTemplate/handlers/help.js and 9 other locations - About 1 hr to fix
bots/autoResponder/handlers/help.js on lines 4..15
bots/botTemplate/handlers/helloMessage.js on lines 4..13
bots/gptBot/handlers/helloMessage.js on lines 4..13
bots/gptBot/handlers/help.js on lines 4..15
bots/raffle/handlers/botInitiate.js on lines 4..14
bots/raffle/handlers/helloMessage.js on lines 4..13
bots/raffle/handlers/help.js on lines 4..15
bots/translateBot/handlers/helloMessage.js on lines 4..13
bots/translateBot/handlers/help.js on lines 4..15

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

export const helpHandler = (data) => {
    console.log('=> helpHandler | Message received from ', data.userJID, data.message);

    return sendMessage(
        data,
Severity: Major
Found in bots/raffle/handlers/help.js and 9 other locations - About 1 hr to fix
bots/autoResponder/handlers/help.js on lines 4..15
bots/botTemplate/handlers/helloMessage.js on lines 4..13
bots/botTemplate/handlers/help.js on lines 4..15
bots/gptBot/handlers/helloMessage.js on lines 4..13
bots/gptBot/handlers/help.js on lines 4..15
bots/raffle/handlers/botInitiate.js on lines 4..14
bots/raffle/handlers/helloMessage.js on lines 4..13
bots/translateBot/handlers/helloMessage.js on lines 4..13
bots/translateBot/handlers/help.js on lines 4..15

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

export const presenceMessageHandler = (data) => {
    console.log('=> presenceMessageHandler || Message received from ', data.userJID, data.message);
    return sendMessage(
        data,
        messages.exampleBotMessage.helloPresence,
Severity: Major
Found in bots/gptBot/handlers/helloMessage.js and 9 other locations - About 1 hr to fix
bots/autoResponder/handlers/help.js on lines 4..15
bots/botTemplate/handlers/helloMessage.js on lines 4..13
bots/botTemplate/handlers/help.js on lines 4..15
bots/gptBot/handlers/help.js on lines 4..15
bots/raffle/handlers/botInitiate.js on lines 4..14
bots/raffle/handlers/helloMessage.js on lines 4..13
bots/raffle/handlers/help.js on lines 4..15
bots/translateBot/handlers/helloMessage.js on lines 4..13
bots/translateBot/handlers/help.js on lines 4..15

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

export const helpHandler = (data) => {
    console.log('=> helpHandler | Message received from ', data.userJID, data.message);

    return sendMessage(
        data,
Severity: Major
Found in bots/translateBot/handlers/help.js and 9 other locations - About 1 hr to fix
bots/autoResponder/handlers/help.js on lines 4..15
bots/botTemplate/handlers/helloMessage.js on lines 4..13
bots/botTemplate/handlers/help.js on lines 4..15
bots/gptBot/handlers/helloMessage.js on lines 4..13
bots/gptBot/handlers/help.js on lines 4..15
bots/raffle/handlers/botInitiate.js on lines 4..14
bots/raffle/handlers/helloMessage.js on lines 4..13
bots/raffle/handlers/help.js on lines 4..15
bots/translateBot/handlers/helloMessage.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 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

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

export const userLimitHandler = (data) => {
    console.log('=> Message received from ', data.userJID, data.message);
    sendMessage(
        data,
        messages.exampleBotMessage.userLimit,
Severity: Major
Found in bots/translateBot/handlers/userLimit.js and 2 other locations - About 1 hr to fix
bots/botTemplate/handlers/userLimit.js on lines 4..13
bots/raffle/handlers/userLimit.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 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 10 locations. Consider refactoring.
Open

export const helpHandler = (data) => {
    console.log('=> helpHandler | Message received from ', data.userJID, data.message);

    return sendMessage(
        data,
Severity: Major
Found in bots/autoResponder/handlers/help.js and 9 other locations - About 1 hr to fix
bots/botTemplate/handlers/helloMessage.js on lines 4..13
bots/botTemplate/handlers/help.js on lines 4..15
bots/gptBot/handlers/helloMessage.js on lines 4..13
bots/gptBot/handlers/help.js on lines 4..15
bots/raffle/handlers/botInitiate.js on lines 4..14
bots/raffle/handlers/helloMessage.js on lines 4..13
bots/raffle/handlers/help.js on lines 4..15
bots/translateBot/handlers/helloMessage.js on lines 4..13
bots/translateBot/handlers/help.js on lines 4..15

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

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

export const userLimitHandler = (data) => {
    console.log('=> Message received from ', data.userJID, data.message);
    sendMessage(
        data,
        messages.exampleBotMessage.userLimit,
Severity: Major
Found in bots/raffle/handlers/userLimit.js and 2 other locations - About 1 hr to fix
bots/botTemplate/handlers/userLimit.js on lines 4..13
bots/translateBot/handlers/userLimit.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 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 12 locations. Consider refactoring.
Open

      <Text style={styles.bodyTextStyle}>
        <Text style={{fontFamily: boldFont}}>Third-party services.</Text>{' '}
        {body46}
      </Text>
Severity: Major
Found in client-reactnative/src/components/PrivacyPolicy.tsx and 11 other locations - About 1 hr to fix
client-reactnative/src/components/PrivacyPolicy.tsx on lines 144..147
client-reactnative/src/components/PrivacyPolicy.tsx on lines 148..151
client-reactnative/src/components/PrivacyPolicy.tsx on lines 162..165
client-reactnative/src/components/PrivacyPolicy.tsx on lines 166..169
client-reactnative/src/components/PrivacyPolicy.tsx on lines 173..176
client-reactnative/src/components/PrivacyPolicy.tsx on lines 177..182
client-reactnative/src/components/PrivacyPolicy.tsx on lines 197..200
client-reactnative/src/components/PrivacyPolicy.tsx on lines 208..211
client-reactnative/src/components/PrivacyPolicy.tsx on lines 212..217
client-reactnative/src/components/PrivacyPolicy.tsx on lines 242..245
client-reactnative/src/components/PrivacyPolicy.tsx on lines 256..259

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

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

        <TouchableOpacity style={styles.searchButton} onPress={submit}>
          <Text style={{color: 'white'}}>Search</Text>
        </TouchableOpacity>
Severity: Major
Found in client-reactnative/src/Screens/System/DebugScreen.tsx and 1 other location - About 1 hr to fix
client-reactnative/src/Screens/System/DebugScreen.tsx on lines 56..58

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

      <Text style={styles.bodyTextStyle}>
        <Text style={{fontFamily: boldFont}}>Keeping Your Account Secure.</Text>{' '}
        {body44}
      </Text>
Severity: Major
Found in client-reactnative/src/components/PrivacyPolicy.tsx and 11 other locations - About 1 hr to fix
client-reactnative/src/components/PrivacyPolicy.tsx on lines 144..147
client-reactnative/src/components/PrivacyPolicy.tsx on lines 148..151
client-reactnative/src/components/PrivacyPolicy.tsx on lines 162..165
client-reactnative/src/components/PrivacyPolicy.tsx on lines 166..169
client-reactnative/src/components/PrivacyPolicy.tsx on lines 177..182
client-reactnative/src/components/PrivacyPolicy.tsx on lines 183..186
client-reactnative/src/components/PrivacyPolicy.tsx on lines 197..200
client-reactnative/src/components/PrivacyPolicy.tsx on lines 208..211
client-reactnative/src/components/PrivacyPolicy.tsx on lines 212..217
client-reactnative/src/components/PrivacyPolicy.tsx on lines 242..245
client-reactnative/src/components/PrivacyPolicy.tsx on lines 256..259

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

      <Text style={styles.bodyTextStyle}>
        <Text style={{fontFamily: boldFont}}>Managing your information.</Text>{' '}
        {body106}
      </Text>
Severity: Major
Found in client-reactnative/src/components/PrivacyPolicy.tsx and 11 other locations - About 1 hr to fix
client-reactnative/src/components/PrivacyPolicy.tsx on lines 144..147
client-reactnative/src/components/PrivacyPolicy.tsx on lines 148..151
client-reactnative/src/components/PrivacyPolicy.tsx on lines 162..165
client-reactnative/src/components/PrivacyPolicy.tsx on lines 166..169
client-reactnative/src/components/PrivacyPolicy.tsx on lines 173..176
client-reactnative/src/components/PrivacyPolicy.tsx on lines 177..182
client-reactnative/src/components/PrivacyPolicy.tsx on lines 183..186
client-reactnative/src/components/PrivacyPolicy.tsx on lines 197..200
client-reactnative/src/components/PrivacyPolicy.tsx on lines 208..211
client-reactnative/src/components/PrivacyPolicy.tsx on lines 212..217
client-reactnative/src/components/PrivacyPolicy.tsx on lines 242..245

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

      <Text style={styles.bodyTextStyle}>
        <Text style={{fontFamily: boldFont}}>
          No Access to Emergency Services.
        </Text>{' '}
        {body45}
Severity: Major
Found in client-reactnative/src/components/PrivacyPolicy.tsx and 11 other locations - About 1 hr to fix
client-reactnative/src/components/PrivacyPolicy.tsx on lines 144..147
client-reactnative/src/components/PrivacyPolicy.tsx on lines 148..151
client-reactnative/src/components/PrivacyPolicy.tsx on lines 162..165
client-reactnative/src/components/PrivacyPolicy.tsx on lines 166..169
client-reactnative/src/components/PrivacyPolicy.tsx on lines 173..176
client-reactnative/src/components/PrivacyPolicy.tsx on lines 183..186
client-reactnative/src/components/PrivacyPolicy.tsx on lines 197..200
client-reactnative/src/components/PrivacyPolicy.tsx on lines 208..211
client-reactnative/src/components/PrivacyPolicy.tsx on lines 212..217
client-reactnative/src/components/PrivacyPolicy.tsx on lines 242..245
client-reactnative/src/components/PrivacyPolicy.tsx on lines 256..259

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

Severity
Category
Status
Source
Language