Coursemology/coursemology2

View on GitHub
client/app/bundles/course/forum/components/tables/ForumTable.tsx

Summary

Maintainability
C
1 day
Test Coverage

Function ForumTable has 154 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const ForumTable: FC<Props> = (props) => {
  const { forums } = props;
  const { t } = useTranslation();
  if (forums && forums.length === 0) {
    return <Note message={t(translations.noForum)} />;
Severity: Major
Found in client/app/bundles/course/forum/components/tables/ForumTable.tsx - About 6 hrs to fix

Function customBodyRenderLite has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        customBodyRenderLite: (dataIndex): JSX.Element => {
          const forum = forums[dataIndex];

          return (
            <>
Severity: Minor
Found in client/app/bundles/course/forum/components/tables/ForumTable.tsx - About 1 hr to fix

There are no issues that match your filters.

Category
Status