VoxaAI/voxa-cli

View on GitHub
src/InteractionBuilder.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function buildInteraction has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const buildInteraction = async (interactionOptions: IInteractionOptions, authKeys: any) => {
  const definedInteractionOptions = defaultOptions(interactionOptions);
  console.time("all");
  console.time("timeframe");

Severity: Major
Found in src/InteractionBuilder.ts - About 2 hrs to fix

    Function defaultOptions has 57 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function defaultOptions(interactionOptions: IInteractionOptions): IDefinedInteractionOptions {
      const rootPath: string = interactionOptions.rootPath || "";
      const speechPath: string =
        interactionOptions.speechPath || DEFAULT_INTERACTION_OPTIONS.speechPath;
      const synonymPath: string =
    Severity: Major
    Found in src/InteractionBuilder.ts - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status