Showing 5 of 7 total issues
Function convert
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const convert = createPluginGeneratorWithPugOptions((opts = {}) => {
const options = {
...convertDefaultOptions,
...opts,
};
Function getCompileTemplate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getCompileTemplate(
filename: string,
files: Metalsmith.Files,
metalsmith: Metalsmith,
options: CompileOptionsInterface & pug.Options,
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const render = createPluginGenerator((opts = {}) => {
return (files, metalsmith, done) => {
const options = normalizeRenderOptions(
metalsmith,
renderDefaultOptions,
Function compile
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const compile = createPluginGeneratorWithPugOptions((opts = {}) => {
const options = {
...compileDefaultOptions,
...opts,
};
Function getRenderedText
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
compileTemplate: pug.compileTemplate,
filename: string,
data: FileInterface,
metalsmith: Metalsmith,
options: RenderOptionsInterface,