eduardomoroni/trading-card-manager

View on GitHub

Showing 244 of 244 total issues

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

export interface SubTypePromise extends Promise<SubType>, Fragmentable {
  id: () => Promise<ID_Output>;
  name: () => Promise<String>;
}
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2886..2891
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3229..3232
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3525..3528
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3609..3614
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3649..3654
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3792..3795
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3809..3814

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

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

export interface PrintingPromise extends Promise<Printing>, Fragmentable {
  id: () => Promise<ID_Output>;
  name: () => Promise<String>;
}
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2886..2891
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3229..3232
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3525..3528
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3609..3614
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3649..3654
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3809..3814
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3853..3856

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

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

export interface SuperTypePreviousValuesPromise
  extends Promise<SuperTypePreviousValues>,
    Fragmentable {
  id: () => Promise<ID_Output>;
  name: () => Promise<String>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2886..2891
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3229..3232
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3525..3528
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3609..3614
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3792..3795
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3809..3814
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3853..3856

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

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

export interface SubTypePreviousValuesPromise
  extends Promise<SubTypePreviousValues>,
    Fragmentable {
  id: () => Promise<ID_Output>;
  name: () => Promise<String>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2886..2891
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3229..3232
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3525..3528
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3609..3614
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3649..3654
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3792..3795
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3853..3856

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

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

export interface PrintingPreviousValuesPromise
  extends Promise<PrintingPreviousValues>,
    Fragmentable {
  id: () => Promise<ID_Output>;
  name: () => Promise<String>;
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 2886..2891
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3229..3232
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3525..3528
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3649..3654
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3792..3795
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3809..3814
packages/backend/db-migration/prisma/generated/prisma-client/index.ts on lines 3853..3856

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

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

Function Button has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const Button: React.FC<ButtonProps> = (props: ButtonProps) => {
  const [state, setState] = useSetStateIfMounted<ButtonState>(ButtonState.IDLE);

  async function avoidClickingWhenPromiseIsResolving(): Promise<void> {
    try {
Severity: Minor
Found in packages/frontend/src/presentation/components/button/Button.tsx - About 1 hr to fix

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

        const { getByPlaceholder, getByText, getByProps } = render(
          <MockedProvider store={store}>
            <CardSearchFilter navigation={navigation} />
          </MockedProvider>,
        );
    packages/frontend/src/presentation/screens/__tests__/cardSearchFilter.test.js on lines 78..82

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

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

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

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

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

    Refactorings

    Further Reading

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

        const { getByPlaceholder, getByText, getByProps } = render(
          <MockedProvider store={store}>
            <CardSearchFilter navigation={navigation} />
          </MockedProvider>,
        );
    packages/frontend/src/presentation/screens/__tests__/cardSearchFilter.test.js on lines 113..117

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

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

            <View style={styles.buttonContainer}>
              <Button
                label={t(SIGN_IN_BUTTON_LABEL)}
                onPress={signIn}
                loadingLabel={t('welcome:loadingLabel')}
    packages/frontend/src/presentation/screens/Welcome/index.tsx on lines 55..61
    packages/frontend/src/presentation/screens/Welcome/index.tsx on lines 62..68

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

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

            <View style={styles.buttonContainer}>
              <Button
                label={t(SIGN_IN_WITH_FACEBOOK_BUTTON_LABEL)}
                onPress={signInWithFacebook}
                loadingLabel={t('welcome:loadingLabel')}
    packages/frontend/src/presentation/screens/Welcome/index.tsx on lines 62..68
    packages/frontend/src/presentation/screens/Welcome/index.tsx on lines 88..94

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

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

            <View style={styles.buttonContainer}>
              <Button
                label={t(SIGN_IN_WITH_GOOGLE_BUTTON_LABEL)}
                onPress={signInWithGoogle}
                loadingLabel={t('welcome:loadingLabel')}
    packages/frontend/src/presentation/screens/Welcome/index.tsx on lines 55..61
    packages/frontend/src/presentation/screens/Welcome/index.tsx on lines 88..94

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

    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

    Function CardSearchFilter has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const CardSearchFilter: React.FC<Props> = (props: Props) => {
      const [cardName, setCardName] = useState('');
      const [supertype, setSupertype] = useState('');
      const [subtype, setSubtype] = useState('');
      const [colors, setColors] = useState<Array<Color>>([]);

      Function Welcome has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const Welcome: React.FC = () => {
        const [
          email,
          password,
          setEmail,
      Severity: Minor
      Found in packages/frontend/src/presentation/screens/Welcome/index.web.tsx - About 1 hr to fix

        Function useAuth has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function useAuth(): UseAuthType {
          const dispatch = useDispatch();
          const [email, setEmail] = useState('');
          const [password, setPassword] = useState('');
        
        
        Severity: Minor
        Found in packages/frontend/src/presentation/screens/hooks/useAuth.ts - About 1 hr to fix

          Function ManaCost has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
          Open

          export const ManaCost: React.FC<Props> = ({ manaCost }: Props) => {
            const curlyBracesRegex = /[{}]+/;
            const manaStrings = manaCost.split(curlyBracesRegex).filter(mana => !!mana);
            const manaSymbols = manaStrings.map(
              (manaString: string): Mana => new Mana(manaString),
          Severity: Minor
          Found in packages/frontend/src/presentation/components/ManaCost.tsx - About 1 hr 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 sampleCardListFiltered has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
          Open

          const sampleCardListFiltered = (_, { filter }) => {
            const { cardName, supertype, subtype, colors, colorIdentities } = filter
            const byCardName = (card) => {
              if (!cardName) {
                return true
          Severity: Minor
          Found in packages/backend/functions/src/domain/resolvers/cardResolvers.js - About 1 hr 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 3 locations. Consider refactoring.
          Open

            legalities: {
              brawl: "Legal",
              commander: "Legal",
              duel: "Legal",
              future: "Legal",
          packages/backend/functions/src/data/fixtures/ajaniInspiringLeader.js on lines 100..111
          packages/backend/functions/src/data/fixtures/chandraFlameFury.js on lines 100..111

          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

            legalities: {
              brawl: "Legal",
              commander: "Legal",
              duel: "Legal",
              future: "Legal",
          packages/backend/functions/src/data/fixtures/chandraFlameFury.js on lines 100..111
          packages/backend/functions/src/data/fixtures/sorinsGuide.js on lines 106..117

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

            legalities: {
              brawl: 'Legal',
              commander: 'Legal',
              duel: 'Legal',
              future: 'Legal',
          Severity: Major
          Found in packages/frontend/src/data/fixtures/chandraFlameFury.ts and 2 other locations - About 1 hr to fix
          packages/frontend/src/data/fixtures/ajaniInspiringLeader.ts on lines 106..117
          packages/frontend/src/data/fixtures/sorinsGuide.ts on lines 123..134

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

            legalities: {
              brawl: 'Legal',
              commander: 'Legal',
              duel: 'Legal',
              future: 'Legal',
          Severity: Major
          Found in packages/frontend/src/data/fixtures/sorinsGuide.ts and 2 other locations - About 1 hr to fix
          packages/frontend/src/data/fixtures/ajaniInspiringLeader.ts on lines 106..117
          packages/frontend/src/data/fixtures/chandraFlameFury.ts on lines 106..117

          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