packages/vue-template-compiler/browser.js

Summary

Maintainability
F
11 mos
Test Coverage

File browser.js has 4505 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function (global, factory) {
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
  (global = global || self, factory(global.VueTemplateCompiler = {}));
}(this, function (exports) { 'use strict';
Severity: Major
Found in packages/vue-template-compiler/browser.js - About 1 wk to fix

    Function parse has 275 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function parse (
        template,
        options
      ) {
        warn$1 = options.warn || baseWarn;
    Severity: Major
    Found in packages/vue-template-compiler/browser.js - About 1 day to fix

      Function he has 240 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        var he = createCommonjsModule(function (module, exports) {
        (function(root) {
      
            // Detect free variables `exports`.
            var freeExports = exports;
      Severity: Major
      Found in packages/vue-template-compiler/browser.js - About 1 day to fix

        Function parseHTML has 213 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function parseHTML (html, options) {
            var stack = [];
            var expectHTML = options.expectHTML;
            var isUnaryTag$$1 = options.isUnaryTag || no;
            var canBeLeftOpenTag$$1 = options.canBeLeftOpenTag || no;
        Severity: Major
        Found in packages/vue-template-compiler/browser.js - About 1 day to fix

          Function processAttrs has 122 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function processAttrs (el) {
              var list = el.attrsList;
              var i, l, name, rawName, value, modifiers, syncGen, isDynamic;
              for (i = 0, l = list.length; i < l; i++) {
                name = rawName = list[i].name;
          Severity: Major
          Found in packages/vue-template-compiler/browser.js - About 4 hrs to fix

            Function parseComponent has 109 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function parseComponent (
                content,
                options
              ) {
                if ( options === void 0 ) options = {};
            Severity: Major
            Found in packages/vue-template-compiler/browser.js - About 4 hrs to fix

              Function processSlotContent has 103 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function processSlotContent (el) {
                  var slotScope;
                  if (el.tag === 'template') {
                    slotScope = getAndRemoveAttr(el, 'scope');
                    /* istanbul ignore if */
              Severity: Major
              Found in packages/vue-template-compiler/browser.js - About 4 hrs to fix

                Function createCompileToFunctionFn has 78 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function createCompileToFunctionFn (compile) {
                    var cache = Object.create(null);
                
                    return function compileToFunctions (
                      template,
                Severity: Major
                Found in packages/vue-template-compiler/browser.js - About 3 hrs to fix

                  Function parseFilters has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function parseFilters (exp) {
                      var inSingle = false;
                      var inDouble = false;
                      var inTemplateString = false;
                      var inRegex = false;
                  Severity: Major
                  Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                    Function compileToFunctions has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        return function compileToFunctions (
                          template,
                          options,
                          vm
                        ) {
                    Severity: Major
                    Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                      Function start has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            start: function start (tag, attrs, unary, start$1, end) {
                              // check namespace.
                              // inherit parent ns if there is one
                              var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
                      
                      
                      Severity: Major
                      Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                        Function chars has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              chars: function chars (text, start, end) {
                                if (!currentParent) {
                                  {
                                    if (text === template) {
                                      warnOnce(
                        Severity: Major
                        Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                          Function genData$2 has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function genData$2 (el, state) {
                              var data = '{';
                          
                              // directives first.
                              // directives may mutate the el's other properties before they are generated.
                          Severity: Major
                          Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                            Function decode has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                  var decode = function(html, options) {
                                      options = merge(options, decode.options);
                                      var strict = options.strict;
                                      if (strict && regexInvalidEntity.test(html)) {
                                          parseError('malformed character reference');
                            Severity: Major
                            Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                              Function addHandler has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function addHandler (
                                  el,
                                  name,
                                  value,
                                  modifiers,
                              Severity: Major
                              Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                                Function createCompilerCreator has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function createCompilerCreator (baseCompile) {
                                    return function createCompiler (baseOptions) {
                                      function compile (
                                        template,
                                        options
                                Severity: Major
                                Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                                  Function createCompiler has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      return function createCompiler (baseOptions) {
                                        function compile (
                                          template,
                                          options
                                        ) {
                                  Severity: Major
                                  Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                                    Function encode has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                          var encode = function(string, options) {
                                              options = merge(options, encode.options);
                                              var strict = options.strict;
                                              if (strict && regexInvalidRawCodePoint.test(string)) {
                                                  parseError('forbidden code point');
                                    Severity: Major
                                    Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                                      Function genHandler has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        function genHandler (handler) {
                                          if (!handler) {
                                            return 'function(){}'
                                          }
                                      
                                      
                                      Severity: Major
                                      Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

                                        Function preTransformNode has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function preTransformNode (el, options) {
                                            if (el.tag === 'input') {
                                              var map = el.attrsMap;
                                              if (!map['v-model']) {
                                                return
                                        Severity: Major
                                        Found in packages/vue-template-compiler/browser.js - About 2 hrs to fix

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

                                                function compile (
                                                  template,
                                                  options
                                                ) {
                                                  var finalOptions = Object.create(baseOptions);
                                          Severity: Minor
                                          Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                            Function defineReactive$$1 has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                              function defineReactive$$1 (
                                                obj,
                                                key,
                                                val,
                                                customSetter,
                                            Severity: Minor
                                            Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

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

                                                  function closeElement (element) {
                                                    trimEndingWhitespace(element);
                                                    if (!inVPre && !element.processed) {
                                                      element = processElement(element, options);
                                                    }
                                              Severity: Minor
                                              Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                Function parseEndTag has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                    function parseEndTag (tagName, start, end) {
                                                      var pos, lowerCasedTagName;
                                                      if (start == null) { start = index; }
                                                      if (end == null) { end = index; }
                                                
                                                
                                                Severity: Minor
                                                Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

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

                                                    function genDefaultModel (
                                                      el,
                                                      value,
                                                      modifiers
                                                    ) {
                                                  Severity: Minor
                                                  Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                    Function walk has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                      function walk (node, isRoot) {
                                                        if (isUnOptimizableTree(node)) {
                                                          node.ssrOptimizability = optimizability.FALSE;
                                                          return
                                                        }
                                                    Severity: Minor
                                                    Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

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

                                                        function elementToOpenTagSegments (el, state) {
                                                          applyModelTransform(el, state);
                                                          var binding;
                                                          var segments = [{ type: RAW, value: ("<" + (el.tag)) }];
                                                          // attrs
                                                      Severity: Minor
                                                      Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                        Function handleStartTag has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                            function handleStartTag (match) {
                                                              var tagName = match.tagName;
                                                              var unarySlash = match.unarySlash;
                                                        
                                                              if (expectHTML) {
                                                        Severity: Minor
                                                        Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

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

                                                            function genElement (el, state) {
                                                              if (el.parent) {
                                                                el.pre = el.pre || el.parent.pre;
                                                              }
                                                          
                                                          
                                                          Severity: Minor
                                                          Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

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

                                                              var deIndent = function deindent (str) {
                                                                if (!needFixRE.test(str)) {
                                                                  return str
                                                                }
                                                                var lines = str.split(splitRE);
                                                            Severity: Minor
                                                            Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                              Function parseModel has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                                function parseModel (val) {
                                                                  // Fix https://github.com/vuejs/vue/pull/7730
                                                                  // allow v-model="obj.val " (trailing whitespace)
                                                                  val = val.trim();
                                                                  len = val.length;
                                                              Severity: Minor
                                                              Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                                Function genScopedSlots has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                  function genScopedSlots (
                                                                    el,
                                                                    slots,
                                                                    state
                                                                  ) {
                                                                Severity: Minor
                                                                Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                                  Function model$1 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                    function model$1 (
                                                                      el,
                                                                      dir,
                                                                      _warn
                                                                    ) {
                                                                  Severity: Minor
                                                                  Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

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

                                                                      function optimizeSiblings (el) {
                                                                        var children = el.children;
                                                                        var optimizedChildren = [];
                                                                    
                                                                        var currentOptimizableGroup = [];
                                                                    Severity: Minor
                                                                    Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                                      Function set has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                        function set (target, key, val) {
                                                                          if (isUndef(target) || isPrimitive(target)
                                                                          ) {
                                                                            warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
                                                                          }
                                                                      Severity: Minor
                                                                      Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                                        Function generateCodeFrame has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                          function generateCodeFrame (
                                                                            source,
                                                                            start,
                                                                            end
                                                                          ) {
                                                                        Severity: Minor
                                                                        Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                                          Function mergeDataOrFn has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                            function mergeDataOrFn (
                                                                              parentVal,
                                                                              childVal,
                                                                              vm
                                                                            ) {
                                                                          Severity: Minor
                                                                          Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                                            Function parseText has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                              function parseText (
                                                                                text,
                                                                                delimiters
                                                                              ) {
                                                                                var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;
                                                                            Severity: Minor
                                                                            Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

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

                                                                                function checkNode (node, warn) {
                                                                                  if (node.type === 1) {
                                                                                    for (var name in node.attrsMap) {
                                                                                      if (dirRE.test(name)) {
                                                                                        var value = node.attrsMap[name];
                                                                              Severity: Minor
                                                                              Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

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

                                                                                    function start (
                                                                                      tag,
                                                                                      attrs,
                                                                                      unary,
                                                                                      start,
                                                                                Severity: Minor
                                                                                Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

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

                                                                                    function markStatic (node) {
                                                                                      node.static = isStatic(node);
                                                                                      if (node.type === 1) {
                                                                                        // do not make component slot content static. this avoids
                                                                                        // 1. components not able to mutate slot nodes
                                                                                  Severity: Minor
                                                                                  Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                                                    Function VNode has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                    Open

                                                                                        tag,
                                                                                        data,
                                                                                        children,
                                                                                        text,
                                                                                        elm,
                                                                                    Severity: Major
                                                                                    Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                                                      Function addHandler has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                      Open

                                                                                          el,
                                                                                          name,
                                                                                          value,
                                                                                          modifiers,
                                                                                          important,
                                                                                      Severity: Major
                                                                                      Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                                                        Function addDirective has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                        Open

                                                                                            el,
                                                                                            name,
                                                                                            rawName,
                                                                                            value,
                                                                                            arg,
                                                                                        Severity: Major
                                                                                        Found in packages/vue-template-compiler/browser.js - About 1 hr to fix

                                                                                          Avoid deeply nested control flow statements.
                                                                                          Open

                                                                                                      if (commentEnd >= 0) {
                                                                                                        if (options.shouldKeepComment) {
                                                                                                          options.comment(html.substring(4, commentEnd), index, index + commentEnd + 3);
                                                                                                        }
                                                                                                        advance(commentEnd + 3);
                                                                                          Severity: Major
                                                                                          Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                            Avoid deeply nested control flow statements.
                                                                                            Open

                                                                                                        if (next < 0) { break }
                                                                                            Severity: Major
                                                                                            Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                              Avoid deeply nested control flow statements.
                                                                                              Open

                                                                                                        if (isDynamic) {
                                                                                                          name = name.slice(1, -1);
                                                                                                        }
                                                                                              Severity: Major
                                                                                              Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                Avoid deeply nested control flow statements.
                                                                                                Open

                                                                                                            if (cur < min) {
                                                                                                              min = cur;
                                                                                                            }
                                                                                                Severity: Major
                                                                                                Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                  Avoid deeply nested control flow statements.
                                                                                                  Open

                                                                                                              if (modifiers.prop && !isDynamic) {
                                                                                                                name = camelize(name);
                                                                                                                if (name === 'innerHtml') { name = 'innerHTML'; }
                                                                                                              }
                                                                                                  Severity: Major
                                                                                                  Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                    Avoid deeply nested control flow statements.
                                                                                                    Open

                                                                                                              if (name === 'model') {
                                                                                                                checkForAliasModel(el, value);
                                                                                                              }
                                                                                                    Severity: Major
                                                                                                    Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                      Avoid deeply nested control flow statements.
                                                                                                      Open

                                                                                                                  if (end > count) {
                                                                                                                    var length$1 = Math.min(end - count, lineLength);
                                                                                                                    res.push("   |  " + repeat$1("^", length$1));
                                                                                                                  }
                                                                                                      Severity: Major
                                                                                                      Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                        Avoid deeply nested control flow statements.
                                                                                                        Open

                                                                                                                    if (modifiers.sync) {
                                                                                                                      syncGen = genAssignmentCode(value, "$event");
                                                                                                                      if (!isDynamic) {
                                                                                                                        addHandler(
                                                                                                                          el,
                                                                                                        Severity: Major
                                                                                                        Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                          Avoid deeply nested control flow statements.
                                                                                                          Open

                                                                                                                      if (conditionalEnd >= 0) {
                                                                                                                        advance(conditionalEnd + 2);
                                                                                                                        continue
                                                                                                                      }
                                                                                                          Severity: Major
                                                                                                          Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                            Avoid deeply nested control flow statements.
                                                                                                            Open

                                                                                                                        if (modifiers.camel && !isDynamic) {
                                                                                                                          name = camelize(name);
                                                                                                                        }
                                                                                                            Severity: Major
                                                                                                            Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                              Avoid deeply nested control flow statements.
                                                                                                              Open

                                                                                                                      if (c === 0x60 && prev !== 0x5C) { inTemplateString = false; }
                                                                                                              Severity: Major
                                                                                                              Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                Open

                                                                                                                            if (shouldIgnoreFirstNewline(startTagMatch.tagName, html)) {
                                                                                                                              advance(1);
                                                                                                                            }
                                                                                                                Severity: Major
                                                                                                                Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                  Open

                                                                                                                        } else if (inRegex) {
                                                                                                                          if (c === 0x2f && prev !== 0x5C) { inRegex = false; }
                                                                                                                        } else if (
                                                                                                                          c === 0x7C && // pipe
                                                                                                                          exp.charCodeAt(i + 1) !== 0x7C &&
                                                                                                                  Severity: Major
                                                                                                                  Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                    Open

                                                                                                                              if (arg) {
                                                                                                                                name = name.slice(0, -(arg.length + 1));
                                                                                                                                if (dynamicArgRE.test(arg)) {
                                                                                                                                  arg = arg.slice(1, -1);
                                                                                                                                  isDynamic = true;
                                                                                                                    Severity: Major
                                                                                                                    Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                      Open

                                                                                                                                  if (name === 'v-for') {
                                                                                                                                    checkFor(node, ("v-for=\"" + value + "\""), warn, range);
                                                                                                                                  } else if (name === 'v-slot' || name[0] === '#') {
                                                                                                                                    checkFunctionParameterExpression(value, (name + "=\"" + value + "\""), warn, range);
                                                                                                                                  } else if (onRE.test(name)) {
                                                                                                                      Severity: Major
                                                                                                                      Found in packages/vue-template-compiler/browser.js - About 45 mins to fix

                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                        Open

                                                                                                                              } else if (
                                                                                                                                c === 0x7C && // pipe
                                                                                                                                exp.charCodeAt(i + 1) !== 0x7C &&
                                                                                                                                exp.charCodeAt(i - 1) !== 0x7C &&
                                                                                                                                !curly && !square && !paren
                                                                                                                        Severity: Major
                                                                                                                        Found in packages/vue-template-compiler/browser.js - About 40 mins to fix

                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                          Open

                                                                                                                              } else if (
                                                                                                                                shouldObserve &&
                                                                                                                                !isServerRendering() &&
                                                                                                                                (Array.isArray(value) || isPlainObject(value)) &&
                                                                                                                                Object.isExtensible(value) &&
                                                                                                                          Severity: Major
                                                                                                                          Found in packages/vue-template-compiler/browser.js - About 40 mins to fix

                                                                                                                            Function defineReactive$$1 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                                obj,
                                                                                                                                key,
                                                                                                                                val,
                                                                                                                                customSetter,
                                                                                                                                shallow
                                                                                                                            Severity: Minor
                                                                                                                            Found in packages/vue-template-compiler/browser.js - About 35 mins to fix

                                                                                                                              Function genChildren has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                  el,
                                                                                                                                  state,
                                                                                                                                  checkSkip,
                                                                                                                                  altGenElement,
                                                                                                                                  altGenNode
                                                                                                                              Severity: Minor
                                                                                                                              Found in packages/vue-template-compiler/browser.js - About 35 mins to fix

                                                                                                                                Function addAttr has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                  function addAttr (el, name, value, range, dynamic) {
                                                                                                                                Severity: Minor
                                                                                                                                Found in packages/vue-template-compiler/browser.js - About 35 mins to fix

                                                                                                                                  Function addProp has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                    function addProp (el, name, value, range, dynamic) {
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in packages/vue-template-compiler/browser.js - About 35 mins to fix

                                                                                                                                    Function start has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                          start: function start (tag, attrs, unary, start$1, end) {
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in packages/vue-template-compiler/browser.js - About 35 mins to fix

                                                                                                                                      Function start has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                      Open

                                                                                                                                            tag,
                                                                                                                                            attrs,
                                                                                                                                            unary,
                                                                                                                                            start,
                                                                                                                                            end
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in packages/vue-template-compiler/browser.js - About 35 mins to fix

                                                                                                                                        Function checkIdentifier has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                            ident,
                                                                                                                                            type,
                                                                                                                                            text,
                                                                                                                                            warn,
                                                                                                                                            range
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in packages/vue-template-compiler/browser.js - About 35 mins to fix

                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                          Open

                                                                                                                                              return val
                                                                                                                                          Severity: Major
                                                                                                                                          Found in packages/vue-template-compiler/browser.js - About 30 mins to fix

                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                            Open

                                                                                                                                                          return $0;
                                                                                                                                            Severity: Major
                                                                                                                                            Found in packages/vue-template-compiler/browser.js - About 30 mins to fix

                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                              Open

                                                                                                                                                    return ("function($event){" + code + handlerCode + "}")
                                                                                                                                              Severity: Major
                                                                                                                                              Found in packages/vue-template-compiler/browser.js - About 30 mins to fix

                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                Open

                                                                                                                                                                  return codePointToSymbol(codePoint, strict);
                                                                                                                                                Severity: Major
                                                                                                                                                Found in packages/vue-template-compiler/browser.js - About 30 mins to fix

                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                  Open

                                                                                                                                                        return code
                                                                                                                                                  Severity: Major
                                                                                                                                                  Found in packages/vue-template-compiler/browser.js - About 30 mins to fix

                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                    Open

                                                                                                                                                          return genSlot(el, state)
                                                                                                                                                    Severity: Major
                                                                                                                                                    Found in packages/vue-template-compiler/browser.js - About 30 mins to fix

                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                      Open

                                                                                                                                                            return genChildren(el, state) || 'void 0'
                                                                                                                                                      Severity: Major
                                                                                                                                                      Found in packages/vue-template-compiler/browser.js - About 30 mins to fix

                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var he = createCommonjsModule(function (module, exports) {
                                                                                                                                                          (function(root) {
                                                                                                                                                        
                                                                                                                                                              // Detect free variables `exports`.
                                                                                                                                                              var freeExports = exports;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 4 mos to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3037..3374

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 20997.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function parse (
                                                                                                                                                            template,
                                                                                                                                                            options
                                                                                                                                                          ) {
                                                                                                                                                            warn$1 = options.warn || baseWarn;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 2 wks to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3873..4198
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3623..3948

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 2338.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processAttrs (el) {
                                                                                                                                                            var list = el.attrsList;
                                                                                                                                                            var i, l, name, rawName, value, modifiers, syncGen, isDynamic;
                                                                                                                                                            for (i = 0, l = list.length; i < l; i++) {
                                                                                                                                                              name = rawName = list[i].name;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 6 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4555..4686
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4305..4436

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 1023.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processSlotContent (el) {
                                                                                                                                                            var slotScope;
                                                                                                                                                            if (el.tag === 'template') {
                                                                                                                                                              slotScope = getAndRemoveAttr(el, 'scope');
                                                                                                                                                              /* istanbul ignore if */
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 4 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4392..4509
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4142..4259

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 807.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          {
                                                                                                                                                            var hasConsole = typeof console !== 'undefined';
                                                                                                                                                            var classifyRE = /(?:^|[-_])(\w)/g;
                                                                                                                                                            var classify = function (str) { return str
                                                                                                                                                              .replace(classifyRE, function (c) { return c.toUpperCase(); })
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 4 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 898..981
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 900..983

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 801.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function parseFilters (exp) {
                                                                                                                                                            var inSingle = false;
                                                                                                                                                            var inDouble = false;
                                                                                                                                                            var inTemplateString = false;
                                                                                                                                                            var inRegex = false;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 4 days to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 556..636
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2572..2652
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2667..2747
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1727..1807

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 798.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genData$2 (el, state) {
                                                                                                                                                            var data = '{';
                                                                                                                                                        
                                                                                                                                                            // directives first.
                                                                                                                                                            // directives may mutate the el's other properties before they are generated.
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 4 days to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3505..3587
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5423..5505
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5173..5255
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4091..4173

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 733.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function createCompileToFunctionFn (compile) {
                                                                                                                                                            var cache = Object.create(null);
                                                                                                                                                        
                                                                                                                                                            return function compileToFunctions (
                                                                                                                                                              template,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 4 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6451..6549
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6201..6299

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 693.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function addHandler (
                                                                                                                                                            el,
                                                                                                                                                            name,
                                                                                                                                                            value,
                                                                                                                                                            modifiers,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 3 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2779..2860
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2874..2955

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 554.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genHandler (handler) {
                                                                                                                                                            if (!handler) {
                                                                                                                                                              return 'function(){}'
                                                                                                                                                            }
                                                                                                                                                        
                                                                                                                                                        
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 3 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5127..5184
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4877..4934
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3794..3851

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 521.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function preTransformNode (el, options) {
                                                                                                                                                            if (el.tag === 'input') {
                                                                                                                                                              var map = el.attrsMap;
                                                                                                                                                              if (!map['v-model']) {
                                                                                                                                                                return
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 2 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4771..4831
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4521..4581
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3303..3363

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 481.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genElement (el, state) {
                                                                                                                                                            if (el.parent) {
                                                                                                                                                              el.pre = el.pre || el.parent.pre;
                                                                                                                                                            }
                                                                                                                                                        
                                                                                                                                                        
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 days to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3353..3390
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5272..5309
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5022..5059
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3939..3976

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 466.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function elementToOpenTagSegments (el, state) {
                                                                                                                                                            applyModelTransform(el, state);
                                                                                                                                                            var binding;
                                                                                                                                                            var segments = [{ type: RAW, value: ("<" + (el.tag)) }];
                                                                                                                                                            // attrs
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 2 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6144..6189
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5894..5939
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5256..5301

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 452.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function generateCodeFrame (
                                                                                                                                                            source,
                                                                                                                                                            start,
                                                                                                                                                            end
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 days to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 4009..4044
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6388..6423
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6138..6173
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4587..4622

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 442.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function defineReactive$$1 (
                                                                                                                                                            obj,
                                                                                                                                                            key,
                                                                                                                                                            val,
                                                                                                                                                            customSetter,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 2 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1193..1252
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1195..1254

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 432.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function walk (node, isRoot) {
                                                                                                                                                            if (isUnOptimizableTree(node)) {
                                                                                                                                                              node.ssrOptimizability = optimizability.FALSE;
                                                                                                                                                              return
                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 2 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5916..5956
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5666..5706
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5028..5068

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 394.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genDefaultModel (
                                                                                                                                                            el,
                                                                                                                                                            value,
                                                                                                                                                            modifiers
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 2 days to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4960..5011
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4710..4761

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 363.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genDirectives (el, state) {
                                                                                                                                                            var dirs = el.directives;
                                                                                                                                                            if (!dirs) { return }
                                                                                                                                                            var res = 'directives:[';
                                                                                                                                                            var hasRuntime = false;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3589..3612
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5507..5530
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5257..5280
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4175..4198

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 349.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function parseText (
                                                                                                                                                            text,
                                                                                                                                                            delimiters
                                                                                                                                                          ) {
                                                                                                                                                            var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 663..696
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2679..2712
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2774..2807
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1834..1867

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 338.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genScopedSlots (
                                                                                                                                                            el,
                                                                                                                                                            slots,
                                                                                                                                                            state
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3630..3682
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5546..5598
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5296..5348
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4216..4268

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 327.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function checkNode (node, warn) {
                                                                                                                                                            if (node.type === 1) {
                                                                                                                                                              for (var name in node.attrsMap) {
                                                                                                                                                                if (dirRE.test(name)) {
                                                                                                                                                                  var value = node.attrsMap[name];
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3905..3932
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6284..6311
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6034..6061
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4483..4510

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 325.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function markStaticRoots (node, isInFor) {
                                                                                                                                                            if (node.type === 1) {
                                                                                                                                                              if (node.static || node.once) {
                                                                                                                                                                node.staticInFor = isInFor;
                                                                                                                                                              }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2176..2204
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3657..3685

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 293.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function model$1 (
                                                                                                                                                            el,
                                                                                                                                                            dir,
                                                                                                                                                            _warn
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4855..4898
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4605..4648

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 293.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function parseModel (val) {
                                                                                                                                                            // Fix https://github.com/vuejs/vue/pull/7730
                                                                                                                                                            // allow v-model="obj.val " (trailing whitespace)
                                                                                                                                                            val = val.trim();
                                                                                                                                                            len = val.length;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 766..804
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3739..3777
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3489..3527
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2269..2307

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 286.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var VNode = function VNode (
                                                                                                                                                            tag,
                                                                                                                                                            data,
                                                                                                                                                            children,
                                                                                                                                                            text,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2684..2717
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 749..782
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 529..562
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 531..564
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1034..1067

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 285.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genCheckboxModel (
                                                                                                                                                            el,
                                                                                                                                                            value,
                                                                                                                                                            modifiers
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4900..4929
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4650..4679
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3440..3469

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 277.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function markStatic (node) {
                                                                                                                                                            node.static = isStatic(node);
                                                                                                                                                            if (node.type === 1) {
                                                                                                                                                              // do not make component slot content static. this avoids
                                                                                                                                                              // 1. components not able to mutate slot nodes
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2144..2174
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3625..3655

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 268.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genScopedSlot (
                                                                                                                                                            el,
                                                                                                                                                            state
                                                                                                                                                          ) {
                                                                                                                                                            var isLegacySyntax = el.attrsMap['slot-scope'];
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3703..3726
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5619..5642
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5369..5392
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4289..4312

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 267.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genFor (
                                                                                                                                                            el,
                                                                                                                                                            state,
                                                                                                                                                            altGen,
                                                                                                                                                            altHelper
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5391..5421
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5141..5171

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 267.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genSlot (el, state) {
                                                                                                                                                            var slotName = el.slotName || '"default"';
                                                                                                                                                            var children = genChildren(el, state);
                                                                                                                                                            var res = "_t(" + slotName + (children ? (",function(){return " + children + "}") : '');
                                                                                                                                                            var attrs = el.attrs || el.dynamicAttrs
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5724..5747
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5474..5497
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4394..4417

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 266.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function elementToSegments (el, state) {
                                                                                                                                                            // v-for / v-if
                                                                                                                                                            if (el.for && !el.forProcessed) {
                                                                                                                                                              el.forProcessed = true;
                                                                                                                                                              return [{
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6116..6142
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5866..5892
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5228..5254

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 256.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function set (target, key, val) {
                                                                                                                                                            if (isUndef(target) || isPrimitive(target)
                                                                                                                                                            ) {
                                                                                                                                                              warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1259..1288
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1261..1290

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 248.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function flattenSegments (segments) {
                                                                                                                                                            var mergedSegments = [];
                                                                                                                                                            var textBuffer = '';
                                                                                                                                                        
                                                                                                                                                            var pushBuffer = function () {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 1 day to fix
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5341..5367

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 242.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          strats.watch = function (
                                                                                                                                                            parentVal,
                                                                                                                                                            childVal,
                                                                                                                                                            vm,
                                                                                                                                                            key
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1490..1518
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1492..1520

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 239.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genChildren (
                                                                                                                                                            el,
                                                                                                                                                            state,
                                                                                                                                                            checkSkip,
                                                                                                                                                            altGenElement,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3728..3755
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5644..5671
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5394..5421
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4314..4341

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 237.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function optimizeSiblings (el) {
                                                                                                                                                            var children = el.children;
                                                                                                                                                            var optimizedChildren = [];
                                                                                                                                                        
                                                                                                                                                            var currentOptimizableGroup = [];
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5958..5992
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5708..5742
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5070..5104

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 227.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genSSRElement (el, state) {
                                                                                                                                                            if (el.for && !el.forProcessed) {
                                                                                                                                                              return genFor(el, state, genSSRElement)
                                                                                                                                                            } else if (el.if && !el.ifProcessed) {
                                                                                                                                                              return genIf(el, state, genSSRElement)
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6049..6077
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5799..5827
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5161..5189

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 226.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processRawAttrs (el) {
                                                                                                                                                            var list = el.attrsList;
                                                                                                                                                            var len = list.length;
                                                                                                                                                            if (len) {
                                                                                                                                                              var attrs = el.attrs = new Array(len);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1544..1563
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4206..4225
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3956..3975
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2736..2755

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 218.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function nodesToSegments (
                                                                                                                                                            children,
                                                                                                                                                            state
                                                                                                                                                          ) {
                                                                                                                                                            var segments = [];
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6207..6227
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5957..5977
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5319..5339

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 216.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function mergeDataOrFn (
                                                                                                                                                            parentVal,
                                                                                                                                                            childVal,
                                                                                                                                                            vm
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3053..3093
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 1196..1236
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1361..1401
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1363..1403
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1403..1443

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 214.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function parseFor (exp) {
                                                                                                                                                            var inMatch = exp.match(forAliasRE);
                                                                                                                                                            if (!inMatch) { return }
                                                                                                                                                            var res = {};
                                                                                                                                                            res.for = inMatch[2].trim();
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1642..1659
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4304..4321
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4054..4071
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2834..2851

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 213.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genProps (props) {
                                                                                                                                                            var staticProps = "";
                                                                                                                                                            var dynamicProps = "";
                                                                                                                                                            for (var i = 0; i < props.length; i++) {
                                                                                                                                                              var prop = props[i];
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5759..5777
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5509..5527
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4429..4447

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 213.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genHandlers (
                                                                                                                                                            events,
                                                                                                                                                            isNative
                                                                                                                                                          ) {
                                                                                                                                                            var prefix = isNative ? 'nativeOn:' : 'on:';
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5104..5125
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4854..4875
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3771..3792

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 212.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genOnce (el, state) {
                                                                                                                                                            el.onceProcessed = true;
                                                                                                                                                            if (el.if && !el.ifProcessed) {
                                                                                                                                                              return genIf(el, state)
                                                                                                                                                            } else if (el.staticInFor) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5327..5352
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5077..5102

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 210.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function mergeData (to, from) {
                                                                                                                                                            if (!from) { return to }
                                                                                                                                                            var key, toVal, fromVal;
                                                                                                                                                        
                                                                                                                                                            var keys = hasSymbol
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3023..3048
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 1166..1191
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1331..1356
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1333..1358
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1373..1398

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 204.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                            function start (
                                                                                                                                                              tag,
                                                                                                                                                              attrs,
                                                                                                                                                              unary,
                                                                                                                                                              start,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 1 day to fix
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 595..629

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 204.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var CodegenState = function CodegenState (options) {
                                                                                                                                                            this.options = options;
                                                                                                                                                            this.warn = options.warn || baseWarn;
                                                                                                                                                            this.transforms = pluckModuleFunction(options.modules, 'transformCode');
                                                                                                                                                            this.dataGenFns = pluckModuleFunction(options.modules, 'genData');
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3326..3337
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5244..5255
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4994..5005
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3911..3922

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 204.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genComponentModel (
                                                                                                                                                            el,
                                                                                                                                                            value,
                                                                                                                                                            modifiers
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 703..730
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3676..3703
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3426..3453
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2206..2233

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 203.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          if (typeof Set !== 'undefined' && isNative(Set)) {
                                                                                                                                                            // use native Set when available.
                                                                                                                                                            _Set = Set;
                                                                                                                                                          } else {
                                                                                                                                                            // a non-standard Set polyfill that only works with primitive keys.
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 day to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 747..768
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 749..770
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 752..773

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 203.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          methodsToPatch.forEach(function (method) {
                                                                                                                                                            // cache original method
                                                                                                                                                            var original = arrayProto[method];
                                                                                                                                                            def(arrayMethods, method, function mutator () {
                                                                                                                                                              var args = [], len = arguments.length;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2750..2774
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 858..882
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1055..1079
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1057..1081
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1100..1124

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 199.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function getNormalizationType (
                                                                                                                                                            children,
                                                                                                                                                            maybeComponent
                                                                                                                                                          ) {
                                                                                                                                                            var res = 0;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 day to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3761..3782
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5677..5698
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5427..5448
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4347..4368

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 198.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genAttrSegment (name, value) {
                                                                                                                                                            if (plainStringRE.test(value)) {
                                                                                                                                                              // force double quote
                                                                                                                                                              value = value.replace(/^'|'$/g, '"');
                                                                                                                                                              // force enumerated attr to "true"
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5841..5863
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5591..5613
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4953..4975

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 193.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function childrenToSegments (el, state) {
                                                                                                                                                            var binding;
                                                                                                                                                            if ((binding = el.attrsMap['v-html'])) {
                                                                                                                                                              return [{ type: EXPRESSION, value: ("_s(" + binding + ")") }]
                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6191..6205
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5941..5955
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5303..5317

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 179.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function applyModelTransform (el, state) {
                                                                                                                                                            if (el.directives) {
                                                                                                                                                              for (var i = 0; i < el.directives.length; i++) {
                                                                                                                                                                var dir = el.directives[i];
                                                                                                                                                                if (dir.name === 'model') {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 6 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5795..5809
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5545..5559
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4907..4921

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 174.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genInlineTemplate (el, state) {
                                                                                                                                                            var ast = el.children[0];
                                                                                                                                                            if (el.children.length !== 1 || ast.type !== 1) {
                                                                                                                                                              state.warn(
                                                                                                                                                                'Inline-template components must have exactly one child element.',
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5532..5544
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5282..5294

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 173.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function observe (value, asRootData) {
                                                                                                                                                            if (!isObject(value) || value instanceof VNode) {
                                                                                                                                                              return
                                                                                                                                                            }
                                                                                                                                                            var ob;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 6 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2859..2879
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 971..991
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1168..1188
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1170..1190
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1209..1229

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 169.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                            function checkAttrs (block, attrs) {
                                                                                                                                                              for (var i = 0; i < attrs.length; i++) {
                                                                                                                                                                var attr = attrs[i];
                                                                                                                                                                if (attr.name === 'lang') {
                                                                                                                                                                  block.lang = attr.value;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 6 hrs to fix
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 631..647

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 168.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function transformNode$1 (el, options) {
                                                                                                                                                            var warn = options.warn || baseWarn;
                                                                                                                                                            var staticStyle = getAndRemoveAttr(el, 'style');
                                                                                                                                                            if (staticStyle) {
                                                                                                                                                              /* istanbul ignore if */
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2988..3012
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3083..3107

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 166.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genIfConditions (
                                                                                                                                                            conditions,
                                                                                                                                                            state,
                                                                                                                                                            altGen,
                                                                                                                                                            altEmpty
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 6 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3445..3470
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5364..5389
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5114..5139
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4031..4056

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 165.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function transformNode (el, options) {
                                                                                                                                                            var warn = options.warn || baseWarn;
                                                                                                                                                            var staticClass = getAndRemoveAttr(el, 'class');
                                                                                                                                                            if (staticClass) {
                                                                                                                                                              var res = parseText(staticClass, options.delimiters);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2945..2967
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3040..3062

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 164.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processKey (el) {
                                                                                                                                                            var exp = getBindingAttr(el, 'key');
                                                                                                                                                            if (exp) {
                                                                                                                                                              {
                                                                                                                                                                if (el.tag === 'template') {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4252..4277
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4002..4027

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 162.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function checkExpression (exp, text, warn, range) {
                                                                                                                                                            try {
                                                                                                                                                              new Function(("return " + exp));
                                                                                                                                                            } catch (e) {
                                                                                                                                                              var keywordMatch = exp.replace(stripStringRE, '').match(prohibitedKeywordRE);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 6 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3970..3990
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6349..6369
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6099..6119
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4548..4568

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 158.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var config = ({
                                                                                                                                                            /**
                                                                                                                                                             * Option merge strategies (used in core/util/options)
                                                                                                                                                             */
                                                                                                                                                            // $flow-disable-line
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 6 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 797..889
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 799..891

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 158.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                            function end (tag, start) {
                                                                                                                                                              if (depth === 1 && currentBlock) {
                                                                                                                                                                currentBlock.end = start;
                                                                                                                                                                var text = content.slice(currentBlock.start, currentBlock.end);
                                                                                                                                                                if (options.deindent !== false) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 6 hrs to fix
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 649..665

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 158.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          if (typeof Promise !== 'undefined' && isNative(Promise)) ; else if (!isIE && typeof MutationObserver !== 'undefined' && (
                                                                                                                                                            isNative(MutationObserver) ||
                                                                                                                                                            // PhantomJS and iOS 7.x
                                                                                                                                                            MutationObserver.toString() === '[object MutationObserverConstructor]'
                                                                                                                                                          )) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 6 hrs to fix
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1627..1641

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 156.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function isStatic (node) {
                                                                                                                                                            if (node.type === 2) { // expression
                                                                                                                                                              return false
                                                                                                                                                            }
                                                                                                                                                            if (node.type === 3) { // text
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2206..2221
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3687..3702

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 154.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processElement (
                                                                                                                                                            element,
                                                                                                                                                            options
                                                                                                                                                          ) {
                                                                                                                                                            processKey(element);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 5 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1565..1588
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4227..4250
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3977..4000
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2757..2780

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 149.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genStatic (el, state) {
                                                                                                                                                            el.staticProcessed = true;
                                                                                                                                                            // Some elements (templates) need to behave differently inside of a v-pre
                                                                                                                                                            // node.  All pre nodes are static roots, so we can use this as a location to
                                                                                                                                                            // wrap a state change and reset it upon exiting the pre node.
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 5 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3393..3405
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5312..5324
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5062..5074
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3979..3991

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 146.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genDOMPropSegments (
                                                                                                                                                            props,
                                                                                                                                                            attrs
                                                                                                                                                          ) {
                                                                                                                                                            var segments = [];
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 5 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5822..5839
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5572..5589
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4934..4951

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 144.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function getSlotName (binding) {
                                                                                                                                                            var name = binding.name.replace(slotRE, '');
                                                                                                                                                            if (!name) {
                                                                                                                                                              if (binding.name[0] !== '#') {
                                                                                                                                                                name = 'default';
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4511..4528
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4261..4278

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 144.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function getAndRemoveAttr (
                                                                                                                                                            el,
                                                                                                                                                            name,
                                                                                                                                                            removeFromMap
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 5 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1111..1130
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2893..2912
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2988..3007
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2048..2067

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 142.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processIfConditions (el, parent) {
                                                                                                                                                            var prev = findPrevElement(parent.children);
                                                                                                                                                            if (prev && prev.if) {
                                                                                                                                                              addIfCondition(prev, {
                                                                                                                                                                exp: el.elseif,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4342..4356
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4092..4106

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 139.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var parseStyleText = cached(function (cssText) {
                                                                                                                                                            var res = {};
                                                                                                                                                            var listDelimiter = /;(?![^(]*\))/g;
                                                                                                                                                            var propertyDelimiter = /:(.+)/;
                                                                                                                                                            cssText.split(listDelimiter).forEach(function (item) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 5 hrs to fix
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2143..2154

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 138.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function makeAttrsMap (attrs) {
                                                                                                                                                            var map = {};
                                                                                                                                                            for (var i = 0, l = attrs.length; i < l; i++) {
                                                                                                                                                              if (
                                                                                                                                                                map[attrs[i].name] && !isIE && !isEdge
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 5 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4708..4719
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4458..4469

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 136.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var Observer = function Observer (value) {
                                                                                                                                                            this.value = value;
                                                                                                                                                            this.dep = new Dep();
                                                                                                                                                            this.vmCount = 0;
                                                                                                                                                            def(value, '__ob__', this);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 4 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2792..2807
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 904..919
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1101..1116
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1103..1118
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1142..1157

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 133.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function wrapFilter (exp, filter) {
                                                                                                                                                            var i = filter.indexOf('(');
                                                                                                                                                            if (i < 0) {
                                                                                                                                                              // _f: resolveFilter
                                                                                                                                                              return ("_f(\"" + filter + "\")(" + exp + ")")
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 4 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 638..648
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2654..2664
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2749..2759
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1809..1819

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 131.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function makeMap (
                                                                                                                                                            str,
                                                                                                                                                            expectsLowerCase
                                                                                                                                                          ) {
                                                                                                                                                            var map = Object.create(null);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 4 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 70..82
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 112..124
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 108..120
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 110..122
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 71..83

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 128.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genStyleSegments (
                                                                                                                                                            staticStyle,
                                                                                                                                                            parsedStaticStyle,
                                                                                                                                                            styleBinding,
                                                                                                                                                            vShowExpression
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5879..5895
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5629..5645
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4991..5007

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 128.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                            function padContent (block, pad) {
                                                                                                                                                              if (pad === 'space') {
                                                                                                                                                                return content.slice(0, block.start).replace(replaceRE, ' ')
                                                                                                                                                              } else {
                                                                                                                                                                var offset = content.slice(0, block.start).split(splitRE$1).length;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 4 hrs to fix
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 667..677

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 128.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function findPrevElement (children) {
                                                                                                                                                            var i = children.length;
                                                                                                                                                            while (i--) {
                                                                                                                                                              if (children[i].type === 1) {
                                                                                                                                                                return children[i]
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 4 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4358..4374
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4108..4124

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 127.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          strats.props =
                                                                                                                                                          strats.methods =
                                                                                                                                                          strats.inject =
                                                                                                                                                          strats.computed = function (
                                                                                                                                                            parentVal,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 4 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1523..1540
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1525..1542

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 123.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function bind$1 (el, dir) {
                                                                                                                                                            el.wrapData = function (code) {
                                                                                                                                                              return ("_b(" + code + ",'" + (el.tag) + "'," + (dir.value) + "," + (dir.modifiers && dir.modifiers.prop ? 'true' : 'false') + (dir.modifiers && dir.modifiers.sync ? ',true' : '') + ")")
                                                                                                                                                            };
                                                                                                                                                          }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 4 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3306..3310
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5224..5228
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4974..4978
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3891..3895

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 122.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processIf (el) {
                                                                                                                                                            var exp = getAndRemoveAttr(el, 'v-if');
                                                                                                                                                            if (exp) {
                                                                                                                                                              el.if = exp;
                                                                                                                                                              addIfCondition(el, {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 4 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1661..1678
                                                                                                                                                        src/compiler/parser/index.js on lines 534..551
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4323..4340
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4073..4090
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2853..2870

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 119.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function checkEvent (exp, text, warn, range) {
                                                                                                                                                            var stripped = exp.replace(stripStringRE, '');
                                                                                                                                                            var keywordMatch = stripped.match(unaryOperatorsRE);
                                                                                                                                                            if (keywordMatch && stripped.charAt(keywordMatch.index - 1) !== '$') {
                                                                                                                                                              warn(
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 4 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3934..3945
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6313..6324
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6063..6074
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4512..4523

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 119.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genFilterCode (key) {
                                                                                                                                                            var keyVal = parseInt(key, 10);
                                                                                                                                                            if (keyVal) {
                                                                                                                                                              return ("$event.keyCode!==" + keyVal)
                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 4 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5196..5211
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4946..4961
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3863..3878

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 118.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function guardIESVGBug (attrs) {
                                                                                                                                                            var res = [];
                                                                                                                                                            for (var i = 0; i < attrs.length; i++) {
                                                                                                                                                              var attr = attrs[i];
                                                                                                                                                              if (!ieNSBug.test(attr.name)) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 4 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2080..2090
                                                                                                                                                        src/compiler/parser/index.js on lines 952..962
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4740..4750
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4490..4500
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3272..3282

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 116.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function dependArray (value) {
                                                                                                                                                            for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
                                                                                                                                                              e = value[i];
                                                                                                                                                              e && e.__ob__ && e.__ob__.dep.depend();
                                                                                                                                                              if (Array.isArray(e)) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 4 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2986..2994
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 1129..1137
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1294..1302
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1296..1304
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1336..1344

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 116.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function parseBracket (chr) {
                                                                                                                                                            var inBracket = 1;
                                                                                                                                                            expressionPos = index;
                                                                                                                                                            while (!eof()) {
                                                                                                                                                              chr = next();
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 4 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 818..834
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3791..3807
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3541..3557
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2321..2337

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 115.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genSelect (
                                                                                                                                                            el,
                                                                                                                                                            value,
                                                                                                                                                            modifiers
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4943..4958
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4693..4708
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3483..3498

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 112.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genNormalElement (el, state, stringifyChildren) {
                                                                                                                                                            var data = el.plain ? undefined : genData$2(el, state);
                                                                                                                                                            var children = stringifyChildren
                                                                                                                                                              ? ("[" + (genChildrenAsStringNode(el, state)) + "]")
                                                                                                                                                              : genSSRChildren(el, state, true);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6079..6085
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5829..5835
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5191..5197

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 112.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function checkForAliasModel (el, value) {
                                                                                                                                                            var _el = el;
                                                                                                                                                            while (_el) {
                                                                                                                                                              if (_el.for && _el.alias === value) {
                                                                                                                                                                warn$1(
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 3 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2092..2107
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4752..4767
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4502..4517
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3284..3299

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 112.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function getBindingAttr (
                                                                                                                                                            el,
                                                                                                                                                            name,
                                                                                                                                                            getStatic
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 3 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1089..1105
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2871..2887
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2966..2982
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2026..2042

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 109.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var createCompiler = createCompilerCreator(function baseCompile (
                                                                                                                                                            template,
                                                                                                                                                            options
                                                                                                                                                          ) {
                                                                                                                                                            var ast = parse(template.trim(), options);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 3 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 4249..4263
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4827..4841

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 108.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                            if (options.outputSourceRange) {
                                                                                                                                                              warn = function (msg, range) {
                                                                                                                                                                var data = { msg: msg };
                                                                                                                                                                if (range.start != null) {
                                                                                                                                                                  data.start = range.start;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 3 hrs to fix
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 582..593

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 106.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function addAttr (el, name, value, range, dynamic) {
                                                                                                                                                            var attrs = dynamic
                                                                                                                                                              ? (el.dynamicAttrs || (el.dynamicAttrs = []))
                                                                                                                                                              : (el.attrs || (el.attrs = []));
                                                                                                                                                            attrs.push(rangeSetItem({ name: name, value: value, dynamic: dynamic }, range));
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 3 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 956..962
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2738..2744
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2833..2839
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1893..1899

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 105.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genRadioModel (
                                                                                                                                                            el,
                                                                                                                                                            value,
                                                                                                                                                            modifiers
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4931..4941
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4681..4691
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3471..3481

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 104.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var isServerRendering = function () {
                                                                                                                                                            if (_isServer === undefined) {
                                                                                                                                                              /* istanbul ignore if */
                                                                                                                                                              if (!inBrowser && !inWeex && typeof global !== 'undefined') {
                                                                                                                                                                // detect presence of vue-server-renderer and avoid
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 3 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 881..893
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 545..557
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 719..731
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 721..733
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 724..736

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 100.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genClassSegments (
                                                                                                                                                            staticClass,
                                                                                                                                                            classBinding
                                                                                                                                                          ) {
                                                                                                                                                            if (staticClass && !classBinding) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 3 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5865..5877
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5615..5627
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4977..4989

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 99.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function getAndRemoveAttrByRegex (
                                                                                                                                                            el,
                                                                                                                                                            name
                                                                                                                                                          ) {
                                                                                                                                                            var list = el.attrsList;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 3 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1132..1144
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2914..2926
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3009..3021
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2069..2081

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 98.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function polyfillBind (fn, ctx) {
                                                                                                                                                            function boundFn (a) {
                                                                                                                                                              var l = arguments.length;
                                                                                                                                                              return l
                                                                                                                                                                ? l > 1
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 3 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 150..162
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 199..211
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 195..207
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 197..209
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 151..163

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 96.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function isUnOptimizableTree (node) {
                                                                                                                                                            if (node.type === 2 || node.type === 3) { // text or expression
                                                                                                                                                              return false
                                                                                                                                                            }
                                                                                                                                                            return (
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5994..6004
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5744..5754
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5106..5116

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 94.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          Dep.prototype.notify = function notify () {
                                                                                                                                                            // stabilize the subscriber list first
                                                                                                                                                            var subs = this.subs.slice();
                                                                                                                                                            for (var i = 0, l = subs.length; i < l; i++) {
                                                                                                                                                              subs[i].update();
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1010..1016
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1012..1018

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 92.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function addDirective (
                                                                                                                                                            el,
                                                                                                                                                            name,
                                                                                                                                                            rawName,
                                                                                                                                                            value,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 970..989
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2752..2771
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2847..2866
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1907..1926

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 91.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var modifierCode = {
                                                                                                                                                            stop: '$event.stopPropagation();',
                                                                                                                                                            prevent: '$event.preventDefault();',
                                                                                                                                                            self: genGuard("$event.target !== $event.currentTarget"),
                                                                                                                                                            ctrl: genGuard("!$event.ctrlKey"),
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2277..2288
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5091..5102
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4841..4852
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3758..3769

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 90.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function checkIdentifier (
                                                                                                                                                            ident,
                                                                                                                                                            type,
                                                                                                                                                            text,
                                                                                                                                                            warn,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3954..3968
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6333..6347
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6083..6097
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4532..4546

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 90.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genAssignmentCode (
                                                                                                                                                            value,
                                                                                                                                                            assignment
                                                                                                                                                          ) {
                                                                                                                                                            var res = parseModel(value);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 735..745
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3708..3718
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3458..3468
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2238..2248

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 90.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var createCompiler$1 = createCompilerCreator(function baseCompile (
                                                                                                                                                            template,
                                                                                                                                                            options
                                                                                                                                                          ) {
                                                                                                                                                            var ast = parse(template.trim(), options);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6625..6637
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6375..6387
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5371..5383

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 90.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var keyNames = {
                                                                                                                                                            // #7880: IE11 and Edge use `Esc` for Escape key name.
                                                                                                                                                            esc: ['Esc', 'Escape'],
                                                                                                                                                            tab: 'Tab',
                                                                                                                                                            enter: 'Enter',
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2256..2270
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5070..5084
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4820..4834
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3737..3751

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 89.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function dedupeHooks (hooks) {
                                                                                                                                                            var res = [];
                                                                                                                                                            for (var i = 0; i < hooks.length; i++) {
                                                                                                                                                              if (res.indexOf(hooks[i]) === -1) {
                                                                                                                                                                res.push(hooks[i]);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 6 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3136..3144
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 1279..1287
                                                                                                                                                        src/core/util/options.js on lines 162..170
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1444..1452
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1446..1454
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1486..1494

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 87.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function checkFunctionParameterExpression (exp, text, warn, range) {
                                                                                                                                                            try {
                                                                                                                                                              new Function(exp, '');
                                                                                                                                                            } catch (e) {
                                                                                                                                                              warn(
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3992..4003
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6371..6382
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6121..6132
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4570..4581

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 87.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function repeat$1 (str, n) {
                                                                                                                                                            var result = '';
                                                                                                                                                            if (n > 0) {
                                                                                                                                                              while (true) { // eslint-disable-line
                                                                                                                                                                if (n & 1) { result += str; }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 4046..4057
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6425..6436
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6175..6186
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4624..4635

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 86.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var mustUseProp = function (tag, type, attr) {
                                                                                                                                                            return (
                                                                                                                                                              (attr === 'value' && acceptValue(tag)) && type !== 'button' ||
                                                                                                                                                              (attr === 'selected' && tag === 'option') ||
                                                                                                                                                              (attr === 'checked' && tag === 'input') ||
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 441..448
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 443..450
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1653..1660

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 86.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function generate (
                                                                                                                                                            ast,
                                                                                                                                                            options
                                                                                                                                                          ) {
                                                                                                                                                            var state = new CodegenState(options);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5259..5270
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5009..5020
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3926..3937

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 83.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function isSelectWithModel (node) {
                                                                                                                                                            return (
                                                                                                                                                              node.type === 1 &&
                                                                                                                                                              node.tag === 'select' &&
                                                                                                                                                              node.directives != null &&
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 2 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6018..6025
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5768..5775
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5130..5137

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 83.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          strats.data = function (
                                                                                                                                                            parentVal,
                                                                                                                                                            childVal,
                                                                                                                                                            vm
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1403..1423
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1405..1425

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 83.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function rangeSetItem (
                                                                                                                                                            item,
                                                                                                                                                            range
                                                                                                                                                          ) {
                                                                                                                                                            if (range) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1146..1159
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2928..2941
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3023..3036
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2083..2096

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 82.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          Observer.prototype.walk = function walk (obj) {
                                                                                                                                                            var keys = Object.keys(obj);
                                                                                                                                                            for (var i = 0; i < keys.length; i++) {
                                                                                                                                                              defineReactive$$1(obj, keys[i]);
                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2814..2819
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 926..931
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1123..1128
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1125..1130
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1164..1169

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 81.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processFor (el) {
                                                                                                                                                            var exp;
                                                                                                                                                            if ((exp = getAndRemoveAttr(el, 'v-for'))) {
                                                                                                                                                              var res = parseFor(exp);
                                                                                                                                                              if (res) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4287..4300
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4037..4050

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 80.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function flushCallbacks () {
                                                                                                                                                            var copies = callbacks.slice(0);
                                                                                                                                                            callbacks.length = 0;
                                                                                                                                                            for (var i = 0; i < copies.length; i++) {
                                                                                                                                                              copies[i]();
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3262..3268
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2054..2060
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2056..2062
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1612..1618

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 79.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 10 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genData$1 (el) {
                                                                                                                                                            var data = '';
                                                                                                                                                            if (el.staticStyle) {
                                                                                                                                                              data += "staticStyle:" + (el.staticStyle) + ",";
                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 9 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 4294..4303
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 4365..4374
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2969..2978
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3014..3023
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3064..3073
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3109..3118
                                                                                                                                                        packages/vue-template-compiler/browser.js on lines 2159..2168
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2124..2133
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2184..2193

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 79.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 10 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genData (el) {
                                                                                                                                                            var data = '';
                                                                                                                                                            if (el.staticClass) {
                                                                                                                                                              data += "staticClass:" + (el.staticClass) + ",";
                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 9 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 4294..4303
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 4365..4374
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2969..2978
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3014..3023
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3064..3073
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3109..3118
                                                                                                                                                        packages/vue-template-compiler/browser.js on lines 2219..2228
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2124..2133
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2184..2193

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 79.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function optimize (root, options) {
                                                                                                                                                            if (!root) { return }
                                                                                                                                                            isStaticKey = genStaticKeysCached(options.staticKeys || '');
                                                                                                                                                            isPlatformReservedTag = options.isReservedTag || no;
                                                                                                                                                            // first pass: mark all non-static nodes.
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2127..2135
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3608..3616

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 79.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function parseModifiers (name) {
                                                                                                                                                            var match = name.match(modifierRE);
                                                                                                                                                            if (match) {
                                                                                                                                                              var ret = {};
                                                                                                                                                              match.forEach(function (m) { ret[m.slice(1)] = true; });
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2038..2045
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4699..4706
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4449..4456
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3230..3237

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 78.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genNode (node, state) {
                                                                                                                                                            if (node.type === 1) {
                                                                                                                                                              return genElement(node, state)
                                                                                                                                                            } else if (node.type === 3 && node.isComment) {
                                                                                                                                                              return genComment(node)
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3788..3796
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5704..5712
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5454..5462
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4374..4382

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 75.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          if (inBrowser) {
                                                                                                                                                            try {
                                                                                                                                                              var opts = {};
                                                                                                                                                              Object.defineProperty(opts, 'passive', ({
                                                                                                                                                                get: function get () {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 867..876
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 531..540
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 705..714
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 707..716
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 710..719

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 75.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function checkFor (node, text, warn, range) {
                                                                                                                                                            checkExpression(node.for || '', text, warn, range);
                                                                                                                                                            checkIdentifier(node.alias, 'v-for alias', text, warn, range);
                                                                                                                                                            checkIdentifier(node.iterator1, 'v-for iterator', text, warn, range);
                                                                                                                                                            checkIdentifier(node.iterator2, 'v-for iterator', text, warn, range);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3947..3952
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6326..6331
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6076..6081
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4525..4530

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 75.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processSlotOutlet (el) {
                                                                                                                                                            if (el.tag === 'slot') {
                                                                                                                                                              el.slotName = getBindingAttr(el, 'name');
                                                                                                                                                              if (el.key) {
                                                                                                                                                                warn$1(
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 hr to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4531..4543
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4281..4293

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 74.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genComponent (
                                                                                                                                                            componentName,
                                                                                                                                                            el,
                                                                                                                                                            state
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3834..3841
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5750..5757
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5500..5507
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4420..4427

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 74.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var buildRegex = cached(function (delimiters) {
                                                                                                                                                            var open = delimiters[0].replace(regexEscapeRE, '\\$&');
                                                                                                                                                            var close = delimiters[1].replace(regexEscapeRE, '\\$&');
                                                                                                                                                            return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
                                                                                                                                                          });
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 655..659
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2671..2675
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2766..2770
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1826..1830

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 73.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function addProp (el, name, value, range, dynamic) {
                                                                                                                                                            (el.props || (el.props = [])).push(rangeSetItem({ name: name, value: value, dynamic: dynamic }, range));
                                                                                                                                                            el.plain = false;
                                                                                                                                                          }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 951..954
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2733..2736
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2828..2831
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1888..1891

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 73.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genStringElementWithChildren (el, state) {
                                                                                                                                                            var children = genSSRChildren(el, state, true);
                                                                                                                                                            return ("_ssrNode(" + (flattenSegments(elementToOpenTagSegments(el, state))) + ",\"</" + (el.tag) + ">\"" + (children ? ("," + children) : '') + ")")
                                                                                                                                                          }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 hr to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6107..6110
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5857..5860
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5219..5222

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 73.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function copyAugment (target, src, keys) {
                                                                                                                                                            for (var i = 0, l = keys.length; i < l; i++) {
                                                                                                                                                              var key = keys[i];
                                                                                                                                                              def(target, key, src[key]);
                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2847..2852
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 959..964
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1156..1161
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1158..1163
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1197..1202

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 72.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function on (el, dir) {
                                                                                                                                                            if (dir.modifiers) {
                                                                                                                                                              warn("v-on without argument does not support modifiers.");
                                                                                                                                                            }
                                                                                                                                                            el.wrapListeners = function (code) { return ("_g(" + code + "," + (dir.value) + ")"); };
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 hr to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5215..5220
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4965..4970

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 72.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          Observer.prototype.observeArray = function observeArray (items) {
                                                                                                                                                            for (var i = 0, l = items.length; i < l; i++) {
                                                                                                                                                              observe(items[i]);
                                                                                                                                                            }
                                                                                                                                                          };
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2824..2828
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 936..940
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1133..1137
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1135..1139
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1174..1178

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 71.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          {
                                                                                                                                                            strats.el = strats.propsData = function (parent, child, vm, key) {
                                                                                                                                                              if (!vm) {
                                                                                                                                                                warn(
                                                                                                                                                                  "option \"" + key + "\" can only be used during instance " +
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 hr to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1316..1326
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1318..1328

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 71.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function cached (fn) {
                                                                                                                                                            var cache = Object.create(null);
                                                                                                                                                            return (function cachedFn (str) {
                                                                                                                                                              var hit = cache[str];
                                                                                                                                                              return hit || (cache[str] = fn(str))
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 117..123
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 159..165
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 155..161
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 157..163
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 118..124

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 69.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function isDirectChildOfTemplateFor (node) {
                                                                                                                                                            while (node.parent) {
                                                                                                                                                              node = node.parent;
                                                                                                                                                              if (node.tag !== 'template') {
                                                                                                                                                                return false
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2223..2234
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3704..3715

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 68.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processComponent (el) {
                                                                                                                                                            var binding;
                                                                                                                                                            if ((binding = getBindingAttr(el, 'is'))) {
                                                                                                                                                              el.component = binding;
                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1883..1891
                                                                                                                                                        src/compiler/parser/index.js on lines 752..760
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4545..4553
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4295..4303
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3075..3083

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 68.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function mergeHook (
                                                                                                                                                            parentVal,
                                                                                                                                                            childVal
                                                                                                                                                          ) {
                                                                                                                                                            var res = childVal
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3120..3134
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 1263..1277
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1428..1442
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1430..1444
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1470..1484

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 68.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function hash(str) {
                                                                                                                                                            var hash = 5381;
                                                                                                                                                            var i = str.length;
                                                                                                                                                            while(i) {
                                                                                                                                                              hash = (hash * 33) ^ str.charCodeAt(--i);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3684..3691
                                                                                                                                                        src/compiler/codegen/index.js on lines 419..426
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5600..5607
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5350..5357
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4270..4277

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 66.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var baseOptions = {
                                                                                                                                                            expectHTML: true,
                                                                                                                                                            modules: modules,
                                                                                                                                                            directives: directives,
                                                                                                                                                            isPreTag: isPreTag,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 hr to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5037..5048
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4787..4798
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3577..3588

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 66.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function hasCustomDirective (node) {
                                                                                                                                                            return (
                                                                                                                                                              node.type === 1 &&
                                                                                                                                                              node.directives &&
                                                                                                                                                              node.directives.some(function (d) { return !isBuiltInDir(d.name); })
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 hr to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6008..6014
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5758..5764
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5120..5126

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 66.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function remove (arr, item) {
                                                                                                                                                            if (arr.length) {
                                                                                                                                                              var index = arr.indexOf(item);
                                                                                                                                                              if (index > -1) {
                                                                                                                                                                return arr.splice(index, 1)
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 97..104
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 139..146
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 135..142
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 137..144
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 98..105

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 65.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function generate$1 (
                                                                                                                                                            ast,
                                                                                                                                                            options
                                                                                                                                                          ) {
                                                                                                                                                            var state = new CodegenState(options);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3341..3351
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6037..6047
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5787..5797
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5149..5159

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 65.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function mergeAssets (
                                                                                                                                                            parentVal,
                                                                                                                                                            childVal,
                                                                                                                                                            vm,
                                                                                                                                                            key
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 hr to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1465..1478
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1467..1480

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 64.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var isAttr = makeMap(
                                                                                                                                                            'accept,accept-charset,accesskey,action,align,alt,async,autocomplete,' +
                                                                                                                                                            'autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,' +
                                                                                                                                                            'checked,cite,class,code,codebase,color,cols,colspan,content,' +
                                                                                                                                                            'contenteditable,contextmenu,controls,coords,data,datetime,default,' +
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 1 hr to fix
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4851..4865

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 63.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function isForbiddenTag (el) {
                                                                                                                                                            return (
                                                                                                                                                              el.tag === 'style' ||
                                                                                                                                                              (el.tag === 'script' && (
                                                                                                                                                                !el.attrsMap.type ||
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2066..2074
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4726..4734
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4476..4484
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3258..3266

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 62.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genStaticKeys (modules) {
                                                                                                                                                            return modules.reduce(function (keys, m) {
                                                                                                                                                              return keys.concat(m.staticKeys || [])
                                                                                                                                                            }, []).join(',')
                                                                                                                                                          }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 206..210
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 264..268
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 266..270
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 207..211

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 61.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var keyCodes = {
                                                                                                                                                            esc: 27,
                                                                                                                                                            tab: 9,
                                                                                                                                                            enter: 13,
                                                                                                                                                            space: 32,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2243..2253
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5057..5067
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4807..4817
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3724..3734

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 60.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function containsSlotChild (el) {
                                                                                                                                                            if (el.type === 1) {
                                                                                                                                                              if (el.tag === 'slot') {
                                                                                                                                                                return true
                                                                                                                                                              }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3693..3701
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5609..5617
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5359..5367
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4279..4287

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 60.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function addRawAttr (el, name, value, range) {
                                                                                                                                                            el.attrsMap[name] = value;
                                                                                                                                                            el.attrsList.push(rangeSetItem({ name: name, value: value }, range));
                                                                                                                                                          }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 965..968
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2747..2750
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2842..2845
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1902..1905

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 60.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function pluckModuleFunction (
                                                                                                                                                            modules,
                                                                                                                                                            key
                                                                                                                                                          ) {
                                                                                                                                                            return modules
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 942..949
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2724..2731
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2819..2826
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1879..1886

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 60.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function assertObjectType (name, value, vm) {
                                                                                                                                                            if (!isPlainObject(value)) {
                                                                                                                                                              warn(
                                                                                                                                                                "Invalid value for option \"" + name + "\": expected an Object, " +
                                                                                                                                                                "but got " + (toRawType(value)) + ".",
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3244..3252
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1594..1602

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 60.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function isValidArrayIndex (val) {
                                                                                                                                                            var n = parseFloat(String(val));
                                                                                                                                                            return n >= 0 && Math.floor(n) === n && isFinite(val)
                                                                                                                                                          }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 61..64
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 62..65

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 59.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function createFunction (code, errors) {
                                                                                                                                                            try {
                                                                                                                                                              return new Function(code)
                                                                                                                                                            } catch (err) {
                                                                                                                                                              errors.push({ err: err, code: code });
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 4063..4070
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6442..6449
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6192..6199
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4641..4648

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 58.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genText (text) {
                                                                                                                                                            return ("_v(" + (text.type === 2
                                                                                                                                                              ? text.expression // no need for () because already wrapped in _s()
                                                                                                                                                              : transformSpecialNewlines(JSON.stringify(text.text))) + ")")
                                                                                                                                                          }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3798..3802
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5714..5718
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5464..5468
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4384..4388

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 58.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function createASTElement (
                                                                                                                                                            tag,
                                                                                                                                                            attrs,
                                                                                                                                                            parent
                                                                                                                                                          ) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1196..1210
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3854..3868
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3604..3618
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2384..2398

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 58.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var isHTMLTag = makeMap(
                                                                                                                                                            'html,body,base,head,link,meta,style,title,' +
                                                                                                                                                            'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
                                                                                                                                                            'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
                                                                                                                                                            'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 1 other location - About 1 hr to fix
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1679..1691

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 57.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genAttrSegments (
                                                                                                                                                            attrs
                                                                                                                                                          ) {
                                                                                                                                                            return attrs.map(function (ref) {
                                                                                                                                                              var name = ref.name;
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 1 hr to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5811..5820
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5561..5570
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4923..4932

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 56.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function checkInFor (el) {
                                                                                                                                                            var parent = el;
                                                                                                                                                            while (parent) {
                                                                                                                                                              if (parent.for !== undefined) {
                                                                                                                                                                return true
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2027..2036
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4688..4697
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4438..4447
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3219..3228

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 55.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function def (obj, key, val, enumerable) {
                                                                                                                                                            Object.defineProperty(obj, key, {
                                                                                                                                                              value: val,
                                                                                                                                                              enumerable: !!enumerable,
                                                                                                                                                              writable: true,
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 1 hr to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 247..254
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 675..682
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 677..684
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 248..255

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 55.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function isPrimitive (value) {
                                                                                                                                                            return (
                                                                                                                                                              typeof value === 'string' ||
                                                                                                                                                              typeof value === 'number' ||
                                                                                                                                                              // $flow-disable-line
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 55 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 22..30
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 32..40
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 32..40
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 34..42
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 23..31

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 54.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var camelize = cached(function (str) {
                                                                                                                                                            return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
                                                                                                                                                          });
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 55 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 129..131
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 171..173
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 167..169
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 169..171
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 130..132

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 54.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processRef (el) {
                                                                                                                                                            var ref = getBindingAttr(el, 'ref');
                                                                                                                                                            if (ref) {
                                                                                                                                                              el.ref = ref;
                                                                                                                                                              el.refInFor = checkInFor(el);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 55 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1617..1623
                                                                                                                                                        src/compiler/parser/index.js on lines 485..491
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4279..4285
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4029..4035
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2809..2815

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 54.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var isRenderableAttr = function (name) {
                                                                                                                                                            return (
                                                                                                                                                              isAttr(name) ||
                                                                                                                                                              name.indexOf('data-') === 0 ||
                                                                                                                                                              name.indexOf('aria-') === 0
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 55 mins to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 358..364
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 360..366
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4868..4874

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 54.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function getRawBindingAttr (
                                                                                                                                                            el,
                                                                                                                                                            name
                                                                                                                                                          ) {
                                                                                                                                                            return el.rawAttrsMap[':' + name] ||
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 55 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1080..1087
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 2862..2869
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 2957..2964
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2017..2024

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 53.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function parseString (chr) {
                                                                                                                                                            var stringQuote = chr;
                                                                                                                                                            while (!eof()) {
                                                                                                                                                              chr = next();
                                                                                                                                                              if (chr === stringQuote) {
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 50 mins to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3809..3817
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3559..3567
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2339..2347

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 52.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function addIfCondition (el, condition) {
                                                                                                                                                            if (!el.ifConditions) {
                                                                                                                                                              el.ifConditions = [];
                                                                                                                                                            }
                                                                                                                                                            el.ifConditions.push(condition);
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 45 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1714..1719
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4376..4381
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4126..4131
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2906..2911

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 50.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var prohibitedKeywordRE = new RegExp('\\b' + (
                                                                                                                                                            'do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
                                                                                                                                                            'super,throw,while,yield,delete,export,import,return,switch,default,' +
                                                                                                                                                            'extends,finally,continue,debugger,function,arguments'
                                                                                                                                                          ).split(',').join('\\b|\\b') + '\\b');
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 40 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3884..3888
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 6263..6267
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 6013..6017
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4462..4466

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 49.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          Dep.prototype.depend = function depend () {
                                                                                                                                                            if (Dep.target) {
                                                                                                                                                              Dep.target.addDep(this);
                                                                                                                                                            }
                                                                                                                                                          };
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 40 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 2657..2661
                                                                                                                                                        packages/weex-vue-framework/factory.js on lines 711..715
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 1004..1008
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 1006..1010
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 1007..1011

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 48.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function genIf (
                                                                                                                                                            el,
                                                                                                                                                            state,
                                                                                                                                                            altGen,
                                                                                                                                                            altEmpty
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 40 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 3435..3443
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5354..5362
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5104..5112
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 4021..4029

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 48.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 5 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function decodeAttr (value, shouldDecodeNewlines) {
                                                                                                                                                            var re = shouldDecodeNewlines ? encodedAttrWithNewLines : encodedAttr;
                                                                                                                                                            return value.replace(re, function (match) { return decodingMap[match]; })
                                                                                                                                                          }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 4 other locations - About 40 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 293..296
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 3413..3416
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 3163..3166
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 294..297

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 48.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function text (el, dir) {
                                                                                                                                                            if (dir.value) {
                                                                                                                                                              addProp(el, 'textContent', ("_s(" + (dir.value) + ")"), dir);
                                                                                                                                                            }
                                                                                                                                                          }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 35 mins to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5015..5019
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4765..4769
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3555..3559

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 47.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Identical blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          var optimizability = {
                                                                                                                                                            FALSE: 0,    // whole sub tree un-optimizable
                                                                                                                                                            FULL: 1,     // whole sub tree optimizable
                                                                                                                                                            SELF: 2,     // self optimizable but has some un-optimizable children
                                                                                                                                                            CHILDREN: 3, // self un-optimizable but have fully optimizable children
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 35 mins to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5900..5906
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 5650..5656
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 5012..5018

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 46.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 6 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function processOnce (el) {
                                                                                                                                                            var once$$1 = getAndRemoveAttr(el, 'v-once');
                                                                                                                                                            if (once$$1 != null) {
                                                                                                                                                              el.once = true;
                                                                                                                                                            }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 5 other locations - About 35 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 1721..1726
                                                                                                                                                        src/compiler/parser/index.js on lines 594..599
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 4383..4388
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4133..4138
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 2913..2918

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 46.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function extend (to, _from) {
                                                                                                                                                            for (var key in _from) {
                                                                                                                                                              to[key] = _from[key];
                                                                                                                                                            }
                                                                                                                                                            return to
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 2 other locations - About 35 mins to fix
                                                                                                                                                        packages/weex-template-compiler/build.js on lines 175..180
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 176..181

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 46.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        Similar blocks of code found in 4 locations. Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                          function html (el, dir) {
                                                                                                                                                            if (dir.value) {
                                                                                                                                                              addProp(el, 'innerHTML', ("_s(" + (dir.value) + ")"), dir);
                                                                                                                                                            }
                                                                                                                                                          }
                                                                                                                                                        Severity: Major
                                                                                                                                                        Found in packages/vue-template-compiler/browser.js and 3 other locations - About 30 mins to fix
                                                                                                                                                        packages/vue-server-renderer/basic.js on lines 5023..5027
                                                                                                                                                        packages/vue-server-renderer/build.dev.js on lines 4773..4777
                                                                                                                                                        packages/vue-template-compiler/build.js on lines 3563..3567

                                                                                                                                                        Duplicated Code

                                                                                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                        Tuning

                                                                                                                                                        This issue has a mass of 45.

                                                                                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                                                        Refactorings

                                                                                                                                                        Further Reading

                                                                                                                                                        There are no issues that match your filters.

                                                                                                                                                        Category
                                                                                                                                                        Status