Showing 4,841 of 7,782 total issues
Function computeMonthsParse
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function computeMonthsParse() {
function cmpLenRev(a, b) {
return b.length - a.length;
}
Function getWidthOrHeight
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getWidthOrHeight( elem, dimension, extra ) {
// Start with computed style
var styles = getStyles( elem ),
Function localeErasParse
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function localeErasParse(eraName, format, strict) {
var i,
l,
eras = this.eras(),
name,
Function calendar$mold$
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function calendar$mold$(out) {
var renderer = zul.db.Renderer,
uuid = this.uuid,
view = this._view,
localizedSymbols = this.getLocalizedSymbols(),
Function scrollbarWidth
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scrollbarWidth(): number {
var devicePixelRatio = zUtl.getDevicePixelRatio(),
body = document.body;
if (this['_lastDevicePixelRatio'] != devicePixelRatio) {
this['_lastDevicePixelRatio'] = devicePixelRatio;
Function bindTapHold_
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindTapHold_() {
if (this.isListen('onRightClick') || (window.zul && this instanceof zul.Widget && this.getContext())) { //also register context menu to tapHold event
this._holdTime = 800;
this._startHold = (evt: JQuery.TouchEventBase): void => {
if (!this._rightClickPending) {
Function _updateDrag
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_updateDrag(pt: zk.Offset, evt: zk.Event): void {
if (!this.dragging) {
let v = this.opts.initSensitivity;
if (v && pt[0] <= _initPt[0] + v && pt[0] >= _initPt[0] - v
&& pt[1] <= _initPt[1] + v && pt[1] >= _initPt[1] - v)
Function create
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
create(context) {
const sourceCode = context.getSourceCode();
return {
CallExpression(node) {
const { callee } = node;
Method newSavePropertyBinding
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected SavePropertyBinding newSavePropertyBinding(Component comp, String attr, String saveAttr, String saveExpr,
ConditionType conditionType, String command, Map<String, Object> bindingArgs, String converterExpr,
Map<String, Object> converterArgs, String validatorExpr, Map<String, Object> validatorArgs) {
Method newElement
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private Element newElement(String nsURI, String tname)
throws SAXException {
if (nsURI == null) nsURI = "";
final int j = tname.indexOf(':');
Method coalesce
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public final int coalesce(boolean recursive) {
int count = 0;
Item found = null;
StringBuilder sb = new StringBuilder();
for (final Iterator<Item> it = _children.iterator(); it.hasNext();) {
Method myGetCloseMethods
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static final Method[]
myGetCloseMethods(final Class<?> cls, final String name,
final Class<?>[] argTypes, final boolean bySubclass) {
// assert argTypes != null: "Caller shall handle null";
final List<Method> mtds = new LinkedList<Method>();
Method coerce
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Object coerce(Class<?> cls, Object val, boolean nullable)
throws ClassCastException {
if (nullable || val != null)
return coerce(cls, val);
Method adjustBeginLineColumn
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void adjustBeginLineColumn(int newLine, int newCol)
{
int start = tokenBegin;
int len;
Method updateCol
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void updateCol(String id, int col){
DefaultTreeNode<TestObject> rootNode;
if (id.startsWith("Row A") || id.startsWith("SubRow A")) {
rootNode=(DefaultTreeNode<TestObject>)mymodelA.getRoot();
} else {
Method doAfterCompose
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override public void doAfterCompose(final Listbox comp) throws Exception {
super.doAfterCompose(comp);
List names = new ArrayList();
for (int i = 0; i < 10; i++) {
names.add("Jasmin" + i);
Method fillTree
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void fillTree(Tree myTree, DefaultTreeModel mymodel, String treeName) {
myTree.setItemRenderer(new TreeitemRenderer() {
public void render(Treeitem treeItem, Object data, int id)
throws Exception {
Method onCreate
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void onCreate(){
iframe = (Iframe)getFellow("w2").getFellow("ifr");
lb = (Listbox)getFellow("w1").getFellow("lb");
lb.setItemRenderer(new FileitemRenderer());
lb.setModel(fileModel);
Method outEndJavaScriptFunc
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static void outEndJavaScriptFunc(Execution exec, Writer out, String extra, boolean aupg, boolean afterLoad)
throws IOException {
final String ac = outResponseJavaScripts(exec, true);
if (aupg) {
if (extra.length() > 0 || ac.length() > 0) {
Method mapChildren
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected void mapChildren(DesktopCtrl desktopCtrl, List<String> uuids, List<String[]> idmap, List<Object[]> evtmap,
Component comp) {
for (Component p = comp.getFirstChild(); p != null; p = p.getNextSibling()) {
if (p instanceof StubsComponent) {
final String[] kiduuids = ((StubsComponent) p)._uuids;