dashpresshq/dashpress

View on GitHub

Showing 459 of 459 total issues

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

const SelectSeparator = React.forwardRef<
  React.ElementRef<typeof SelectPrimitive.Separator>,
  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
>(({ className, ...props }, ref) => (
  <SelectPrimitive.Separator
Severity: Major
Found in src/frontend/components/ui/select.tsx and 11 other locations - About 3 hrs to fix
src/frontend/components/ui/alert-dialog.tsx on lines 78..87
src/frontend/components/ui/alert-dialog.tsx on lines 90..99
src/frontend/components/ui/dialog.tsx on lines 15..27
src/frontend/components/ui/dialog.tsx on lines 86..98
src/frontend/components/ui/dialog.tsx on lines 101..110
src/frontend/components/ui/dropdown-menu.tsx on lines 41..53
src/frontend/components/ui/dropdown-menu.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 112..121
src/frontend/components/ui/tabs.tsx on lines 6..18
src/frontend/components/ui/tabs.tsx on lines 21..33
src/frontend/components/ui/tabs.tsx on lines 36..48

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

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

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

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

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

Refactorings

Further Reading

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

const DialogTitle = React.forwardRef<
  React.ElementRef<typeof DialogPrimitive.Title>,
  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
>(({ className, ...props }, ref) => (
  <DialogPrimitive.Title
Severity: Major
Found in src/frontend/components/ui/dialog.tsx and 11 other locations - About 3 hrs to fix
src/frontend/components/ui/alert-dialog.tsx on lines 78..87
src/frontend/components/ui/alert-dialog.tsx on lines 90..99
src/frontend/components/ui/dialog.tsx on lines 15..27
src/frontend/components/ui/dialog.tsx on lines 101..110
src/frontend/components/ui/dropdown-menu.tsx on lines 41..53
src/frontend/components/ui/dropdown-menu.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 149..158
src/frontend/components/ui/tabs.tsx on lines 6..18
src/frontend/components/ui/tabs.tsx on lines 21..33
src/frontend/components/ui/tabs.tsx on lines 36..48

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

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

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

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

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

Refactorings

Further Reading

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

const TabsContent = React.forwardRef<
  React.ElementRef<typeof TabsPrimitive.Content>,
  React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>
>(({ className, ...props }, ref) => (
  <TabsPrimitive.Content
Severity: Major
Found in src/frontend/components/ui/tabs.tsx and 11 other locations - About 3 hrs to fix
src/frontend/components/ui/alert-dialog.tsx on lines 78..87
src/frontend/components/ui/alert-dialog.tsx on lines 90..99
src/frontend/components/ui/dialog.tsx on lines 15..27
src/frontend/components/ui/dialog.tsx on lines 86..98
src/frontend/components/ui/dialog.tsx on lines 101..110
src/frontend/components/ui/dropdown-menu.tsx on lines 41..53
src/frontend/components/ui/dropdown-menu.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 149..158
src/frontend/components/ui/tabs.tsx on lines 6..18
src/frontend/components/ui/tabs.tsx on lines 21..33

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

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

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

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

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

Refactorings

Further Reading

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

const AlertDialogDescription = React.forwardRef<
  React.ElementRef<typeof AlertDialogPrimitive.Description>,
  React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
>(({ className, ...props }, ref) => (
  <AlertDialogPrimitive.Description
Severity: Major
Found in src/frontend/components/ui/alert-dialog.tsx and 11 other locations - About 3 hrs to fix
src/frontend/components/ui/alert-dialog.tsx on lines 78..87
src/frontend/components/ui/dialog.tsx on lines 15..27
src/frontend/components/ui/dialog.tsx on lines 86..98
src/frontend/components/ui/dialog.tsx on lines 101..110
src/frontend/components/ui/dropdown-menu.tsx on lines 41..53
src/frontend/components/ui/dropdown-menu.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 149..158
src/frontend/components/ui/tabs.tsx on lines 6..18
src/frontend/components/ui/tabs.tsx on lines 21..33
src/frontend/components/ui/tabs.tsx on lines 36..48

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

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

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

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

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

Refactorings

Further Reading

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

const DialogDescription = React.forwardRef<
  React.ElementRef<typeof DialogPrimitive.Description>,
  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
>(({ className, ...props }, ref) => (
  <DialogPrimitive.Description
Severity: Major
Found in src/frontend/components/ui/dialog.tsx and 11 other locations - About 3 hrs to fix
src/frontend/components/ui/alert-dialog.tsx on lines 78..87
src/frontend/components/ui/alert-dialog.tsx on lines 90..99
src/frontend/components/ui/dialog.tsx on lines 15..27
src/frontend/components/ui/dialog.tsx on lines 86..98
src/frontend/components/ui/dropdown-menu.tsx on lines 41..53
src/frontend/components/ui/dropdown-menu.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 149..158
src/frontend/components/ui/tabs.tsx on lines 6..18
src/frontend/components/ui/tabs.tsx on lines 21..33
src/frontend/components/ui/tabs.tsx on lines 36..48

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

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

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

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

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

Refactorings

Further Reading

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

const DialogOverlay = React.forwardRef<
  React.ElementRef<typeof DialogPrimitive.Overlay>,
  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
>(({ className, ...props }, ref) => (
  <DialogPrimitive.Overlay
Severity: Major
Found in src/frontend/components/ui/dialog.tsx and 11 other locations - About 3 hrs to fix
src/frontend/components/ui/alert-dialog.tsx on lines 78..87
src/frontend/components/ui/alert-dialog.tsx on lines 90..99
src/frontend/components/ui/dialog.tsx on lines 86..98
src/frontend/components/ui/dialog.tsx on lines 101..110
src/frontend/components/ui/dropdown-menu.tsx on lines 41..53
src/frontend/components/ui/dropdown-menu.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 149..158
src/frontend/components/ui/tabs.tsx on lines 6..18
src/frontend/components/ui/tabs.tsx on lines 21..33
src/frontend/components/ui/tabs.tsx on lines 36..48

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

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

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

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

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

Refactorings

Further Reading

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

const DropdownMenuSeparator = React.forwardRef<
  React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
  React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
>(({ className, ...props }, ref) => (
  <DropdownMenuPrimitive.Separator
Severity: Major
Found in src/frontend/components/ui/dropdown-menu.tsx and 11 other locations - About 3 hrs to fix
src/frontend/components/ui/alert-dialog.tsx on lines 78..87
src/frontend/components/ui/alert-dialog.tsx on lines 90..99
src/frontend/components/ui/dialog.tsx on lines 15..27
src/frontend/components/ui/dialog.tsx on lines 86..98
src/frontend/components/ui/dialog.tsx on lines 101..110
src/frontend/components/ui/dropdown-menu.tsx on lines 41..53
src/frontend/components/ui/select.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 149..158
src/frontend/components/ui/tabs.tsx on lines 6..18
src/frontend/components/ui/tabs.tsx on lines 21..33
src/frontend/components/ui/tabs.tsx on lines 36..48

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

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

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

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

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

Refactorings

Further Reading

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

const TabsList = React.forwardRef<
  React.ElementRef<typeof TabsPrimitive.List>,
  React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>
>(({ className, ...props }, ref) => (
  <TabsPrimitive.List
Severity: Major
Found in src/frontend/components/ui/tabs.tsx and 11 other locations - About 3 hrs to fix
src/frontend/components/ui/alert-dialog.tsx on lines 78..87
src/frontend/components/ui/alert-dialog.tsx on lines 90..99
src/frontend/components/ui/dialog.tsx on lines 15..27
src/frontend/components/ui/dialog.tsx on lines 86..98
src/frontend/components/ui/dialog.tsx on lines 101..110
src/frontend/components/ui/dropdown-menu.tsx on lines 41..53
src/frontend/components/ui/dropdown-menu.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 149..158
src/frontend/components/ui/tabs.tsx on lines 21..33
src/frontend/components/ui/tabs.tsx on lines 36..48

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

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

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

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

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

Refactorings

Further Reading

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

const TabsTrigger = React.forwardRef<
  React.ElementRef<typeof TabsPrimitive.Trigger>,
  React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>
>(({ className, ...props }, ref) => (
  <TabsPrimitive.Trigger
Severity: Major
Found in src/frontend/components/ui/tabs.tsx and 11 other locations - About 3 hrs to fix
src/frontend/components/ui/alert-dialog.tsx on lines 78..87
src/frontend/components/ui/alert-dialog.tsx on lines 90..99
src/frontend/components/ui/dialog.tsx on lines 15..27
src/frontend/components/ui/dialog.tsx on lines 86..98
src/frontend/components/ui/dialog.tsx on lines 101..110
src/frontend/components/ui/dropdown-menu.tsx on lines 41..53
src/frontend/components/ui/dropdown-menu.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 112..121
src/frontend/components/ui/select.tsx on lines 149..158
src/frontend/components/ui/tabs.tsx on lines 6..18
src/frontend/components/ui/tabs.tsx on lines 36..48

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

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 CONFIGURATION_SCHEMA: IAppliedSchemaFormConfig<IActionConfig> = {
  apiKey: {
    label: msg`API Key`,
    type: "text",
    validations: [
Severity: Major
Found in src/backend/integrations/libs/mailgun/index.ts and 1 other location - About 3 hrs to fix
src/backend/integrations/libs/slack/sendMessage.ts on lines 13..32

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

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 CONFIG_SCHEMA: IAppliedSchemaFormConfig<IConfig> = {
  channel: {
    label: msg`Channel`,
    type: "text",
    validations: [
Severity: Major
Found in src/backend/integrations/libs/slack/sendMessage.ts and 1 other location - About 3 hrs to fix
src/backend/integrations/libs/mailgun/index.ts on lines 9..28

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

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

  async (req: NextApiRequest, res: NextApiResponse) => {
    const before = μs.now();

    return await requestHook(req, async () => {
      const validationsToRun = (validations || []).filter((validation) => {
Severity: Major
Found in src/backend/lib/request/index.ts - About 3 hrs to fix

    Function EntityDictionSettings has 76 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function EntityDictionSettings() {
      const entity = useEntitySlug();
      const domainMessages = useAppConfigurationDomainMessages("entity_diction");
      const entityDiction = useEntityDiction(entity);
      const upsertConfigurationMutation = useUpsertConfigurationMutation(
    Severity: Major
    Found in src/frontend/views/entity/Diction/index.tsx - About 3 hrs to fix

      Function SiteSettings has 74 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function SiteSettings() {
        const siteSettings = useAppConfiguration("site_settings");
      
        const domainMessages = useAppConfigurationDomainMessages("site_settings");
      
      
      Severity: Major
      Found in src/frontend/views/settings/Site/index.tsx - About 2 hrs to fix

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

            <AppLayout
              actionItems={[
                {
                  id: "add",
                  label: domainMessages.TEXT_LANG.CREATE,
        Severity: Major
        Found in src/frontend/views/roles/List.tsx and 1 other location - About 2 hrs to fix
        src/frontend/views/users/List.tsx on lines 129..143

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

        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

            <AppLayout actionItems={actionsItems}>
              <Card>
                <FEPaginationTable
                  dataEndpoint={USERS_ENDPOINT_CONFIG.LIST}
                  columns={columns}
        Severity: Major
        Found in src/frontend/views/users/List.tsx and 1 other location - About 2 hrs to fix
        src/frontend/views/roles/List.tsx on lines 84..107

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

        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

              loader={
                <>
                  {Array.from({ length: 7 }, (_, k) => k).map((key) => (
                    <Fragment key={key}>
                      <Skeleton className="mb-2 h-4 w-24" />
        Severity: Major
        Found in src/frontend/views/data/Details/DetailsView.tsx and 1 other location - About 2 hrs to fix
        src/frontend/views/settings/Versions/index.tsx on lines 39..48

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

        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

                  loader={
                    <>
                      {Array.from({ length: 4 }, (_, k) => k).map((key) => (
                        <Fragment key={key}>
                          <Skeleton className="mb-2 h-4 w-24" />
        Severity: Major
        Found in src/frontend/views/settings/Versions/index.tsx and 1 other location - About 2 hrs to fix
        src/frontend/views/data/Details/DetailsView.tsx on lines 76..85

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

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

        import type { CustomNextPage } from "@/frontend/_layouts/types";
        
        import { BaseErrorCmp } from "./_Base";
        
        // eslint-disable-next-line react/function-component-definition
        Severity: Minor
        Found in src/frontend/views/errors/UnAuthorized.tsx - About 2 hrs to fix

          Function VariablesDocumentation has 72 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export function VariablesDocumentation() {
            return (
              <DocumentationRoot>
                <p>
                  Variables are what you use to store values for later use. We have two
          Severity: Major
          Found in src/frontend/docs/variables.tsx - About 2 hrs to fix
            Severity
            Category
            Status
            Source
            Language