Showing 472 of 2,519 total issues
File DOM.java
has 663 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
Function 17
has 266 lines of code (exceeds 25 allowed). Consider refactoring. Open
/***/ function(module, exports) {
;__weex_define__("@weex-component/we-dropdown", [], function(__weex_require__, __weex_exports__, __weex_module__){
;
Method testImageUpdate
has 264 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void testImageUpdate(){
for(final View caseView : mCaseListIndexView){
if (((WXTextView)caseView).getText().toString().equals("TC_Image")){
Log.e(TAG, "TC_Image find");
File Document.java
has 598 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
Function data
has 256 lines of code (exceeds 25 allowed). Consider refactoring. Open
data: function () {return {
backgroundColor: 'red',
composite: 'false',
shopList: [
{
WXDebugBridge
has 68 methods (exceeds 20 allowed). Consider refactoring. Open
public class WXDebugBridge implements IWXBridge {
private static final String TAG = "WXDebugBridge";
private static volatile WXDebugBridge sInstance;
private final Object mLock = new Object();
Method traverse
has a Cognitive Complexity of 62 (exceeds 5 allowed). Consider refactoring. Open
@Nullable
public HealthReport traverse() {
long start = System.currentTimeMillis();
if (Looper.getMainLooper() == Looper.myLooper()) {
WXLogUtils.e(TAG, "illegal thread...");
- 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
XmlUtils
has 60 methods (exceeds 20 allowed). Consider refactoring. Open
public class XmlUtils {
public static void skipCurrentTag(XmlPullParser parser)
throws XmlPullParserException, IOException {
int outerDepth = parser.getDepth();
Method testElementOpt
has 212 lines of code (exceeds 25 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");
Function 0
has 206 lines of code (exceeds 25 allowed). Consider refactoring. Open
/***/ function(module, exports, __webpack_require__) {
;__weex_define__("@weex-component/89d20f2b69944aec95a233f12eadd0e7", [], function(__weex_require__, __weex_exports__, __weex_module__){
File WXDebugBridge.java
has 477 lines of code (exceeds 250 allowed). Consider refactoring. Open
package com.taobao.weex.devtools.debug;
import android.text.TextUtils;
import android.util.Log;
File dropdown-demo.js
has 472 lines of code (exceeds 250 allowed). Consider refactoring. Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
Method findMatchingElements
has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring. Open
public void findMatchingElements(int x, int y, Accumulator<Integer> matchedIds) {
verifyThreadAccess();
final Object rootElement = mDocumentProvider.getRootElement();
final ElementInfo info = mShadowDocument.getElementInfo(rootElement);
- 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
Method testImageUpdate
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
public void testImageUpdate(){
for(final View caseView : mCaseListIndexView){
if (((WXTextView)caseView).getText().toString().equals("TC_Image")){
Log.e(TAG, "TC_Image 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
Method testInputEvent
has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring. Open
public void testInputEvent(){
for(final View caseView : mCaseListIndexView){
if (((WXTextView)caseView).getText().toString().equals("TC_Input")){
Log.e(TAG, "TC_Input 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
File Runtime.java
has 451 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
Function 0
has 168 lines of code (exceeds 25 allowed). Consider refactoring. Open
/***/ function(module, exports, __webpack_require__) {
;__weex_define__("@weex-component/41f507967dfcd1999e9ffa0a3af0549a", [], function(__weex_require__, __weex_exports__, __weex_module__){
__webpack_require__(18);
Method testInputEvent
has 163 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void testInputEvent(){
for(final View caseView : mCaseListIndexView){
if (((WXTextView)caseView).getText().toString().equals("TC_Input")){
Log.e(TAG, "TC_Input find");
File NetworkEventReporterImpl.java
has 423 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
Function _loadData
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
_loadData: function () {
var self = this;
var content = [{
"id": "1111",
"sceneUrl": "https://pages.tmall.com/wow/act/15617/scene?acm=03653.1003.1.740603&aldid=VyrSqx06&wh_id=1392&scm=1003.1.03653.SUB_1111_740603&pos=1",