Showing 6 of 26 total issues
Function load
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function (name, req, onload, config) {
var url, extension;
if (config.paths && config.paths[name]) {
name = config.paths[name];
Function exports
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
copy: {
Function exports
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
jsmeter: {
Function parseOnBrowser
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var parseOnBrowser = function(text, css_result) {
var root;
if (typeof text === "string") {
root = document.createElement("div");
root.insertAdjacentHTML("afterbegin", text);
Function loadFiles
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var loadFiles = function (imports) {
let reqFiles = []
imports.forEach(path => {
// 路径转换
let filePath = normalize(path, baseUrl, false)
Function BaseNode
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var BaseNode = function(tagName) {
this.tagName = tagName;
this.childs = [];
this.appendChild = function(node) {
this[node.tagName] = node;