ahbeng/NUSMods

View on GitHub
website/src/views/modules/ModuleTree.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function ModuleTreeComponent has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const ModuleTreeComponent: React.FC<Props> = (props) => {
  const { fulfillRequirements, prereqTree, moduleCode } = props;

  return (
    <>
Severity: Major
Found in website/src/views/modules/ModuleTree.tsx - About 2 hrs to fix

    Function Tree has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const Tree: React.FC<TreeDisplay> = (props) => {
      const { layer, node, isPrereq } = props;
    
      const isConditional = typeof node !== 'string';
      const { prefix, name } = nodeName(node);
    Severity: Minor
    Found in website/src/views/modules/ModuleTree.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status