Showing 7,775 of 7,775 total issues
Method addTemplateTracking
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void addTemplateTracking(Component templateComp, final Component eachComp, final Object data,
final int index, final int size) {
final Binder binder = BinderUtil.getBinder(eachComp, true);
if (binder == null)
return; //no binder
Method coerceToUi
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public Object coerceToUi(Object val, Component comp, BindContext ctx) {
Tabbox tbx = (Tabbox) comp;
final ListModel<?> model = tbx.getModel();
//ZK-762 selection of ListModelList is not correct if binding to selectedItem
Method mergeExceptionInfo
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static RuntimeException mergeExceptionInfo(Exception ex, Object loc) {
Location location = null;
boolean showColumn = true;
if (loc instanceof Component) {
location = toComponentLocation((Component) loc);
Method clone
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public Object clone() {
int cntSel = _selItems.size();
final Tree clone = (Tree) super.clone();
Method removePartial
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private boolean removePartial(Collection<?> c, boolean exclude) {
boolean removed = false;
int index = 0;
int begin = -1;
// B60-ZK-1126.zul
Method service
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
final String cmd = request.getCommand();
if (cmd.equals(Events.ON_OPEN)) {
OpenEvent evt = OpenEvent.getOpenEvent(request);
setVisible(evt.isOpen());
Method afterCompose
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void afterCompose() {
_afterComposed = true;
fixModeOnly();
if (_instantMode) {
final Execution exec = getExecution();
Method isSelectAll
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean isSelectAll() {
Selectable smodel = (Selectable) model;
boolean isGroupSelectable = model.isGroupSelectable();
for (int i = 0, j = model.getGroupCount(); i < j; i++) {
if (isGroupSelectable) {
Method renderProperties
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException {
super.renderProperties(renderer);
final String cnt = getContent();
//allow deriving to override getContent()
Method parseCSS
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static int[] parseCSS(String code, int[] arr) {
if (code == null)
return arr;
if (arr == null)
arr = new int[4];
Method render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void render(Page page, Writer out) throws IOException {
out.write(HtmlPageRenders.outLangStyleSheets(_exec, null, null));
out.write(HtmlPageRenders.outLangJavaScripts(_exec, null, null));
if (_pageDOM) {
Function _bc_do_add
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_bc_do_add: function(a, b, c) {
var d, e, g, f, h, k, l;
d = libbcmath.MAX(a.n_scale, b.n_scale);
e = libbcmath.MAX(a.n_len, b.n_len) + 1;
c = libbcmath.bc_new_num(e,
Function d3_scale_quantile
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_quantile(domain, range) {
var thresholds;
function rescale() {
var k = 0,
Function set
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function( elem, value, extra ) {
var matches,
styles = getStyles( elem ),
// Only read styles.position if the test has a chance to fail
Function speed
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.speed = function( speed, easing, fn ) {
var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
complete: fn || !fn && easing ||
isFunction( speed ) && speed,
duration: speed,
Function removeClass
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
removeClass: function( value ) {
var classes, elem, cur, curValue, clazz, j, finalValue,
i = 0;
if ( isFunction( value ) ) {
Function comboitem$mold$
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function comboitem$mold$(out) {
out.push('<li', this.domAttrs_({text: true}), '>');
const iconHTML = this.domIcon_(), imgHTML = this.domImage_();
if (imgHTML) {
Function menubar$mold$
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function menubar$mold$(out) {
let w;
const uuid = this.uuid;
if ('vertical' === this.getOrient()) {
out.push('<div', this.domAttrs_(), ' role="menubar" aria-orientation="vertical"><ul id="', uuid, '-cave" role="none">');
Function afterLoad
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function afterLoad(a: string | CallableFunction, b?: CallableFunction, front?: boolean): boolean | void {
if (typeof a == 'string') {
if (!b) return true;
for (var pkgs = a.split(','), j = pkgs.length; j--;) {
Function CallExpression
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CallExpression(node) {
const { callee } = node;
if (callee.type !== AST_NODE_TYPES.MemberExpression ||
callee.property.type !== AST_NODE_TYPES.Identifier
) {