mAAdhaTTah/brookjs

View on GitHub

Showing 71 of 74 total issues

Avoid too many return statements within this function.
Open

return state;
Severity: Major
Found in packages/brookjs-cli/src/commands/NewCommand/reducer.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

    return (
    <BuildErrors watch={!!props.watch} errors={[...errors, ...warnings]} />
    );
    Severity: Major
    Found in packages/brookjs-cli/src/commands/BuildCommand/View.tsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

      return null;
      Severity: Major
      Found in packages/brookjs-cli/src/commands/StartCommand/index.tsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

        return {
        ...state,
        step: 'complete',
        result: action.payload.result,
        };
        Severity: Major
        Found in packages/brookjs-cli/src/commands/NewCommand/reducer.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

          return {
          ...state,
          step: 'error',
          error: action.payload.error,
          };
          Severity: Major
          Found in packages/brookjs-cli/src/commands/NewCommand/reducer.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

            return externalModules.includes(packageName);
            Severity: Major
            Found in rollup.config.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

              return <Built results={props.results!} watch={!!props.watch} />;
              Severity: Major
              Found in packages/brookjs-cli/src/commands/BuildCommand/View.tsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                return {
                ...state,
                step: 'cancelled',
                };
                Severity: Major
                Found in packages/brookjs-cli/src/commands/NewCommand/reducer.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                  return state;
                  Severity: Major
                  Found in packages/brookjs-cli/src/commands/NewCommand/reducer.ts - About 30 mins to fix

                    Function View has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                    Open

                    }> = props => {
                    if (props.rc == null) {
                    return <RCNotLoaded />;
                    }
                     
                     
                    Severity: Minor
                    Found in packages/brookjs-cli/src/commands/BuildCommand/View.tsx - About 25 mins to fix

                    Function jestPlugin has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                    Open

                    export const jestPlugin = ({
                    Kefir,
                    }: {
                    Kefir: typeof import('kefir').default;
                    }): Helpers => {
                    Severity: Minor
                    Found in packages/brookjs-desalinate/src/jestPlugin.tsx - About 25 mins to fix
                    Severity
                    Category
                    Status
                    Source
                    Language