app/assets/javascripts/old/hogan-2.0.0.js
File hogan-2.0.0.js
has 436 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright 2011 Twitter, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Function scan
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Hogan.scan = function scan(text, delimiters) {
var len = text.length,
IN_TEXT = 0,
IN_TAG_TYPE = 1,
IN_TAG = 2,
Function buildTree
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildTree(tokens, kind, stack, customTags) {
var instructions = [],
opener = null,
token = null;
Function s
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
s: function(val, ctx, partials, inverted, start, end, tags) {
Function ls
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ls: function(val, ctx, partials, inverted, start, end, tags) {
Avoid deeply nested control flow statements. Open
Open
if (tag) {
i++;
}
Avoid deeply nested control flow statements. Open
Open
if (tagType == '{') {
if (ctag == '}}') {
i++;
} else {
cleanTripleStache(tokens[tokens.length - 1]);
Function section
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function section(nodes, id, method, start, end, tags) {
Function ho
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ho: function(val, cx, partials, text, tags) {