edgardleal/require-vuejs

View on GitHub

Showing 6 of 26 total issues

Function load has 95 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        load: function (name, req, onload, config) {
            var url, extension; 

            if (config.paths && config.paths[name]) {
                name = config.paths[name];
Severity: Major
Found in src/plugin.js - About 3 hrs to fix

    Function exports has 80 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(grunt) {
    
        grunt.initConfig({
            pkg: grunt.file.readJSON("package.json"),
            copy: {
    Severity: Major
    Found in Gruntfile.js - About 3 hrs to fix

      Function exports has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function(grunt) {
      
          grunt.initConfig({
              pkg: grunt.file.readJSON("package.json"),
              jsmeter: {
      Severity: Minor
      Found in examples/Gruntfile.js - About 1 hr to fix

        Function parseOnBrowser has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            var parseOnBrowser = function(text, css_result) {
                var root;
                if (typeof text === "string") {
                    root = document.createElement("div");
                    root.insertAdjacentHTML("afterbegin", text);
        Severity: Minor
        Found in src/template_parser.js - About 1 hr to fix

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

              var loadFiles = function (imports) {
                  let reqFiles = []
                  imports.forEach(path => {
                      // 路径转换
                      let filePath = normalize(path, baseUrl, false)
          Severity: Minor
          Found in src/style_import.js - About 1 hr to fix

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

                var BaseNode = function(tagName) {
                    this.tagName = tagName;
                    this.childs = [];
                    this.appendChild = function(node) {
                        this[node.tagName] = node;
            Severity: Minor
            Found in spec/documentMock.js - About 1 hr to fix
              Severity
              Category
              Status
              Source
              Language