LeDDGroup/typescript-transform-macros

View on GitHub

Showing 4 of 8 total issues

Function visit has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    const visit = (node: ts.Node): ts.Node => {
      if (
        [
          ts.SyntaxKind.InterfaceDeclaration,
          ts.SyntaxKind.PropertySignature
Severity: Major
Found in src/index.ts - About 2 hrs to fix

    Avoid too many return statements within this function.
    Open

            return resultName;
    Severity: Major
    Found in src/index.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return ts.visitEachChild(node, visit, this.context);
      Severity: Major
      Found in src/index.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                if (!resultName) return ts.createEmptyStatement();
        Severity: Major
        Found in src/index.ts - About 30 mins to fix
          Severity
          Category
          Status
          Source
          Language