ezylean/nuxt-renderer-extractor

View on GitHub

Showing 4 of 13 total issues

Function create has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function create(deps: Dependencies) {
  return (
    moduleName: string,
    newModuleName: string,
    destPath: string,
Severity: Minor
Found in src/lib/extract.ts - About 1 hr to fix

    Function getImports has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function getImports(src: string): string[] {
      const walker = new Walker();
    
      const dependencies = [];
    
    
    Severity: Minor
    Found in src/lib/getImports.ts - About 1 hr to fix

      Function result has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        const result = recLoop('/index', path => {
          if (path === '/index') {
            return {
              seeds: [
                '../common',
      Severity: Minor
      Found in src/lib/recLoop.spec.ts - About 1 hr to fix

        Function create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function create(deps: Dependencies) {
          return () => {
            const CLArgs = deps.parseCLArgs(messages.help, config);
            const command = CLArgs.input[0];
        
        
        Severity: Minor
        Found in src/cli/run.ts - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language