Showing 4 of 10 total issues
Function getKM200
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getKM200(url, done) {
var options = {
url: 'http://' + km200host + url,
headers: {
'Content-type': 'application/json',
- Create a ticketCreate a ticket
Function requestKM200
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function requestKM200(host) {
getKM200(host, '/notifications', function(result, json) {
if (json !== undefined) {
//console.log(JSON.stringify(json.values))
var data = json.values
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (a.t > b.t) return -1
- Create a ticketCreate a ticket