Gottwik/Enduro

View on GitHub
libs/page_rendering/page_renderer.js

Summary

Maintainability
A
1 hr
Test Coverage

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

page_renderer.prototype.render_file_by_context = function (template_path, context, culture) {

    // extracts the relative path to the template from the absolute path
    const file_regex_match = template_path.match(/pages(?:\/|\\)(.*)\.([^\\/]+)$/)
    const filename = file_regex_match[1]
Severity: Minor
Found in libs/page_rendering/page_renderer.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status