ksylvest/tights

View on GitHub

Showing 85 of 85 total issues

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

export const BreadcrumbItem: FC<
  Omit<ComponentProps<"li">, keyof Props> & Props
> = ({ active, className, ...props }) => (
  <li {...props} className={clsx(active && "is-active", className)} />
);
Severity: Major
Found in src/breadcrumb_item.tsx and 1 other location - About 2 hrs to fix
src/tabs_item.tsx on lines 8..12

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

export const TabsItem: FC<Omit<ComponentProps<"li">, keyof Props> & Props> = ({
  active,
  className,
  ...props
}) => <li {...props} className={clsx(active && "is-active", className)} />;
Severity: Major
Found in src/tabs_item.tsx and 1 other location - About 2 hrs to fix
src/breadcrumb_item.tsx on lines 8..12

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

export const DropdownMenu: FC<ComponentProps<"div">> = ({
  className,
  ...props
}) => <div {...props} className={clsx("dropdown-menu", className)} />;
Severity: Major
Found in src/dropdown_menu.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const Section: FC<ComponentProps<"div">> = ({ className, ...props }) => (
  <div {...props} className={clsx("section", className)} />
);
Severity: Major
Found in src/section.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const Content: FC<ComponentProps<"div">> = ({ className, ...props }) => (
  <div {...props} className={clsx("content", className)} />
);
Severity: Major
Found in src/content.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const PanelHeading: FC<ComponentProps<"p">> = ({
  className,
  ...props
}) => <p {...props} className={clsx("panel-heading", className)} />;
Severity: Major
Found in src/panel_heading.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const ModalCardTitle: FC<ComponentProps<"p">> = ({
  className,
  ...props
}) => <p {...props} className={clsx("modal-card-title", className)} />;
Severity: Major
Found in src/modal_card_title.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const DropdownContent: FC<ComponentProps<"div">> = ({
  className,
  ...props
}) => <div {...props} className={clsx("dropdown-content", className)} />;
Severity: Major
Found in src/dropdown_content.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const PaginationNext: FC<ComponentProps<"a">> = ({
  className,
  ...props
}) => <a {...props} className={clsx("pagination-next", className)} />;
Severity: Major
Found in src/pagination_next.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const Container: FC<ComponentProps<"div">> = ({
  className,
  ...props
}) => <div {...props} className={clsx("container", className)} />;
Severity: Major
Found in src/container.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const MessageHeader: FC<ComponentProps<"div">> = ({
  className,
  ...props
}) => <div {...props} className={clsx("message-header", className)} />;
Severity: Major
Found in src/message_header.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const LevelItem: FC<ComponentProps<"div">> = ({
  className,
  ...props
}) => <div {...props} className={clsx("level-item", className)} />;
Severity: Major
Found in src/level_item.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const HeroHead: FC<ComponentProps<"div">> = ({
  className,
  ...props
}) => <div {...props} className={clsx("hero-head", className)} />;
Severity: Major
Found in src/hero_head.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const MediaLeft: FC<ComponentProps<"div">> = ({
  className,
  ...props
}) => <div {...props} className={clsx("media-left", className)} />;
Severity: Major
Found in src/media_left.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const IconText: FC<ComponentProps<"span">> = ({
  className,
  ...props
}) => <span {...props} className={clsx("icon-text", className)} />;
Severity: Major
Found in src/icon_text.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const ModalContent: FC<ComponentProps<"div">> = ({
  className,
  ...props
}) => <div {...props} className={clsx("modal-content", className)} />;
Severity: Major
Found in src/modal_content.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const FileLabel: FC<ComponentProps<"label">> = ({
  className,
  ...props
}) => <label {...props} className={clsx("file-label", className)} />;
Severity: Major
Found in src/file_label.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const Media: FC<ComponentProps<"article">> = ({
  className,
  ...props
}) => <article {...props} className={clsx("media", className)} />;
Severity: Major
Found in src/media.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_left.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const CardFooter: FC<ComponentProps<"footer">> = ({
  className,
  ...props
}) => <footer className={clsx("card-footer", className)} {...props} />;
Severity: Major
Found in src/card_footer.tsx and 1 other location - About 1 hr to fix
src/card_footer_item.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

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

export const LevelLeft: FC<ComponentProps<"div">> = ({
  className,
  ...props
}) => <div {...props} className={clsx("level-left", className)} />;
Severity: Major
Found in src/level_left.tsx and 51 other locations - About 1 hr to fix
src/box.tsx on lines 4..6
src/card.tsx on lines 4..6
src/card_content.tsx on lines 4..7
src/card_header.tsx on lines 4..7
src/card_header_icon.tsx on lines 4..7
src/card_header_title.tsx on lines 4..7
src/card_image.tsx on lines 4..7
src/container.tsx on lines 4..7
src/content.tsx on lines 4..6
src/dropdown_content.tsx on lines 4..7
src/dropdown_menu.tsx on lines 4..7
src/dropdown_trigger.tsx on lines 4..7
src/file_icon.tsx on lines 4..7
src/file_label.tsx on lines 4..7
src/file_name.tsx on lines 4..7
src/hero_body.tsx on lines 4..7
src/hero_foot.tsx on lines 4..7
src/hero_head.tsx on lines 4..7
src/icon_text.tsx on lines 4..7
src/label.tsx on lines 4..6
src/level.tsx on lines 4..6
src/level_item.tsx on lines 4..7
src/level_right.tsx on lines 4..7
src/media.tsx on lines 4..7
src/media_content.tsx on lines 4..7
src/media_left.tsx on lines 4..7
src/media_right.tsx on lines 4..7
src/menu.tsx on lines 4..6
src/menu_label.tsx on lines 4..6
src/menu_list.tsx on lines 4..6
src/message_body.tsx on lines 4..7
src/message_header.tsx on lines 4..7
src/modal_background.tsx on lines 4..7
src/modal_card.tsx on lines 4..7
src/modal_card_body.tsx on lines 4..7
src/modal_card_foot.tsx on lines 4..7
src/modal_card_head.tsx on lines 4..7
src/modal_card_title.tsx on lines 4..7
src/modal_content.tsx on lines 4..7
src/navbar_brand.tsx on lines 4..7
src/navbar_end.tsx on lines 4..7
src/navbar_link.tsx on lines 4..7
src/navbar_start.tsx on lines 4..7
src/pagination_list.tsx on lines 4..7
src/pagination_next.tsx on lines 4..7
src/pagination_prev.tsx on lines 4..7
src/panel_block.tsx on lines 4..7
src/panel_heading.tsx on lines 4..7
src/panel_tabs.tsx on lines 4..6
src/section.tsx on lines 4..6
src/table_container.tsx on lines 4..7

Duplicated Code

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

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

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

Tuning

This issue has a mass of 62.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language