Showing 4,841 of 7,782 total issues
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 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 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 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 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) {
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 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()
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 _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 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 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 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 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 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 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
) {
Method checkCompDenpendency
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void checkCompDenpendency(XMLResource xr, Map<String, XMLResource> rcmap, String elName) {
if (xr.depends.size() > 0) {
return;
}
Method toContents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
public static final Object toContents(Object obj) {
if (obj instanceof Collection) {
Collection c = (Collection)obj;
boolean cvted = false;
Method isIdentifier
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static boolean isIdentifier(String key) {
if (SKIP_IDENTIFIER_CHECK) {
return true;
}
Method removeRichlet0
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private Object removeRichlet0(String name) {
if (name == null) {
throw new IllegalArgumentException("Name is required");
}
Object o;