Showing 4,841 of 7,782 total issues
Method readMethod
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private int readMethod(TypeCollector classVisitor, char[] c, int u) {
int v;
int w;
int j;
String attrName;
Method group
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean group(boolean ascending) {
final String dir = getSortDirection();
if (ascending) {
if ("ascending".equals(dir))
return false;
Method onEvent
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void onEvent(Event event) {
if (inPagingMold() && event instanceof PagingEvent) {
PagingEvent pe = (PagingEvent) event;
if (_model instanceof Pageable) {
((Pageable) _model).setPageSize(pe.getPageable().getPageSize());
Method get
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final <V> V get(ResourceCache<V> cache, ServletContext ctx, String path, Object extra) {
//20050905: Tom Yeh
//We don't need to handle the default name if user specifies only a dir
//because it is handled by the container directly
//And, web developer has to specify <welcome-file> in web.xml
Function axis
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function axis(selection) {
selection.each(function(d, i, j) {
var g = d3.select(this);
// If selection is a transition, create subtransitions.
File gulpfile.js
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// @ts-check
const fs = require('fs');
const path = require('path');
const gulp = require('gulp');
const minimist = require('minimist');
File ListModelArrayProxy.java
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/** ListModelArrayProxy.java.
Purpose:
Description:
SAXBuilder
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class SAXBuilder {
private static final Logger log = LoggerFactory.getLogger(SAXBuilder.class);
/** The parser. */
private final SAXParser _parser;
ContextParamVM
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class ContextParamVM {
String applicationScope;
String sessionScope;
String desktopScope;
WpdExtendlet
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class WpdExtendlet extends AbstractExtendlet<Object> {
//source map
public static final String SOURCE_MAP_JAVASCRIPT_PATH = "$zk$sourcemapJsPath"; // for HtmlPageRenders
private static final String SOURCE_MAP_DIVIDED_WPDS = "$zk$dividedWPDs";
private static final String SOURCE_MAP_DIVIDED_WPDS_NUMBER = "$zk$dividedWPDsNum";
Consider simplifying this complex logical expression. Open
Open
if (_recovering || _disabled || (newpg == null && oldpg == null)
|| (newpg == null && (oldpg instanceof VolatilePage || !_exec.isAsyncUpdate(oldpg))) //detach from loading pg
|| (oldpg == null && (newpg instanceof VolatilePage || !_exec.isAsyncUpdate(newpg))) //attach to loading pg
|| isCUDisabled(comp) || (oldparent != null && isCUDisabled(oldparent)))
return; //to avoid redundant AuRemove
Button
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class Button extends LabelImageElement implements org.zkoss.zk.ui.ext.Disable,
org.zkoss.zk.ui.ext.Uploadable {
private AuxInfo _auxinf;
static {
Treecol
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class Treecol extends HeaderElement {
private static final long serialVersionUID = 20110131122933L;
private String _sortDir = "natural";
private transient Comparator<?> _sortAsc, _sortDsc;
Method toNumberOnly
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected Object[] toNumberOnly(String val) {
if (val == null)
return new Object[] { null, null };
final DecimalFormatSymbols symbols = new DecimalFormatSymbols(getDefaultLocale());
XulElement
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public abstract class XulElement extends HtmlBasedComponent {
/** AuxInfo: use a class (rather than multiple member) to save footprint */
private AuxInfo _auxinf;
/** Returns what keystrokes to intercept.
GroupsModelArray
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class GroupsModelArray<D, H, F, E> extends AbstractGroupsModel<D, H, F, E>
implements GroupsSortableModel<D>, ComponentCloneListener, Cloneable {
/**
* member field to store native (original) array data
Treechildren
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class Treechildren extends XulElement {
private static final String VISIBLE_ITEM = "org.zkoss.zul.Treechildren.visibleItem";
private int _visibleItemCount;
Consider simplifying this complex logical expression. Open
Open
if (m._isValid == null) {
var flags = getParsingFlags(m),
parsedParts = some.call(flags.parsedDateParts, function (i) {
return i != null;
}),
Function ajaxFetch
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.ajaxFetch = function (input, init) {
return new Promise(function (resolve, reject) {
var request
if (Request.prototype.isPrototypeOf(input) && !init) {
request = input
Function create
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create(parent: zk.Widget | undefined, wi: WidgetInfo, ignoreDom?: boolean): zk.Widget {
let nm;
var wgt: zk.Widget, stub: boolean,
type = wi[0],
uuid = wi[1],