insideout10/wordlift-plugin-js

View on GitHub
app/admin_files/jquery.schedule.js

Summary

Maintainability
A
1 hr
Test Coverage

Function schedule has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

(function($){$.scheduler=function(){this.bucket={};return;};$.scheduler.prototype={schedule:function(){var ctx={"id":null,"time":1000,"repeat":false,"protect":false,"obj":null,"func":function(){},"args":[]};function _isfn(fn){return(!!fn&&typeof fn!="string"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn+""));};var i=0;var override=false;if(typeof arguments[i]=="object"&&arguments.length>1){override=true;i++;}
if(typeof arguments[i]=="object"){for(var option in arguments[i])
if(typeof ctx[option]!="undefined")
ctx[option]=arguments[i][option];i++;}
if(typeof arguments[i]=="number"||(typeof arguments[i]=="string"&&arguments[i].match(RegExp("^[0-9]+[smhdw]$"))))
Severity: Minor
Found in app/admin_files/jquery.schedule.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status