Showing 472 of 2,519 total issues
Method testByTestMap
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
@Test
public void testByTestMap() {
for (final View caseView : mCaseListIndexView) {
String caseViewName = ((WXTextView) caseView).getText().toString();
- 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 readThisStringArrayXml
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public static final String[] readThisStringArrayXml(XmlPullParser parser, String endTag,
String[] name) throws XmlPullParserException, java.io.IOException {
int num;
try {
- 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 readThisBooleanArrayXml
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
public static final boolean[] readThisBooleanArrayXml(XmlPullParser parser, String endTag,
String[] name) throws XmlPullParserException, java.io.IOException {
int num;
try {
- 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 testAherf
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void testAherf(){
for(final View caseView : mCaseListIndexView){
if (((WXTextView)caseView).getText().toString().equals("TC_AHref")){
Log.e(TAG, "TC_AHref find");
File headlines.js
has 301 lines of code (exceeds 250 allowed). Consider refactoring. Open
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
File Network.java
has 300 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
Method applyDocumentUpdate
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void applyDocumentUpdate(final ShadowDocument.Update docUpdate) {
// TODO: it'd be nice if we could delegate our calls into mPeerManager.sendNotificationToPeers()
// to a background thread so as to offload the UI from JSON serialization stuff
// First, any elements that have been disconnected from the tree, and any elements in those
Method writeValueXml
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
private static final void writeValueXml(Object v, String name, XmlSerializer out,
WriteMapCallback callback) throws XmlPullParserException, java.io.IOException {
String typeStr;
if (v == null) {
out.startTag(null, "null");
Method testByTestMap
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
@Test
public void testByTestMap() {
for (final View caseView : mCaseListIndexView) {
String caseViewName = ((WXTextView) caseView).getText().toString();
Method submitTracingEvent
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
@Override
public void submitTracingEvent(WXTracing.TraceEvent event) {
int instanceId = Integer.parseInt(event.iid);
if (instanceId == -1) {
- 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 0
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
/***/ function(module, exports, __webpack_require__) {
;__weex_define__("@weex-component/918304b35162c0fa434158149beb7c82", [], function(__weex_require__, __weex_exports__, __weex_module__){
__webpack_require__(18);
- 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 start
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void start() {
synchronized (DebugServerProxy.class) {
if (mContext == null) {
new IllegalArgumentException("Context is null").printStackTrace();
return;
Function data
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
data: function () {return {
refresh_display: 'hide',
loading_display: 'hide',
sections: [
{
File AndroidDocumentProvider.java
has 283 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
Method testAherf
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void testAherf(){
for(final View caseView : mCaseListIndexView){
if (((WXTextView)caseView).getText().toString().equals("TC_AHref")){
Log.e(TAG, "TC_AHref find");
Method testAherf
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
public void testAherf(){
for(final View caseView : mCaseListIndexView){
if (((WXTextView)caseView).getText().toString().equals("TC_AHref")){
Log.e(TAG, "TC_AHref 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 getInstance
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
@Override
public AsyncPrettyPrinter getInstance(final String headerName, final String headerValue) {
final MatchResult result = matchAndParseHeader(headerName, headerValue);
if (result == null) {
- 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 0
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
/***/ function(module, exports, __webpack_require__) {
;__weex_define__("@weex-component/41333d527ccae7db33e37491c3583a26", [], function(__weex_require__, __weex_exports__, __weex_module__){
__webpack_require__(18);
- 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 ObjectMapper.java
has 274 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
Method testTextStyleColumn
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void testTextStyleColumn(){
for(final View caseView : mCaseListIndexView){
String caseViewText = new String("");
caseViewText = ((WXTextView)caseView).getText().toString();