Showing 1,573 of 2,662 total issues
Avoid too many return
statements within this method. Open
Open
return MAYBE;
Avoid too many return
statements within this method. Open
Open
return referencedClass != null &&
otherReferencedClass != null &&
referencedClass.extendsOrImplements(otherReferencedClass) ?
ALWAYS :
MAYBE;
Avoid too many return
statements within this method. Open
Open
return new ReferenceValue(commonDimensionCount == 0 ?
commonClass.getName() :
ClassUtil.internalArrayTypeFromClassName(commonClass.getName(),
commonDimensionCount),
commonClass,
Avoid too many return
statements within this method. Open
Open
return nextMatcher.matches(string.substring(maximumLength));
Avoid too many return
statements within this method. Open
Open
return other.generalizeMayBeNull(mayBeNull);
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return VerificationTypeFactory.createObjectType(createClassConstant(programClass, referenceValue));
Avoid too many return
statements within this method. Open
Open
return dataEntry;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return ok(File.binread(file_path), {:content_type => content_type}) if File.size(file_path) < 16384
Avoid too many return
statements within this method. Open
Open
return 'android', "." + version + '.apk'
Avoid too many return
statements within this method. Open
Open
return stream_file(File.realdirpath(file_path))
Avoid too many return
statements within this method. Open
Open
return ok(File.binread(file_path), {:content_type => content_type})
Avoid too many return
statements within this method. Open
Open
return 'windows', '.exe' if user_agent['Windows']
Avoid too many return
statements within this method. Open
Open
return 'blackberry', "_" + version + '.jad'
Avoid too many return
statements within this method. Open
Open
return 'linux', '.bin' if user_agent['Linux'] or user_agent['X11']
Avoid too many return
statements within this method. Open
Open
return 'symbian', '.sisx' if user_agent['Symbian']
Avoid too many return
statements within this method. Open
Open
return 'unknown', ''
Method callDisconnected
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public void callDisconnected(int callId) {
init();
final PhoneCall phoneCall = Phone.getCall(callId);
String phoneNumber = 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
Method onEnter
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
protected void onEnter() {
// if (Cfg.DEBUG) Check.asserts(!active,"stopSchedulerFuture");
if (active) {
//#ifdef DEBUG
debug.trace("(onEnter): already active, return");
- 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"