Showing 2,519 of 2,519 total issues
File storage-demo.js
has 1160 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File clipboard.js
has 1156 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File template.js
has 1152 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File list-demo-horizon.js
has 1141 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File list-demo.js
has 1141 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File index.js
has 1132 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File video-demo.js
has 1125 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File tabbar-demo.js
has 1125 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File marquee-demo.js
has 1121 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File input-demo.js
has 1101 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File a-demo.js
has 1072 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File instance-api.js
has 1066 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File XmlUtils.java
has 1018 lines of code (exceeds 250 allowed). Consider refactoring. Open
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.
Function _initData
has 494 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initData: function () {
var self = this;
self.showData = {
"header": {
"topBanner": "https://gw.alicdn.com/tps/TB1J48kMXXXXXXtapXXXXXXXXXX-750-782.jpg",
Method testElementOpt
has a Cognitive Complexity of 97 (exceeds 5 allowed). Consider refactoring. Open
Open
public void testElementOpt() {
for (final View caseView : mCaseListIndexView) {
if (((WXTextView) caseView).getText().toString().equals("TC_Event")) {
Log.e(TAG, "TC_Event find");
- Read upRead up
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
Open
_loadData: function () {
var self = this;
var content = {
"main": [{
"shopList": [{
Function _loadData
has 387 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_loadData: function () {
var self = this;
var content = {
"main": [{
"shopList": [{
Function 0
has 354 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/***/ function(module, exports, __webpack_require__) {
;__weex_define__("@weex-component/41333d527ccae7db33e37491c3583a26", [], function(__weex_require__, __weex_exports__, __weex_module__){
__webpack_require__(18);
File category.js
has 674 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
Function data
has 298 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function () {return {
refresh_display : 'hide',
loading_display : 'hide',
backgroundColor: 'red',
composite: 'false',