soderlind/plugin-customizer

View on GitHub
src/assets/js/plugin-customizer-preview-templates.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function PluginCustomizer has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var PluginCustomizer = (function( api, $ ) {
    'use strict';

    var component = {
        data: {
Severity: Minor
Found in src/assets/js/plugin-customizer-preview-templates.js - About 1 hr to fix

    Function init has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        component.init = function init( home, sections ) {
            _.extend( component.data, home );
            _.extend( {}, sections );
            if ( ! home || ! home.url  ) {
                throw new Error( 'Missing args' );
    Severity: Minor
    Found in src/assets/js/plugin-customizer-preview-templates.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status