Showing 1,298 of 2,898 total issues

Function weexFactory has a Cognitive Complexity of 2888 (exceeds 5 allowed). Consider refactoring.
Open

module.exports = function weexFactory (exports, document) {

/*  */

var emptyObject = Object.freeze({});
Severity: Minor
Found in packages/weex-vue-framework/factory.js - About 2 mos to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function weexFactory has 5927 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function weexFactory (exports, document) {

/*  */

var emptyObject = Object.freeze({});
Severity: Major
Found in packages/weex-vue-framework/factory.js - About 1 mo to fix

    File build.dev.js has 7613 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    'use strict';
    
    Object.defineProperty(exports, '__esModule', { value: true });
    
    function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
    Severity: Major
    Found in packages/vue-server-renderer/build.dev.js - About 3 wks to fix

      File basic.js has 7079 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      (function (global, factory) {
        typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
        typeof define === 'function' && define.amd ? define(factory) :
        (global = global || self, global.renderVueComponentToString = factory());
      }(this, function () { 'use strict';
      Severity: Major
      Found in packages/vue-server-renderer/basic.js - About 2 wks to fix

        File factory.js has 5930 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        'use strict';
        
        
        
        module.exports = function weexFactory (exports, document) {
        Severity: Major
        Found in packages/weex-vue-framework/factory.js - About 2 wks to fix

          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

            File build.js has 4232 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            'use strict';
            
            Object.defineProperty(exports, '__esModule', { value: true });
            
            function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
            Severity: Major
            Found in packages/vue-template-compiler/build.js - About 1 wk to fix

              File build.js has 3841 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              'use strict';
              
              Object.defineProperty(exports, '__esModule', { value: true });
              
              function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
              Severity: Major
              Found in packages/weex-template-compiler/build.js - About 1 wk to fix

                Function createPatchFunction has a Cognitive Complexity of 469 (exceeds 5 allowed). Consider refactoring.
                Open

                export function createPatchFunction (backend) {
                  let i, j
                  const cbs = {}
                
                  const { modules, nodeOps } = backend
                Severity: Minor
                Found in src/core/vdom/patch.js - About 1 wk to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function parseHTML has a Cognitive Complexity of 162 (exceeds 5 allowed). Consider refactoring.
                Open

                export function parseHTML (html, options) {
                  const stack = []
                  const expectHTML = options.expectHTML
                  const isUnaryTag = options.isUnaryTag || no
                  const canBeLeftOpenTag = options.canBeLeftOpenTag || no
                Severity: Minor
                Found in src/compiler/parser/html-parser.js - About 3 days to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function parseHTML has a Cognitive Complexity of 162 (exceeds 5 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: Minor
                Found in packages/vue-server-renderer/build.dev.js - About 3 days to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function parseHTML has a Cognitive Complexity of 162 (exceeds 5 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: Minor
                Found in packages/weex-template-compiler/build.js - About 3 days to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function parseHTML has a Cognitive Complexity of 162 (exceeds 5 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: Minor
                Found in packages/vue-template-compiler/build.js - About 3 days to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function createPatchFunction has 604 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export function createPatchFunction (backend) {
                  let i, j
                  const cbs = {}
                
                  const { modules, nodeOps } = backend
                Severity: Major
                Found in src/core/vdom/patch.js - About 3 days to fix

                  Function createPatchFunction has 601 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function createPatchFunction (backend) {
                    var i, j;
                    var cbs = {};
                  
                    var modules = backend.modules;
                  Severity: Major
                  Found in packages/weex-vue-framework/factory.js - About 3 days to fix

                    Function parse has a Cognitive Complexity of 141 (exceeds 5 allowed). Consider refactoring.
                    Open

                    export function parse (
                      template: string,
                      options: CompilerOptions
                    ): ASTElement | void {
                      warn = options.warn || baseWarn
                    Severity: Minor
                    Found in src/compiler/parser/index.js - About 2 days to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function parse has a Cognitive Complexity of 139 (exceeds 5 allowed). Consider refactoring.
                    Open

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

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function parse has a Cognitive Complexity of 139 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function parse (
                      template,
                      options
                    ) {
                      warn = options.warn || baseWarn;
                    Severity: Minor
                    Found in packages/weex-template-compiler/build.js - About 2 days to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function parse has a Cognitive Complexity of 125 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function parse (
                      template,
                      options
                    ) {
                      warn$1 = options.warn || baseWarn;
                    Severity: Minor
                    Found in packages/vue-server-renderer/build.dev.js - About 2 days to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    File index.js has 856 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /* @flow */
                    
                    import he from 'he'
                    import { parseHTML } from './html-parser'
                    import { parseText } from './text-parser'
                    Severity: Major
                    Found in src/compiler/parser/index.js - About 2 days to fix
                      Severity
                      Category
                      Status
                      Source
                      Language