Fixed blocker issues reported by sonarqube in js files

All of them are trailing comma in array or object

more details @
https://analysis.apache.org/component_issues?id=org.apache.cloudstack%3Acloudstack#resolved=false|severities=BLOCKER|languages=js
This commit is contained in:
Rajani Karuturi 2015-05-20 17:17:09 +05:30
parent e8f8e0e3f2
commit 8571314406
10 changed files with 21 additions and 22 deletions

View File

@ -1531,7 +1531,7 @@
label: 'label.name',
validation: {
required: true
},
}
},
publickey: {
label: 'Public Key'
@ -1587,7 +1587,7 @@
data: items
});
}
},
}
},
account: {
label: 'label.account',

View File

@ -2157,7 +2157,7 @@
label: 'label.disk.iops.write.rate'
},
cacheMode: {
label: 'label.cache.mode',
label: 'label.cache.mode'
},
tags: {
label: 'label.storage.tags'
@ -3684,7 +3684,7 @@
fields[id.isEnabled] = {
label: serviceDisplayName,
isBoolean: true,
isBoolean: true
};
serviceFields.push(id.isEnabled);
@ -3734,7 +3734,7 @@
dependsOn: 'service.SourceNat.isEnabled',
isBoolean: true
}
},//end of fields
}//end of fields
}, //end of createForm
action: function(args) {

View File

@ -368,7 +368,7 @@ cloudStack.docs = {
externalLink: ''
},
helpDiskOfferingHypervisorSnapshotReserve: {
desc: 'Hypervisor snapshot reserve space as a percent of a volume (for managed storage using XenServer or VMware) (Ex. The value 25 means 25%.)).',
desc: 'Hypervisor snapshot reserve space as a percent of a volume (for managed storage using XenServer or VMware) (Ex. The value 25 means 25%.)).'
},
helpDiskOfferingCacheMode: {
desc: 'The write caching mode to use for disks created with this disk offering. This can improve write performance.',

View File

@ -677,7 +677,7 @@
data: null
});
}
},
}
},
account: {
label: 'label.account',

View File

@ -810,7 +810,7 @@
}
},
name: {
label: 'label.name',
label: 'label.name'
}
}
},

View File

@ -3985,7 +3985,7 @@
})
});
}
},
}
},
actions: {
enable: {
@ -7486,7 +7486,7 @@
actionFilter: networkProviderActionFilter('GloboDns')
});
}
},
}
},
actions: {
add: {
@ -12917,7 +12917,7 @@
label: 'label.api.version'
},
retrycount: {
label: 'label.numretries',
label: 'label.numretries'
},
retryinterval: {
label: 'label.retry.interval'
@ -13073,7 +13073,7 @@
label: 'label.api.version'
},
retrycount: {
label: 'label.numretries',
label: 'label.numretries'
},
retryinterval: {
label: 'label.retry.interval'
@ -15710,7 +15710,7 @@
$.extend(data, {
agentusername: args.data.agentUsername,
agentpassword: args.data.agentPassword,
agentport: args.data.agentPort,
agentport: args.data.agentPort
});
}
}
@ -20286,7 +20286,7 @@
var jid = json[apiCmdRes].jobid;
args.response.success({
_custom: {
jobId: jid,
jobId: jid
}
});
}

View File

@ -992,7 +992,7 @@
//***** updateTemplatePermissions *****
var data = {
id: args.context.templates[0].id,
id: args.context.templates[0].id
//zoneid: args.context.templates[0].zoneid //can't update template/ISO in only one zone. It always get updated in all zones.
};
@ -1148,7 +1148,7 @@
notification: {
poll: pollAsyncJobResult
}
},
}
},
tabs: {
@ -1726,8 +1726,7 @@
templatetype: {
label: 'label.type'
},
}
}],
@ -2134,7 +2133,7 @@
//***** updateIsoPermissions *****
var data = {
id: args.context.isos[0].id,
id: args.context.isos[0].id
//zoneid: args.context.isos[0].zoneid //can't update template/ISO in only one zone. It always get updated in all zones.
};
//if args.data.ispublic is undefined(i.e. checkbox is hidden), do not pass ispublic to API call.

View File

@ -407,7 +407,7 @@
['featuredisos', 'instance-wizard-featured-isos'],
['communityisos', 'instance-wizard-community-isos'],
['myisos', 'instance-wizard-my-isos'],
['sharedisos', 'instance-wizard-shared-isos'],
['sharedisos', 'instance-wizard-shared-isos']
//['isos', 'instance-wizard-all-isos']
]
).each(function() {

View File

@ -142,7 +142,7 @@
},
error: function(xhr) {
$login.find('#saml-login').hide();
},
}
});
// Select language

View File

@ -471,7 +471,7 @@
desc: 'message.tooltip.internal.dns.2',
validation: {
ipv4: true
},
}
},
hypervisor: {
label: 'label.hypervisor',