Oluwasegun-AA/md-generator

View on GitHub
src/core/actions/listActions/index.ts

Summary

Maintainability
A
0 mins
Test Coverage

Function listHandler has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

const listHandler = async (values: IArguments): Promise<void> => {
  const spin: any = spinner('Generating Requested List . . .');
  const { required, optional }: IArguments = values;
  const all: boolean = !optional && !required;
  await getInfos().then((projectInfos: IProjectInfos) => {
Severity: Minor
Found in src/core/actions/listActions/index.ts - About 1 hr to fix

    A space is required after '{'
    Open

    import {IArguments, IProjectInfos} from '../../../../types/typeDeclarations.interface';

    Rule: object-curly-spacing

    No description is given

    Schema
    {}

    For more information see this page.

    A space is required before '}'
    Open

    import {IArguments, IProjectInfos} from '../../../../types/typeDeclarations.interface';

    Rule: object-curly-spacing

    No description is given

    Schema
    {}

    For more information see this page.

    There are no issues that match your filters.

    Category
    Status