sounisi5011/metalsmith-pug-extra

View on GitHub

Showing 5 of 7 total issues

Function convert has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const convert = createPluginGeneratorWithPugOptions((opts = {}) => {
    const options = {
        ...convertDefaultOptions,
        ...opts,
    };
Severity: Minor
Found in src/convert.ts - About 1 hr to fix

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

    export function getCompileTemplate(
        filename: string,
        files: Metalsmith.Files,
        metalsmith: Metalsmith,
        options: CompileOptionsInterface & pug.Options,
    Severity: Minor
    Found in src/compile.ts - About 1 hr to fix

      Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const render = createPluginGenerator((opts = {}) => {
          return (files, metalsmith, done) => {
              const options = normalizeRenderOptions(
                  metalsmith,
                  renderDefaultOptions,
      Severity: Minor
      Found in src/render.ts - About 1 hr to fix

        Function compile has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export const compile = createPluginGeneratorWithPugOptions((opts = {}) => {
            const options = {
                ...compileDefaultOptions,
                ...opts,
            };
        Severity: Minor
        Found in src/compile.ts - About 1 hr to fix

          Function getRenderedText has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              compileTemplate: pug.compileTemplate,
              filename: string,
              data: FileInterface,
              metalsmith: Metalsmith,
              options: RenderOptionsInterface,
          Severity: Minor
          Found in src/render.ts - About 35 mins to fix
            Severity
            Category
            Status
            Source
            Language