Showing 4,841 of 7,782 total issues
Method getMethod
has a Cognitive Complexity of 78 (exceeds 5 allowed). Consider refactoring. Open
@SuppressWarnings("null")
public static Method getMethod(Object base, Object property,
Class<?>[] paramTypes, Object[] paramValues)
throws MethodNotFoundException {
if (base == null || property == 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
File AbstractTreeModel.java
has 684 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* AbstractTreeModel.java
Purpose:
Description:
PageDefinition
has 82 methods (exceeds 20 allowed). Consider refactoring. Open
public class PageDefinition implements NodeInfo {
/** A list of a children ({@link NodeInfo}). */
private final List<NodeInfo> _children = new LinkedList<NodeInfo>();
private final LanguageDefinition _langdef;
private final Locator _locator;
JQZK
has 82 functions (exceeds 20 allowed). Consider refactoring. Open
export class JQZK {
/**
* The associated instance of {@link JQZK.jq}, the object returned by `jq(...)`.
*/
declare jq: JQuery;
File ConfigParser.java
has 675 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* ConfigParser.java
Purpose:
Description:
RenderHttpServletRequest
has 81 methods (exceeds 20 allowed). Consider refactoring. Open
public class RenderHttpServletRequest implements HttpServletRequest {
private final RenderRequest _req;
private final HttpServletRequest _hreq;
private String _enc = "UTF-8";
private final Map<String, String> _attrs = new HashMap<String, String>(8);
ResourceHttpServletRequest
has 81 methods (exceeds 20 allowed). Consider refactoring. Open
public class ResourceHttpServletRequest implements HttpServletRequest {
private final ResourceRequest _req;
private final HttpServletRequest _hreq;
private String _enc = "UTF-8";
private final Map<String, String> _attrs = new HashMap<String, String>(8);
Method assign0
has a Cognitive Complexity of 76 (exceeds 5 allowed). Consider refactoring. Open
private void assign0(Component comp) throws Exception {
if (comp instanceof ComponentCtrl) {
ComponentCtrl ctrl = ((ComponentCtrl) comp);
PropertyAccess propertyAccess = ctrl.getPropertyAccess(_name);
if (propertyAccess != 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 parseCst
has a Cognitive Complexity of 76 (exceeds 5 allowed). Consider refactoring. Open
private void parseCst(String constraint) {
String regex = null, errmsg = null, regexFlags = "";
l_out:
for (int j = 0, k = 0, len = constraint.length(); k >= 0; j = k + 1) {
for (; ; ++j) {
- 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 applyCSSFlex
has a Cognitive Complexity of 75 (exceeds 5 allowed). Consider refactoring. Open
applyCSSFlex(this: zk.Widget): void {
const wgt = this;
if (!wgt._nvflex && !wgt._nhflex)
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"
Further reading
Method service
has 295 lines of code (exceeds 25 allowed). Consider refactoring. Open
@SuppressWarnings({ "rawtypes", "unchecked" })
public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
final String cmd = request.getCommand();
if (cmd.equals(Events.ON_DATA_LOADING)) {
if (_rod) {
Method parseShadowElement
has a Cognitive Complexity of 73 (exceeds 5 allowed). Consider refactoring. Open
private static NodeInfo parseShadowElement(PageDefinition pgdef, NodeInfo parent, Element el,
AnnotationHelper annHelper) throws Exception {
String ifc = null, unless = null, name = el.getLocalName();
AnnotationHelper attrAnnHelper = null;
final LanguageDefinition lookup = LanguageDefinition.lookup("xul/html");
- 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 execNewPage0
has a Cognitive Complexity of 73 (exceeds 5 allowed). Consider refactoring. Open
private void execNewPage0(final Execution exec, final PageDefinition pagedef, final Richlet richlet,
final Page page, final Writer out) throws IOException {
//Update the device type first. If this is the second page and not
//belonging to the same device type, an exception is thrown
final Desktop desktop = exec.getDesktop();
- 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 datefmt.ts
has 644 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* datefmt.ts
Purpose:
Description:
File ListModelMap.java
has 642 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* ListModelMap.java
{{IS_NOTE
Purpose:
File drag.ts
has 636 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* drag.ts
Purpose:
Description:
Method findWrapper
has a Cognitive Complexity of 71 (exceeds 5 allowed). Consider refactoring. Open
@SuppressWarnings("null")
private static Wrapper findWrapper(Class<?> clazz, List<Wrapper> wrappers,
String name, Class<?>[] paramTypes, Object[] paramValues) {
Map<Wrapper,MatchResult> candidates = new HashMap<Wrapper,MatchResult>();
- 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 outLangJavaScripts
has a Cognitive Complexity of 71 (exceeds 5 allowed). Consider refactoring. Open
public static final String outLangJavaScripts(Execution exec, WebApp wapp, String deviceType) {
if (exec.isAsyncUpdate(null) || exec.getAttribute(ATTR_LANG_JS_GENED) != null)
return ""; //nothing to generate
exec.setAttribute(ATTR_LANG_JS_GENED, Boolean.TRUE);
- 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 onChange
has a Cognitive Complexity of 71 (exceeds 5 allowed). Consider refactoring. Open
public void onChange(ListDataEvent event) {
int type = event.getType();
if (getAttribute(Attributes.BEFORE_MODEL_ITEMS_RENDERED) != null
&& (type == ListDataEvent.INTERVAL_ADDED || type == ListDataEvent.INTERVAL_REMOVED))
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"
Further reading
File ELSupport.java
has 631 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0