Showing 7,775 of 7,775 total issues
Method processFormLoadBindings
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void processFormLoadBindings(Component comp, String formId, Annotation ann) {
String loadExpr = null;
final List<String> beforeCmds = new ArrayList<String>();
final List<String> afterCmds = new ArrayList<String>();
Method collectSaveFormBinding
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void collectSaveFormBinding(Component comp, SaveFormBinding binding, String command, Event evt,
Set<Property> validates) {
//ZK-3185: Enable form validation with reference and collection binding
String formId = binding.getFormId();
Component formComp = binding.getComponent();
Method addPropertyInitBinding0
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void addPropertyInitBinding0(Component comp, String attr, String initExpr, Map<String, Object> bindingArgs,
String converterExpr, Map<String, Object> converterArgs) {
final ComponentCtrl compCtrl = (ComponentCtrl) comp;
final Annotation ann = AnnotationUtil.getSystemAnnotation(compCtrl, attr);
Method ungroup
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void ungroup(boolean ascending) {
final Comparator<?> cmpr = ascending ? _sortAsc : _sortDsc;
if (cmpr != null) {
final Grid grid = getGrid();
Method getVisibleItemsDFS
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private <T extends Component> boolean getVisibleItemsDFS(List<T> list, Map<Treeitem, Boolean> map, int[] data) {
for (T cmp : list) {
if (cmp instanceof Treeitem) {
if (data[4] >= data[0])
return false; // full
Method addVisibleItemCount
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/*package*/ void addVisibleItemCount(int count) {
if (count != 0) {
_visibleItemCount += count;
final Grid grid = getGrid();
if (grid != null) {
Method doSort
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
/*package*/ boolean doSort(boolean ascending) {
final Comparator cmpr = ascending ? _sortAsc : _sortDsc;
if (cmpr == null)
return false;
Method parseRange
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static int[] parseRange(String range) {
range = range.toLowerCase(java.util.Locale.ENGLISH);
for (int j = 0, k, len = range.length(); (k = range.indexOf("bytes", j)) >= 0;) {
for (k += 5; k < len;) {
char cc = range.charAt(k++);
Method browser
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static boolean browser(String userAgent, String type) {
if (userAgent == null) //Bug ZK-1582: userAgent could be null if it is robot.
return false;
int last = (type = type.trim()).length();
Method removeFromQueryString
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static final StringBuffer removeFromQueryString(StringBuffer sb, String name)
throws UnsupportedEncodingException {
name = encodeURIComponent(name);
if (name == null || name.isEmpty())
Function load
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.fn.load = function( url, params, callback ) {
var selector, type, response,
self = this,
off = url.indexOf( " " );
Function isValid
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function isValid(m) {
if (m._isValid == null) {
var flags = getParsingFlags(m),
parsedParts = some.call(flags.parsedDateParts, function (i) {
return i != null;
Function _rmDesktop
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function _rmDesktop(dt: zk.Desktop, dummy?: boolean): void {
var url = zk.ajaxURI(undefined, { desktop: dt, au: true }),
data = jq.param({
dtid: dt.id,
cmd_0: dummy ? 'dummy' : 'rmDesktop',
Function clientInfo
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function clientInfo(dtid?: string): void {
zAu._cInfoReg = true;
var orient = '',
dpr = 1.0;
Function addAft
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function addAft(wgt: zk.Widget, ...codes: string[]): void {
const p = wgt.parent,
onSizeChildren: zk.Widget[] = [],
fn = function (child: zk.Widget): void {
var act = _beforeAction(child, 'show') as never;
Function Request
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Request(input, options) {
options = options || {}
var body = options.body
if (Request.prototype.isPrototypeOf(input)) {
if (input.bodyUsed) {
Function relativeTime$1
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
var duration = createDuration(posNegDuration).abs(),
seconds = round(duration.as('s')),
minutes = round(duration.as('m')),
hours = round(duration.as('h')),
Function rounding
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rounding(valStr: string, ri: number, rounding: number, minus: boolean): string {
switch (rounding) {
case 0: //UP
valStr = up(valStr, ri);
break;
Function _escapeQuote
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_escapeQuote(fmt: string, localizedSymbols: zk.LocalizedSymbols): Efmt {
//note we do NOT support mixing of quoted and unquoted percent
var cc, q = -2, shift = 0, ret = '', jdot = -1, purejdot = -1, pure = '', prej = -1,
validPercent = fmt ? !new RegExp('(\'[' + localizedSymbols.PERCENT + '|' + localizedSymbols.PER_MILL + ']+\')', 'g').test(fmt) : true;
//note we do NOT support mixing of quoted and unquoted percent|permill
Function constructor
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(widget: zk.Widget, currentTarget: object) {
super(); // FIXME: params?
this.$view = widget;
this.$currentTarget = currentTarget;
this._aftercmd = {};