bookbrainz/bookbrainz-site

View on GitHub

Showing 1,033 of 1,033 total issues

File series.ts has 278 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * Copyright (C) 2021  Akash Gupta
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
Severity: Minor
Found in src/server/routes/entity/series.ts - About 2 hrs to fix

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

                {!entity.deleted && <CBReviewModal
                    entityBBID={entity.bbid}
                    entityName={entity.defaultAlias.name}
                    entityType={entity.type}
                    handleModalToggle={handleModalToggle}
    Severity: Major
    Found in src/client/components/pages/entities/work.js and 3 other locations - About 2 hrs to fix
    src/client/components/pages/entities/author.js on lines 201..209
    src/client/components/pages/entities/edition-group.js on lines 171..179
    src/client/components/pages/entities/series.js on lines 169..177

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

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

                {!entity.deleted && <CBReviewModal
                    entityBBID={entity.bbid}
                    entityName={entity.defaultAlias.name}
                    entityType={entity.type}
                    handleModalToggle={handleModalToggle}
    Severity: Major
    Found in src/client/components/pages/entities/author.js and 3 other locations - About 2 hrs to fix
    src/client/components/pages/entities/edition-group.js on lines 171..179
    src/client/components/pages/entities/series.js on lines 169..177
    src/client/components/pages/entities/work.js on lines 164..172

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

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

                {!entity.deleted && <CBReviewModal
                    entityBBID={entity.bbid}
                    entityName={entity.defaultAlias.name}
                    entityType={entity.type}
                    handleModalToggle={handleModalToggle}
    Severity: Major
    Found in src/client/components/pages/entities/series.js and 3 other locations - About 2 hrs to fix
    src/client/components/pages/entities/author.js on lines 201..209
    src/client/components/pages/entities/edition-group.js on lines 171..179
    src/client/components/pages/entities/work.js on lines 164..172

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

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

                {!entity.deleted && <CBReviewModal
                    entityBBID={entity.bbid}
                    entityName={entity.defaultAlias.name}
                    entityType={entity.type}
                    handleModalToggle={handleModalToggle}
    Severity: Major
    Found in src/client/components/pages/entities/edition-group.js and 3 other locations - About 2 hrs to fix
    src/client/components/pages/entities/author.js on lines 201..209
    src/client/components/pages/entities/series.js on lines 169..177
    src/client/components/pages/entities/work.js on lines 164..172

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

    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

                    <Col lg={3}>
                        <dl>
                            <dt>Status</dt>
                            <dd>{status}</dd>
                            <dt>Languages</dt>
    Severity: Major
    Found in src/client/components/pages/entities/edition.js and 1 other location - About 2 hrs to fix
    src/client/components/pages/entities/publisher.js on lines 67..74

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

    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

                    <Col lg={3}>
                        <dl>
                            <dt>Date Founded</dt>
                            <dd>{beginDate}</dd>
                            <dt>Date Dissolved</dt>
    Severity: Major
    Found in src/client/components/pages/entities/publisher.js and 1 other location - About 2 hrs to fix
    src/client/components/pages/entities/edition.js on lines 73..80

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

    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 render(props) {
                const editorMarkup = entityEditorMarkup(props);
                const {markup} = editorMarkup;
                const updatedProps = editorMarkup.props;
                return res.send(target({
    Severity: Major
    Found in src/server/routes/entity/edition.ts and 1 other location - About 2 hrs to fix
    src/server/routes/entity/work.ts on lines 188..199

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

    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 render(props) {
                const editorMarkup = entityEditorMarkup(props);
                const {markup} = editorMarkup;
                const updatedProps = editorMarkup.props;
    
    
    Severity: Major
    Found in src/server/routes/entity/work.ts and 1 other location - About 2 hrs to fix
    src/server/routes/entity/edition.ts on lines 319..329

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

    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 publisherToFormState has 66 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function publisherToFormState(publisher) {
        /** The front-end expects a language id rather than the language object. */
        const aliases = publisher.aliasSet ?
            publisher.aliasSet.aliases.map(({languageId, ...rest}) => ({
                ...rest,
    Severity: Major
    Found in src/server/routes/entity/publisher.ts - About 2 hrs to fix

      Function workToFormState has 65 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function workToFormState(work) {
          /** The front-end expects a language id rather than the language object. */
          const aliases = work.aliasSet ?
              work.aliasSet.aliases.map(({languageId, ...rest}) => ({
                  ...rest,
      Severity: Major
      Found in src/server/routes/entity/work.ts - About 2 hrs to fix

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

        router.post(
            '/:bbid/delete/handler', auth.isAuthenticatedForHandler, auth.isAuthorized(ENTITY_EDITOR),
            (req, res) => {
                const {orm} = req.app.locals;
                const {SeriesHeader, SeriesRevision} = orm;
        Severity: Major
        Found in src/server/routes/entity/series.ts and 5 other locations - About 2 hrs to fix
        src/server/routes/entity/author.ts on lines 226..235
        src/server/routes/entity/edition-group.ts on lines 220..229
        src/server/routes/entity/edition.ts on lines 397..406
        src/server/routes/entity/publisher.ts on lines 232..241
        src/server/routes/entity/work.ts on lines 245..254

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

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

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

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

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

        Refactorings

        Further Reading

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

        router.post(
            '/:bbid/delete/handler', auth.isAuthenticatedForHandler, auth.isAuthorized(ENTITY_EDITOR),
            (req, res) => {
                const {orm} = req.app.locals;
                const {WorkHeader, WorkRevision} = orm;
        Severity: Major
        Found in src/server/routes/entity/work.ts and 5 other locations - About 2 hrs to fix
        src/server/routes/entity/author.ts on lines 226..235
        src/server/routes/entity/edition-group.ts on lines 220..229
        src/server/routes/entity/edition.ts on lines 397..406
        src/server/routes/entity/publisher.ts on lines 232..241
        src/server/routes/entity/series.ts on lines 221..230

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

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

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

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

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

        Refactorings

        Further Reading

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

        router.post(
            '/:bbid/delete/handler', auth.isAuthenticatedForHandler, auth.isAuthorized(ENTITY_EDITOR),
            (req, res) => {
                const {orm} = req.app.locals;
                const {EditionHeader, EditionRevision} = orm;
        Severity: Major
        Found in src/server/routes/entity/edition.ts and 5 other locations - About 2 hrs to fix
        src/server/routes/entity/author.ts on lines 226..235
        src/server/routes/entity/edition-group.ts on lines 220..229
        src/server/routes/entity/publisher.ts on lines 232..241
        src/server/routes/entity/series.ts on lines 221..230
        src/server/routes/entity/work.ts on lines 245..254

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

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

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

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

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

        Refactorings

        Further Reading

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

        router.post(
            '/:bbid/delete/handler', auth.isAuthenticatedForHandler, auth.isAuthorized(ENTITY_EDITOR),
            (req, res) => {
                const {orm} = req.app.locals;
                const {EditionGroupHeader, EditionGroupRevision} = orm;
        Severity: Major
        Found in src/server/routes/entity/edition-group.ts and 5 other locations - About 2 hrs to fix
        src/server/routes/entity/author.ts on lines 226..235
        src/server/routes/entity/edition.ts on lines 397..406
        src/server/routes/entity/publisher.ts on lines 232..241
        src/server/routes/entity/series.ts on lines 221..230
        src/server/routes/entity/work.ts on lines 245..254

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

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

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

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

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

        Refactorings

        Further Reading

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

        router.post(
            '/:bbid/delete/handler', auth.isAuthenticatedForHandler, auth.isAuthorized(ENTITY_EDITOR),
            (req, res) => {
                const {orm} = req.app.locals;
                const {AuthorHeader, AuthorRevision} = orm;
        Severity: Major
        Found in src/server/routes/entity/author.ts and 5 other locations - About 2 hrs to fix
        src/server/routes/entity/edition-group.ts on lines 220..229
        src/server/routes/entity/edition.ts on lines 397..406
        src/server/routes/entity/publisher.ts on lines 232..241
        src/server/routes/entity/series.ts on lines 221..230
        src/server/routes/entity/work.ts on lines 245..254

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

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

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

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

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

        Refactorings

        Further Reading

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

        router.post(
            '/:bbid/delete/handler', auth.isAuthenticatedForHandler, auth.isAuthorized(ENTITY_EDITOR),
            (req, res) => {
                const {orm} = req.app.locals;
                const {PublisherHeader, PublisherRevision} = orm;
        Severity: Major
        Found in src/server/routes/entity/publisher.ts and 5 other locations - About 2 hrs to fix
        src/server/routes/entity/author.ts on lines 226..235
        src/server/routes/entity/edition-group.ts on lines 220..229
        src/server/routes/entity/edition.ts on lines 397..406
        src/server/routes/entity/series.ts on lines 221..230
        src/server/routes/entity/work.ts on lines 245..254

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

        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

        File revision.js has 274 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*
         * Copyright (C) 2015-2016  Stanisław Szcześniak
         *               2015-2016  Ben Ockmore
         *               2016       Sean Burke
         *
        Severity: Minor
        Found in src/client/components/pages/revision.js - About 2 hrs to fix

          Function FAQPage has 64 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function FAQPage(): JSX.Element {
              return (
                  <Card>
                      <Card.Header as="h2">
                          Frequently Asked Questions
          Severity: Major
          Found in src/client/components/pages/faq.tsx - About 2 hrs to fix

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

                        if (response.body.alert) {
                            const alertParam = `?alert=${response.body.alert}`;
                            window.location.href = `${redirectUrl}${alertParam}`;
                        }
                        else {
            Severity: Major
            Found in src/client/entity-editor/submission-section/actions.ts and 1 other location - About 2 hrs to fix
            src/client/entity-editor/submission-section/actions.ts on lines 109..115

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 86.

            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