Showing 7,777 of 7,777 total issues
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 ListModelMap.java
has 642 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* ListModelMap.java
{{IS_NOTE
Purpose:
File datefmt.ts
has 642 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* datefmt.ts
Purpose:
Description:
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
Method parse0
has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring. Open
private static final Map
parse0(Map map, String src, char pairSeparator, char separator, char quote, boolean asValue,
boolean parenthesis, boolean multiple)
throws IllegalSyntaxException {
if (separator == (char)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 getNextToken
has a Cognitive Complexity of 70 (exceeds 5 allowed). Consider refactoring. Open
public Token getNextToken()
{
Token matchedToken;
int curPos = 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
File flex.ts
has 627 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* flex.ts
Purpose:
Description:
File BytecodeReadingParanamer.java
has 626 lines of code (exceeds 250 allowed). Consider refactoring. Open
/***
*
* Portions Copyright (c) 2007 Paul Hammant
* Portions copyright (c) 2000-2007 INRIA, France Telecom
* All rights reserved.
LanguageDefinition
has 74 methods (exceeds 20 allowed). Consider refactoring. Open
public class LanguageDefinition {
private static final Logger log = LoggerFactory.getLogger(LanguageDefinition.class);
//static//
/** A map of (String name or namespace, LanguageDefinition). */
private static final Map<String, LanguageDefinition> _ldefByName = new HashMap<String, LanguageDefinition>();