Showing 2,662 of 2,662 total issues
File ReTrace.java
has 504 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
Method toString
has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring. Open
public static String toString(Object o, String tagName)
throws JSONException {
StringBuffer b = new StringBuffer();
int i;
JSONArray ja;
- 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 nextWord
has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring. Open
public String nextWord(boolean isFileName) throws IOException
{
currentWord = null;
// See if we have an included reader to produce a word.
- 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 SimplifiedVisitor.java
has 490 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
Method fixDupInstruction
has 191 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void fixDupInstruction(Clazz clazz,
CodeAttribute codeAttribute,
int dupOffset,
Instruction instruction)
{
ClassUtil
has 53 methods (exceeds 20 allowed). Consider refactoring. Open
public class ClassUtil
{
private static final String EMPTY_STRING = "";
File ConstantPoolEditor.java
has 478 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
File InstructionSequenceMatcher.java
has 476 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
AppListener
has 52 methods (exceeds 20 allowed). Consider refactoring. Open
public final class AppListener extends Listener implements RadioStatusListener,
HolsterListener, SystemListener2, PhoneListener, PhoneLogListener,
iSingleton {
private static final long GUID = 0x4e5dd52b9f50b3feL;
Method getProGuardConfiguration
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
private Configuration getProGuardConfiguration()
{
Configuration configuration = new Configuration();
// Get the input and output jars and directories.
- 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 buildFilter
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
private void buildFilter(String prefix,
StringBuffer positive,
StringBuffer negative)
{
int positiveCount = 0;
- 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 originalMethodName
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring. Open
private void originalMethodName(String className,
String obfuscatedMethodName,
int lineNumber,
String type,
String arguments,
- 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 execute
has 181 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void execute() throws IOException
{
// Read the mapping file.
MappingReader mappingReader = new MappingReader(mappingFile);
mappingReader.pump(this);
Method evaluateSingleInstructionBlock
has 180 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void evaluateSingleInstructionBlock(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
TracedVariables variables,
TracedStack stack,
File InjectorManager.java
has 464 lines of code (exceeds 250 allowed). Consider refactoring. Open
//#preprocess
/* *************************************************
* Copyright (c) 2010 - 2012
* HT srl, All rights reserved.
ConstantPoolShrinker
has 50 methods (exceeds 20 allowed). Consider refactoring. Open
public class ConstantPoolShrinker
extends SimplifiedVisitor
implements ClassVisitor,
MemberVisitor,
ConstantVisitor,
Method parseMemberSpecificationArguments
has 174 lines of code (exceeds 25 allowed). Consider refactoring. Open
private void parseMemberSpecificationArguments(String externalClassName,
ClassSpecification classSpecification)
throws ParseException, IOException
{
// Clear the annotation name.
File CodeAttributeComposer.java
has 455 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
JSONObject
has 49 methods (exceeds 20 allowed). Consider refactoring. Open
public class JSONObject {
/**
* JSONObject.NULL is equivalent to the value that JavaScript calls null,
* whilst Java's null is equivalent to the value that JavaScript calls
Method execute
has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring. Open
public void execute() throws IOException
{
// Read the mapping file.
MappingReader mappingReader = new MappingReader(mappingFile);
mappingReader.pump(this);
- 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"