dashpresshq/dashpress

View on GitHub

Showing 459 of 459 total issues

Function DateSettings has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function DateSettings() {
  const domainMessages = useAppConfigurationDomainMessages(
    "default_date_format"
  );

Severity: Major
Found in src/frontend/views/settings/Data/index.tsx - About 2 hrs to fix

    Function EntityRelationTable has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function EntityRelationTable() {
      const parentEntity = useEntitySlug();
      const entityId = useEntityId();
      const { _ } = useLingui();
      const childEntity = useRouteParam("childEntity");
    Severity: Major
    Found in src/frontend/views/data/Details/RelationsTable.tsx - About 2 hrs to fix

      Function RolePermissions has 56 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function RolePermissions() {
        const activeEntities = useActiveEntities();
        const portalPermission = usePortalExtendedPermissions();
        const rolePermissions = useRolePermissions();
        const portalUserPermissions = usePortalUserPermissions();
      Severity: Major
      Found in src/frontend/views/roles/Permissions/index.tsx - About 2 hrs to fix

        Function useEntityFieldValidations has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function useEntityFieldValidations(entity: string) {
          const entityValidationsMap = useEntityConfiguration(
            "entity_validations",
            entity
          );
        Severity: Major
        Found in src/frontend/hooks/entity/entity.config.ts - About 2 hrs to fix

          Function ViewsDocumentation has 55 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export function ViewsDocumentation() {
            return (
              <DocumentationRoot>
                <p>
                  Views enable you to implement query tabs. Say you have an{" "}
          Severity: Major
          Found in src/frontend/docs/views.tsx - About 2 hrs to fix

            Function select has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                select: (data: any) => {
                  let returnData: T[] = data as unknown as T[];
                  if (dataState.filters) {
                    returnData = returnData.filter((datum) => {
                      return dataState.filters.every(($filter) => {
            Severity: Major
            Found in src/frontend/components/app/pagination-table/useFEPagination.ts - About 2 hrs to fix

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

                  integrationConfigurationSchema: {
                    accessKeyId: {
                      type: "text",
                      validations: [
                        {
              Severity: Major
              Found in src/backend/storage/integrations/google/index.ts and 1 other location - About 2 hrs to fix
              src/backend/storage/integrations/cloudinary/index.ts on lines 6..31

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

              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

                  integrationConfigurationSchema: {
                    apiKey: {
                      type: "text",
                      validations: [
                        {
              Severity: Major
              Found in src/backend/storage/integrations/cloudinary/index.ts and 1 other location - About 2 hrs to fix
              src/backend/storage/integrations/google/index.ts on lines 6..31

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

              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 Form.tsx has 255 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              import type { MessageDescriptor } from "@lingui/core";
              import { msg } from "@lingui/macro";
              import arrayMutators from "final-form-arrays";
              import { Fragment } from "react";
              import { Field, Form, useField } from "react-final-form";
              Severity: Minor
              Found in src/frontend/views/entity/PersistentQuery/Form.tsx - About 2 hrs to fix

                Function useNavigationStack has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export const useNavigationStack = () => {
                  const router = useRouter();
                  const { _ } = useLingui();
                
                  const [history, setHistory] = useNavigationHistoryStore((store) => [
                Severity: Major
                Found in src/frontend/lib/routing/useNavigationStack.ts - About 2 hrs to fix

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

                  const CardContent = React.forwardRef<
                    HTMLDivElement,
                    React.HTMLAttributes<HTMLDivElement>
                  >(({ className, ...props }, ref) => (
                    <div
                  Severity: Major
                  Found in src/frontend/components/ui/card.tsx and 10 other locations - About 2 hrs to fix
                  src/frontend/components/ui/card.tsx on lines 5..14
                  src/frontend/components/ui/card.tsx on lines 17..29
                  src/frontend/components/ui/card.tsx on lines 58..67
                  src/frontend/components/ui/table.tsx on lines 19..31
                  src/frontend/components/ui/table.tsx on lines 34..39
                  src/frontend/components/ui/table.tsx on lines 42..51
                  src/frontend/components/ui/table.tsx on lines 54..66
                  src/frontend/components/ui/table.tsx on lines 69..81
                  src/frontend/components/ui/table.tsx on lines 84..96
                  src/frontend/components/ui/table.tsx on lines 99..108

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

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

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

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

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

                  Refactorings

                  Further Reading

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

                  const BreadcrumbList = React.forwardRef<
                    HTMLOListElement,
                    React.ComponentPropsWithoutRef<"ol">
                  >(({ className, ...props }, ref) => (
                    <ol
                  Severity: Major
                  Found in src/frontend/components/ui/breadcrumb.tsx and 1 other location - About 2 hrs to fix
                  src/frontend/components/ui/breadcrumb.tsx on lines 30..39

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

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

                  const CardFooter = React.forwardRef<
                    HTMLDivElement,
                    React.HTMLAttributes<HTMLDivElement>
                  >(({ className, ...props }, ref) => (
                    <div
                  Severity: Major
                  Found in src/frontend/components/ui/card.tsx and 10 other locations - About 2 hrs to fix
                  src/frontend/components/ui/card.tsx on lines 5..14
                  src/frontend/components/ui/card.tsx on lines 17..29
                  src/frontend/components/ui/card.tsx on lines 46..55
                  src/frontend/components/ui/table.tsx on lines 19..31
                  src/frontend/components/ui/table.tsx on lines 34..39
                  src/frontend/components/ui/table.tsx on lines 42..51
                  src/frontend/components/ui/table.tsx on lines 54..66
                  src/frontend/components/ui/table.tsx on lines 69..81
                  src/frontend/components/ui/table.tsx on lines 84..96
                  src/frontend/components/ui/table.tsx on lines 99..108

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

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

                  const TableCell = React.forwardRef<
                    HTMLTableCellElement,
                    React.TdHTMLAttributes<HTMLTableCellElement>
                  >(({ className, ...props }, ref) => (
                    <td
                  Severity: Major
                  Found in src/frontend/components/ui/table.tsx and 10 other locations - About 2 hrs to fix
                  src/frontend/components/ui/card.tsx on lines 5..14
                  src/frontend/components/ui/card.tsx on lines 17..29
                  src/frontend/components/ui/card.tsx on lines 46..55
                  src/frontend/components/ui/card.tsx on lines 58..67
                  src/frontend/components/ui/table.tsx on lines 19..31
                  src/frontend/components/ui/table.tsx on lines 34..39
                  src/frontend/components/ui/table.tsx on lines 42..51
                  src/frontend/components/ui/table.tsx on lines 54..66
                  src/frontend/components/ui/table.tsx on lines 69..81
                  src/frontend/components/ui/table.tsx on lines 99..108

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

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

                  const TableRow = React.forwardRef<
                    HTMLTableRowElement,
                    React.HTMLAttributes<HTMLTableRowElement>
                  >(({ className, ...props }, ref) => (
                    <tr
                  Severity: Major
                  Found in src/frontend/components/ui/table.tsx and 10 other locations - About 2 hrs to fix
                  src/frontend/components/ui/card.tsx on lines 5..14
                  src/frontend/components/ui/card.tsx on lines 17..29
                  src/frontend/components/ui/card.tsx on lines 46..55
                  src/frontend/components/ui/card.tsx on lines 58..67
                  src/frontend/components/ui/table.tsx on lines 19..31
                  src/frontend/components/ui/table.tsx on lines 34..39
                  src/frontend/components/ui/table.tsx on lines 42..51
                  src/frontend/components/ui/table.tsx on lines 69..81
                  src/frontend/components/ui/table.tsx on lines 84..96
                  src/frontend/components/ui/table.tsx on lines 99..108

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

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

                  const TableHeader = React.forwardRef<
                    HTMLTableSectionElement,
                    React.HTMLAttributes<HTMLTableSectionElement>
                  >(({ className, ...props }, ref) => (
                    <thead
                  Severity: Major
                  Found in src/frontend/components/ui/table.tsx and 10 other locations - About 2 hrs to fix
                  src/frontend/components/ui/card.tsx on lines 5..14
                  src/frontend/components/ui/card.tsx on lines 17..29
                  src/frontend/components/ui/card.tsx on lines 46..55
                  src/frontend/components/ui/card.tsx on lines 58..67
                  src/frontend/components/ui/table.tsx on lines 34..39
                  src/frontend/components/ui/table.tsx on lines 42..51
                  src/frontend/components/ui/table.tsx on lines 54..66
                  src/frontend/components/ui/table.tsx on lines 69..81
                  src/frontend/components/ui/table.tsx on lines 84..96
                  src/frontend/components/ui/table.tsx on lines 99..108

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

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

                  const Card = React.forwardRef<
                    HTMLDivElement,
                    React.HTMLAttributes<HTMLDivElement>
                  >(({ className, ...props }, ref) => (
                    <div
                  Severity: Major
                  Found in src/frontend/components/ui/card.tsx and 10 other locations - About 2 hrs to fix
                  src/frontend/components/ui/card.tsx on lines 17..29
                  src/frontend/components/ui/card.tsx on lines 46..55
                  src/frontend/components/ui/card.tsx on lines 58..67
                  src/frontend/components/ui/table.tsx on lines 19..31
                  src/frontend/components/ui/table.tsx on lines 34..39
                  src/frontend/components/ui/table.tsx on lines 42..51
                  src/frontend/components/ui/table.tsx on lines 54..66
                  src/frontend/components/ui/table.tsx on lines 69..81
                  src/frontend/components/ui/table.tsx on lines 84..96
                  src/frontend/components/ui/table.tsx on lines 99..108

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

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

                  const TableBody = React.forwardRef<
                    HTMLTableSectionElement,
                    React.HTMLAttributes<HTMLTableSectionElement>
                  >(({ className, ...props }, ref) => (
                    <tbody ref={ref} className={cn("", className)} {...props} />
                  Severity: Major
                  Found in src/frontend/components/ui/table.tsx and 10 other locations - About 2 hrs to fix
                  src/frontend/components/ui/card.tsx on lines 5..14
                  src/frontend/components/ui/card.tsx on lines 17..29
                  src/frontend/components/ui/card.tsx on lines 46..55
                  src/frontend/components/ui/card.tsx on lines 58..67
                  src/frontend/components/ui/table.tsx on lines 19..31
                  src/frontend/components/ui/table.tsx on lines 42..51
                  src/frontend/components/ui/table.tsx on lines 54..66
                  src/frontend/components/ui/table.tsx on lines 69..81
                  src/frontend/components/ui/table.tsx on lines 84..96
                  src/frontend/components/ui/table.tsx on lines 99..108

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

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

                  const TableFooter = React.forwardRef<
                    HTMLTableSectionElement,
                    React.HTMLAttributes<HTMLTableSectionElement>
                  >(({ className, ...props }, ref) => (
                    <tfoot
                  Severity: Major
                  Found in src/frontend/components/ui/table.tsx and 10 other locations - About 2 hrs to fix
                  src/frontend/components/ui/card.tsx on lines 5..14
                  src/frontend/components/ui/card.tsx on lines 17..29
                  src/frontend/components/ui/card.tsx on lines 46..55
                  src/frontend/components/ui/card.tsx on lines 58..67
                  src/frontend/components/ui/table.tsx on lines 19..31
                  src/frontend/components/ui/table.tsx on lines 34..39
                  src/frontend/components/ui/table.tsx on lines 54..66
                  src/frontend/components/ui/table.tsx on lines 69..81
                  src/frontend/components/ui/table.tsx on lines 84..96
                  src/frontend/components/ui/table.tsx on lines 99..108

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

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

                  const TableHead = React.forwardRef<
                    HTMLTableCellElement,
                    React.ThHTMLAttributes<HTMLTableCellElement>
                  >(({ className, ...props }, ref) => (
                    <th
                  Severity: Major
                  Found in src/frontend/components/ui/table.tsx and 10 other locations - About 2 hrs to fix
                  src/frontend/components/ui/card.tsx on lines 5..14
                  src/frontend/components/ui/card.tsx on lines 17..29
                  src/frontend/components/ui/card.tsx on lines 46..55
                  src/frontend/components/ui/card.tsx on lines 58..67
                  src/frontend/components/ui/table.tsx on lines 19..31
                  src/frontend/components/ui/table.tsx on lines 34..39
                  src/frontend/components/ui/table.tsx on lines 42..51
                  src/frontend/components/ui/table.tsx on lines 54..66
                  src/frontend/components/ui/table.tsx on lines 84..96
                  src/frontend/components/ui/table.tsx on lines 99..108

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

                  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