Showing 4,841 of 7,782 total issues
Avoid deeply nested control flow statements. Open
Open
if (!eraName) return; // no era match
Avoid deeply nested control flow statements. Open
Open
if (callee.property.name === 'attr') {
visitedNode[parent.range.toString()] = true;
// ignore for .attr(key, null);
return;
}
Consider simplifying this complex logical expression. Open
Open
if ((cc < '0' || cc > '9') && (cc < 'a' || cc > 'z')
&& (cc < 'A' || cc > 'Z'))
break;
Consider simplifying this complex logical expression. Open
Open
if((ch>='\u0000' && ch<='\u001F') || (ch>='\u007F' && ch<='\u009F') || (ch>='\u2000' && ch<='\u20FF')){
String ss=Integer.toHexString(ch);
sb.append("\\u");
for(int k=0;k<4-ss.length();k++){
sb.append('0');
Consider simplifying this complex logical expression. Open
Open
if (!((cf >= '0' && cf <= '9') || (cf >= 'A' && cf <= 'F') || (cf >= 'a' && cf <= 'f'))) {
break;
}
Consider simplifying this complex logical expression. Open
Open
if (!((cf >= '0' && cf <= '9') || (cf >= 'A' && cf <= 'F') || (cf >= 'a' && cf <= 'f'))) {
break;
}
Consider simplifying this complex logical expression. Open
Open
if (maxcnt > 0 || prefix.length() > 0) {
final int len = trace.length();
if (sb == null)
sb = new StringBuffer(len + 256);
if (maxcnt <= 0)
Consider simplifying this complex logical expression. Open
Open
if (!((cf >= '0' && cf <= '9') || (cf >= 'A' && cf <= 'F') || (cf >= 'a' && cf <= 'f'))) {
break;
}
Consider simplifying this complex logical expression. Open
Open
} else if (c1 == '8' || c1 == '9' || c1 == '\n' || c1 == '\r' || c1 == '\u2028' || c1 == '\u2029') {
// '8' and '9' are not valid octal escape sequences, and the other four characters
// are LineTerminators, which are not allowed as escape sequences. So we leave it as is
// and expect the corresponding JavaScript engine to fail (except in the case of slash + '\n',
Consider simplifying this complex logical expression. Open
Open
if (!((cf >= '0' && cf <= '9') || (cf >= 'A' && cf <= 'F') || (cf >= 'a' && cf <= 'f'))) {
break;
}
Consider simplifying this complex logical expression. Open
Open
} else if (c1 == '8' || c1 == '9' || c1 == '\n' || c1 == '\r' || c1 == '\u2028' || c1 == '\u2029') {
// '8' and '9' are not valid octal escape sequences, and the other four characters
// are LineTerminators, which are not allowed as escape sequences. So we leave it as is
// and expect the corresponding JavaScript engine to fail (except in the case of slash + '\n',
Consider simplifying this complex logical expression. Open
Open
if (_type == null && _id == null && _classes.isEmpty() && _pseudoClasses.isEmpty() && _attributes.isEmpty()
&& _pseudoElements.isEmpty())
return "*";
Consider simplifying this complex logical expression. Open
Open
if ((cc >= 'a' && cc <= 'z') || (cc >= 'A' && cc <= 'Z')
|| cc == '_' || cc == '$') {
for (; j < len; ++j) {
switch (cc = val.charAt(j)) {
case '(':
Consider simplifying this complex logical expression. Open
Open
if ((cc < 'a' || cc > 'z') && (cc < 'A'
|| cc > 'Z') && (cc < '0' || cc > '9'))
return false;
Consider simplifying this complex logical expression. Open
Open
if ((cc < 'a' || cc > 'z') && (cc < 'A' || cc > 'Z') && (cc < '0' || cc > '9'))
throw new UiException(
message("Invalid extension; only letters and numbers are allowed: " + ext, elm));
Consider simplifying this complex logical expression. Open
Open
if (name == null || name.length() == 0 || namespace == null || namespace.length() == 0 || pageRenderer == null
|| locator == null)
throw new IllegalArgumentException();
Consider simplifying this complex logical expression. Open
Open
if (!isZkAttr(langdef, attrns) && !isZKNamespace(attURI) && !"xmlns".equals(attPref)
&& !("xmlns".equals(attnm) && "".equals(attPref))
&& !"http://www.w3.org/2001/XMLSchema-instance".equals(attURI)) {
// Bug ZK-2995
Consider simplifying this complex logical expression. Open
Open
if (!bNativeContent && !bNative && (shouldIgnoreAnnotNamespace
|| (attURI.length() == 0 || LanguageDefinition.ZK_NAMESPACE.endsWith(attURI)))
&& AnnotationHelper.isAnnotation(attvaltrim)) {
if (attrAnnHelper == null)
attrAnnHelper = new AnnotationHelper();
Consider simplifying this complex logical expression. Open
Open
if (isZkElement(langdef, e, bNativeContent) && ("attribute".equals(n) || "custom-attributes".equals(n)
|| "variables".equals(n) || "template".equals(n) || "zscript".equals(n))) { //we have to skip zscript because of B50-3259479
zkElem = n;
textAsAllowed = false;
//unable to handle them because EL/zscript might affect
Consider simplifying this complex logical expression. Open
Open
if (!"xmlns".equals(attnm) && !"xml".equals(attnm) && !attURI.contains("w3.org")
&& (attPref == null || (!"xmlns".equals(attPref) && !"xml".equals(attPref))))
params.put(attnm, attval);