dappros/ethora

View on GitHub

Showing 8,855 of 8,855 total issues

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

      <Text style={styles.bodyTextStyle}>
        <Text style={{fontFamily: boldFont}}>Account Registration.</Text>{' '}
        {body32}
      </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 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
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}}>Privacy of user data.</Text>{' '}
        {body33}
      </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 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
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}}>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

function firstLetersFromName(fN: string, lN: string) {
  return `${fN[0].toUpperCase()}${lN[0].toUpperCase()}`;
}
Severity: Major
Found in client-web/src/components/AppTopNavOwner.tsx and 1 other location - About 1 hr to fix
client-web/src/components/AppTopNav.tsx on lines 27..29

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}}>Our Terms and Policies.</Text>{' '}
        {body41}
      </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 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
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}}>
          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

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

      <Text style={styles.bodyTextStyle}>
        <Text style={{fontFamily: boldFont}}>Limitation of liability.</Text>{' '}
        {body62}
      </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 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 123..125

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}}>Account Information.</Text>{' '}
        {body101}
      </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 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

function firstLetersFromName(fN: string, lN: string) {
  return `${fN[0].toUpperCase()}${lN[0].toUpperCase()}`;
}
Severity: Major
Found in client-web/src/components/AppTopNav.tsx and 1 other location - About 1 hr to fix
client-web/src/components/AppTopNavOwner.tsx on lines 23..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 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

      const xmlMsg = xml(
        "presence",
        {
          from: jid.toString(),
          to: `${room}/${jid.getLocal()}`,
Severity: Major
Found in bots/exportToUSDC/src/index.exportToUSDC.ts and 1 other location - About 1 hr to fix
bots/createBot/src/index.create.ts on lines 206..213

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

            <TouchableWithoutFeedback onPress={onAssetPress}>
              <AntIcon
                name={'playcircleo'}
                color={commonColors.primaryColor}
                size={hp('5%')}
client-reactnative/src/components/Transactions/NftListItem.tsx on lines 156..162

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

                  <View style={styles.playButton}>
                    <AntIcon
                      name={'playcircleo'}
                      color={'white'}
                      size={hp('5%')}
client-reactnative/src/Screens/Profile/NftItemHistoryScreen.tsx on lines 156..162

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

      const xmlMsg = xml(
        'presence',
        {
          from: jid.toString(),
          to: `${room}/${jid.getLocal()}`,
Severity: Major
Found in bots/createBot/src/index.create.ts and 1 other location - About 1 hr to fix
bots/exportToUSDC/src/index.exportToUSDC.ts on lines 222..229

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

                    <View style={styles.videoPlayButton}>
                      <AntIcon
                        name={'playcircleo'}
                        color={'white'}
                        size={hp('5%')}
client-reactnative/src/Screens/Profile/DocumentHistoryScreen.tsx on lines 153..159

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

      <HomeStack.Screen
        name={'OtherUserProfileScreen'}
        //@ts-ignore
        component={OtherUserProfileScreen}
        options={() => ({
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 1 other location - About 1 hr to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 294..301

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

            {isSameUser&&
              <Button
                style={{
                  margin: "10px 0px 0px 0px",
                }}
Severity: Major
Found in client-web/src/components/Chat/ChatTransferDialog.tsx and 1 other location - About 1 hr to fix
client-web/src/components/Chat/ChatTransferDialog.tsx on lines 287..298

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

  const message = xml(
    'iq',
    {
      from: walletAddress + '@' + DOMAIN,
      to: chat_jid,
Severity: Major
Found in client-reactnative/src/xmpp/stanzas.ts and 1 other location - About 1 hr to fix
client-reactnative/src/xmpp/stanzas.ts on lines 583..594

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

              <NativeSelect
                inputProps={{
                  name: "transferAmount",
                  id: "uncontrolled-native",
                }}
Severity: Major
Found in client-web/src/pages/Profile/TransferItemsModal.tsx and 1 other location - About 1 hr to fix
client-web/src/pages/Owner/NewUserModal.tsx on lines 125..141

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