pankod/refine

View on GitHub
packages/cli/src/utils/compile/index.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

export const compile = (filePath: string, params: any): string => {
  const content = readFileSync(filePath);

  Handlebars.registerHelper("ifIn", (elem, list, options) => {
    if (elem.includes(list)) {
Severity: Minor
Found in packages/cli/src/utils/compile/index.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status