tbranyen/combyne

View on GitHub
lib/compiler.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function Compiler has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function Compiler(tree) {
    this.tree = tree;
    this.string = "";

    // Optimization pass will flatten large templates to result in faster
Severity: Minor
Found in lib/compiler.js - About 1 hr to fix

    Function compileProperty has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      Compiler.prototype.compileProperty = function(node, encode) {
        var identifier = node.value;
    
        // Normalize string property values that contain single or double quotes.
        if (identifier.indexOf("'") === -1 && identifier.indexOf("\"") === -1) {
    Severity: Minor
    Found in lib/compiler.js - About 1 hr to fix

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

        Compiler.prototype.process = function(nodes, keyVal) {
          var commands = [];
      
          // Parse the Tree and execute the respective compile to JavaScript method.
          nodes.map(function(node, index) {
      Severity: Minor
      Found in lib/compiler.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status