dappros/ethora

View on GitHub

Showing 8,855 of 8,855 total issues

Function router has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

const router = (handlerData) => {
    handlerData.userStep = userSteps('getStep', handlerData.userJID);

    if (messageCheck(handlerData.message, 'close') || messageCheck(handlerData.message, 'leave')) {
        return leaveHandler(handlerData);
Severity: Minor
Found in bots/gptBot/router.js - About 55 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function generateMessage has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

const generateMessage = (data, message, isSystemMessage) => {
    let userName;
    let finalMessage;

    //Getting username
Severity: Minor
Found in bots/autoResponder/actions.js - About 55 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function Signon has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

export default function Signon() {
  const setUser = useStoreState((state) => state.setUser);
  const user = useStoreState((state) => state.user);
  const query = useQuery();
  const history = useHistory();
Severity: Minor
Found in client-web/src/pages/Signon/index.tsx - About 55 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function getPartsInterval has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

const getPartsInterval = (
  parts: Part[],
  cursor: number,
  count: number,
): Part[] => {
Severity: Minor
Found in client-reactnative/src/helpers/chat/inputUtils.ts - About 55 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function transferTokens has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

  async transferTokens(
    bodyData: any,
    token: string,
    fromWallet: string,
    senderName: string,
Severity: Minor
Found in client-reactnative/src/stores/walletStore.ts - About 55 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function mapTransactions has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

export const mapTransactions = (item: any, walletAddress: string) => {
  if (item.tokenId === 'NFT') {
    if (item.from === walletAddress && item.from !== item.to) {
      item.balance = item.senderBalance + '/' + item.nftTotal;
    } else {
Severity: Minor
Found in client-reactnative/src/stores/walletStore.ts - About 55 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function getPushToken has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

export const getPushToken = async (
  walletAddress: string,
  DOMAIN: string,
  defaultUrl: string,
  navigation: HomeStackNavigationProp,
Severity: Minor
Found in client-reactnative/src/helpers/pushNotifications.ts - About 55 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function ProfileShareManage has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

export const ProfileShareManage: React.FC<IProfileShareManage> = ({
  onAddPress,
}) => {
  const [sharedLinks, setSharedLinks] = useState<ISharedLink[]>([]);
  const {loginStore, apiStore} = useStores();
Severity: Minor
Found in client-reactnative/src/Screens/Privacy/ProfileShareManage.tsx - About 55 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function DocumentShareManage has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

export const DocumentShareManage: React.FC<IDocumentShareManage> = ({
  onAddPress,
}) => {
  const [sharedLinks, setSharedLinks] = useState<ISharedLink[]>([]);
  const {loginStore} = useStores();
Severity: Minor
Found in client-reactnative/src/Screens/Privacy/DocumentShareManage.tsx - About 55 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

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

export const requestError = (data, request, error) =>{
    console.log(request+' || Error: ', error);
    return sendMessage(
        data,
        messages.errors.requestError,
Severity: Major
Found in bots/autoResponder/handlers/errors.js and 5 other locations - About 55 mins to fix
bots/botTemplate/handlers/errors.js on lines 4..13
bots/gptBot/handlers/errors.js on lines 4..13
bots/merchantBot/handlers/errors.js on lines 4..13
bots/raffle/handlers/errors.js on lines 4..13
bots/translateBot/handlers/errors.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 53.

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

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

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

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

Refactorings

Further Reading

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

export const requestError = (data, request, error) =>{
    console.log(request+' || Error: ', error);
    return sendMessage(
        data,
        messages.errors.requestError,
Severity: Major
Found in bots/botTemplate/handlers/errors.js and 5 other locations - About 55 mins to fix
bots/autoResponder/handlers/errors.js on lines 4..13
bots/gptBot/handlers/errors.js on lines 4..13
bots/merchantBot/handlers/errors.js on lines 4..13
bots/raffle/handlers/errors.js on lines 4..13
bots/translateBot/handlers/errors.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 53.

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

    data.xmpp.send(xml('message', {
        to: data.stanzaId ? data.stanzaId.attrs.by : data.receiver,
        type: data.receiverData ? 'groupchat' : type,
        id: "sendMessage"
    }, xml('data', {
Severity: Minor
Found in bots/huthut/actions.js and 1 other location - About 55 mins to fix
bots/questionnaire/actions.js on lines 9..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 53.

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

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

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

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

Refactorings

Further Reading

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

export const requestError = (data, request, error) =>{
    console.log(request+' || Error: ', error);
    return sendMessage(
        data,
        messages.errors.requestError,
Severity: Major
Found in bots/gptBot/handlers/errors.js and 5 other locations - About 55 mins to fix
bots/autoResponder/handlers/errors.js on lines 4..13
bots/botTemplate/handlers/errors.js on lines 4..13
bots/merchantBot/handlers/errors.js on lines 4..13
bots/raffle/handlers/errors.js on lines 4..13
bots/translateBot/handlers/errors.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 53.

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

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

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

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

Refactorings

Further Reading

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

export const requestError = (data, request, error) =>{
    console.log(request+' || Error: ', error);
    return sendMessage(
        data,
        messages.errors.requestError,
Severity: Major
Found in bots/merchantBot/handlers/errors.js and 5 other locations - About 55 mins to fix
bots/autoResponder/handlers/errors.js on lines 4..13
bots/botTemplate/handlers/errors.js on lines 4..13
bots/gptBot/handlers/errors.js on lines 4..13
bots/raffle/handlers/errors.js on lines 4..13
bots/translateBot/handlers/errors.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 53.

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

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

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

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

Refactorings

Further Reading

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

export const requestError = (data, request, error) =>{
    console.log(request+' || Error: ', error);
    return sendMessage(
        data,
        messages.errors.requestError,
Severity: Major
Found in bots/translateBot/handlers/errors.js and 5 other locations - About 55 mins to fix
bots/autoResponder/handlers/errors.js on lines 4..13
bots/botTemplate/handlers/errors.js on lines 4..13
bots/gptBot/handlers/errors.js on lines 4..13
bots/merchantBot/handlers/errors.js on lines 4..13
bots/raffle/handlers/errors.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 53.

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

    data.xmpp.send(xml('message', {
        to: data.stanzaId ? data.stanzaId.attrs.by : data.receiver,
        type: data.receiverData ? 'groupchat' : type,
        id: "sendMessage"
    }, xml('data', {
Severity: Minor
Found in bots/questionnaire/actions.js and 1 other location - About 55 mins to fix
bots/huthut/actions.js on lines 11..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 53.

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

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

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

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

Refactorings

Further Reading

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

export const requestError = (data, request, error) =>{
    console.log(request+' || Error: ', error);
    return sendMessage(
        data,
        messages.errors.requestError,
Severity: Major
Found in bots/raffle/handlers/errors.js and 5 other locations - About 55 mins to fix
bots/autoResponder/handlers/errors.js on lines 4..13
bots/botTemplate/handlers/errors.js on lines 4..13
bots/gptBot/handlers/errors.js on lines 4..13
bots/merchantBot/handlers/errors.js on lines 4..13
bots/translateBot/handlers/errors.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 53.

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

      <Text style={styles.bodyTextStyle}>
        <Text style={{fontFamily: boldFont}}>Harm to Ethora.</Text> {body43}
      </Text>
Severity: Major
Found in client-reactnative/src/components/PrivacyPolicy.tsx and 12 other locations - About 55 mins to fix
client-reactnative/src/components/PrivacyPolicy.tsx on lines 141..143
client-reactnative/src/components/PrivacyPolicy.tsx on lines 152..154
client-reactnative/src/components/PrivacyPolicy.tsx on lines 155..157
client-reactnative/src/components/PrivacyPolicy.tsx on lines 191..193
client-reactnative/src/components/PrivacyPolicy.tsx on lines 194..196
client-reactnative/src/components/PrivacyPolicy.tsx on lines 205..207
client-reactnative/src/components/PrivacyPolicy.tsx on lines 222..224
client-reactnative/src/components/PrivacyPolicy.tsx on lines 225..227
client-reactnative/src/components/PrivacyPolicy.tsx on lines 246..248
client-reactnative/src/components/PrivacyPolicy.tsx on lines 250..252
client-reactnative/src/components/PrivacyPolicy.tsx on lines 253..255
client-reactnative/src/components/PrivacyPolicy.tsx on lines 264..266

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

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

      <Text style={styles.bodyTextStyle}>
        <Text style={{fontFamily: boldFont}}>Your Rights.</Text> {body51}
      </Text>
Severity: Major
Found in client-reactnative/src/components/PrivacyPolicy.tsx and 12 other locations - About 55 mins to fix
client-reactnative/src/components/PrivacyPolicy.tsx on lines 141..143
client-reactnative/src/components/PrivacyPolicy.tsx on lines 152..154
client-reactnative/src/components/PrivacyPolicy.tsx on lines 155..157
client-reactnative/src/components/PrivacyPolicy.tsx on lines 170..172
client-reactnative/src/components/PrivacyPolicy.tsx on lines 194..196
client-reactnative/src/components/PrivacyPolicy.tsx on lines 205..207
client-reactnative/src/components/PrivacyPolicy.tsx on lines 222..224
client-reactnative/src/components/PrivacyPolicy.tsx on lines 225..227
client-reactnative/src/components/PrivacyPolicy.tsx on lines 246..248
client-reactnative/src/components/PrivacyPolicy.tsx on lines 250..252
client-reactnative/src/components/PrivacyPolicy.tsx on lines 253..255
client-reactnative/src/components/PrivacyPolicy.tsx on lines 264..266

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

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

      <Text style={styles.bodyTextStyle}>
        <Text style={{fontFamily: boldFont}}>Disclaimers.</Text> {body61}
      </Text>
Severity: Major
Found in client-reactnative/src/components/PrivacyPolicy.tsx and 12 other locations - About 55 mins to fix
client-reactnative/src/components/PrivacyPolicy.tsx on lines 141..143
client-reactnative/src/components/PrivacyPolicy.tsx on lines 152..154
client-reactnative/src/components/PrivacyPolicy.tsx on lines 155..157
client-reactnative/src/components/PrivacyPolicy.tsx on lines 170..172
client-reactnative/src/components/PrivacyPolicy.tsx on lines 191..193
client-reactnative/src/components/PrivacyPolicy.tsx on lines 194..196
client-reactnative/src/components/PrivacyPolicy.tsx on lines 222..224
client-reactnative/src/components/PrivacyPolicy.tsx on lines 225..227
client-reactnative/src/components/PrivacyPolicy.tsx on lines 246..248
client-reactnative/src/components/PrivacyPolicy.tsx on lines 250..252
client-reactnative/src/components/PrivacyPolicy.tsx on lines 253..255
client-reactnative/src/components/PrivacyPolicy.tsx on lines 264..266

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

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