weexteam/weex_devtools_android

View on GitHub

Showing 2,519 of 2,519 total issues

File storage-demo.js has 1160 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/******/ (function(modules) { // webpackBootstrap
/******/     // The module cache
/******/     var installedModules = {};

/******/     // The require function
Severity: Major
Found in playground/app/src/main/assets/module/storage-demo.js - About 2 days to fix

    File clipboard.js has 1156 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /******/ (function(modules) { // webpackBootstrap
    /******/     // The module cache
    /******/     var installedModules = {};
    
    /******/     // The require function
    Severity: Major
    Found in playground/app/src/main/assets/module/clipboard.js - About 2 days to fix

      File template.js has 1152 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /******/ (function(modules) { // webpackBootstrap
      /******/     // The module cache
      /******/     var installedModules = {};
      
      /******/     // The require function
      Severity: Major
      Found in playground/app/src/main/assets/template.js - About 2 days to fix

        File list-demo-horizon.js has 1141 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /******/ (function(modules) { // webpackBootstrap
        /******/     // The module cache
        /******/     var installedModules = {};
        
        /******/     // The require function
        Severity: Major
        Found in playground/app/src/main/assets/component/list/list-demo-horizon.js - About 2 days to fix

          File list-demo.js has 1141 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /******/ (function(modules) { // webpackBootstrap
          /******/     // The module cache
          /******/     var installedModules = {};
          
          /******/     // The require function
          Severity: Major
          Found in playground/app/src/main/assets/component/list/list-demo.js - About 2 days to fix

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

            /******/ (function(modules) { // webpackBootstrap
            /******/     // The module cache
            /******/     var installedModules = {};
            
            /******/     // The require function
            Severity: Major
            Found in playground/app/src/main/assets/showcase/new-fashion/index.js - About 2 days to fix

              File video-demo.js has 1125 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /******/ (function(modules) { // webpackBootstrap
              /******/     // The module cache
              /******/     var installedModules = {};
              
              /******/     // The require function
              Severity: Major
              Found in playground/app/src/main/assets/component/video-demo.js - About 2 days to fix

                File tabbar-demo.js has 1125 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /******/ (function(modules) { // webpackBootstrap
                /******/     // The module cache
                /******/     var installedModules = {};
                
                /******/     // The require function
                Severity: Major
                Found in playground/app/src/main/assets/component/tabbar/tabbar-demo.js - About 2 days to fix

                  File marquee-demo.js has 1121 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /******/ (function(modules) { // webpackBootstrap
                  /******/     // The module cache
                  /******/     var installedModules = {};
                  
                  /******/     // The require function
                  Severity: Major
                  Found in playground/app/src/main/assets/component/marquee-demo.js - About 2 days to fix

                    File input-demo.js has 1101 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /******/ (function(modules) { // webpackBootstrap
                    /******/     // The module cache
                    /******/     var installedModules = {};
                    
                    /******/     // The require function
                    Severity: Major
                    Found in playground/app/src/main/assets/component/input-demo.js - About 2 days to fix

                      File a-demo.js has 1072 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /******/ (function(modules) { // webpackBootstrap
                      /******/     // The module cache
                      /******/     var installedModules = {};
                      
                      /******/     // The require function
                      Severity: Major
                      Found in playground/app/src/main/assets/component/a-demo.js - About 2 days to fix

                        File instance-api.js has 1066 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /******/ (function(modules) { // webpackBootstrap
                        /******/     // The module cache
                        /******/     var installedModules = {};
                        
                        /******/     // The require function
                        Severity: Major
                        Found in playground/app/src/main/assets/module/instance-api.js - About 2 days to fix

                          File XmlUtils.java has 1018 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*
                           * Copyright (C) 2006 The Android Open Source Project
                           *
                           * Licensed under the Apache License, Version 2.0 (the "License");
                           * you may not use this file except in compliance with the License.
                          Severity: Major
                          Found in appframework/src/main/java/com/alibaba/weex/commons/util/XmlUtils.java - About 2 days to fix

                            Function _initData has 494 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                      _initData: function () {
                                        var self = this;
                                        self.showData = {
                                          "header": {
                                            "topBanner": "https://gw.alicdn.com/tps/TB1J48kMXXXXXXtapXXXXXXXXXX-750-782.jpg",
                            Severity: Major
                            Found in playground/app/src/main/assets/showcase/new-fashion/main.js - About 2 days to fix

                              Method testElementOpt has a Cognitive Complexity of 97 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public void testElementOpt() {
                              
                                      for (final View caseView : mCaseListIndexView) {
                                          if (((WXTextView) caseView).getText().toString().equals("TC_Event")) {
                                              Log.e(TAG, "TC_Event find");

                              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 _loadData has 387 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                        _loadData: function () {
                                          var self = this;
                                          var content = {
                                            "main": [{
                                              "shopList": [{
                              Severity: Major
                              Found in playground/app/src/main/assets/showcase/new-fashion/main.js - About 1 day to fix

                                Function _loadData has 387 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                          _loadData: function () {
                                            var self = this;
                                            var content = {
                                              "main": [{
                                                "shopList": [{
                                Severity: Major
                                Found in playground/app/src/main/assets/showcase/new-fashion/category.js - About 1 day to fix

                                  Function 0 has 354 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  /***/ function(module, exports, __webpack_require__) {
                                  
                                      ;__weex_define__("@weex-component/41333d527ccae7db33e37491c3583a26", [], function(__weex_require__, __weex_exports__, __weex_module__){
                                      __webpack_require__(18);
                                  
                                  
                                  Severity: Major
                                  Found in playground/app/src/main/assets/showcase/new-fashion/scene.js - About 1 day to fix

                                    File category.js has 674 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /******/ (function(modules) { // webpackBootstrap
                                    /******/     // The module cache
                                    /******/     var installedModules = {};
                                    
                                    /******/     // The require function
                                    Severity: Major
                                    Found in playground/app/src/main/assets/showcase/new-fashion/category.js - About 1 day to fix

                                      Function data has 298 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              data: function () {return {
                                                refresh_display : 'hide',
                                                loading_display : 'hide',
                                                backgroundColor: 'red',
                                                composite: 'false',
                                      Severity: Major
                                      Found in playground/app/src/main/assets/component/list/list-demo.js - About 1 day to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language