Showing 204 of 440 total issues
Function start
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UPnPService.prototype.start = function() {
var self = this;
var endpoint = _.first(self.northbound) || {
httpsEnabled: false,
address: ip.address(),
File taskgraph-api-service.js
has 253 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright 2016, EMC, Inc.
'use strict';
var di = require('di');
Function makeRenderableOptions
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeRenderableOptions(req, res, context, ignoreLookup) {
var scope = res.locals.scope;
var apiServer = util.format('http://%s:%d',
config.get('apiServerAddress'),
config.get('apiServerPort')
Function _addLinksHeader
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _addLinksHeader(req, res, count) {
var skip = req.swagger.query.$skip;
var top = req.swagger.query.$top;
var uriBase = req.url.split('?')[0];
Function listSystemProcessors
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var listSystemProcessors = controller(function(req, res) {
var identifier = req.swagger.params.identifier.value;
return redfish.getVendorNameById(identifier)
.then(function(result){
Function taskApiServiceFactory
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function taskApiServiceFactory(
taskProtocol,
waterline,
Errors,
util,
Function getSelLogServiceEntry
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getSelLogServiceEntry = controller(function(req, res) {
var identifier = req.swagger.params.identifier.value;
var entryId = req.swagger.params.entryId.value;
Function Runner
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Runner(
constants,
HttpService,
core,
configuration,
Function skuPackServiceFactory
has 16 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
_,
waterline,
Logger,
FileLoader,
Templates,
Function ObmFactory
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ObmFactory (
Promise,
Serializable,
_,
encryption
Function getManagerEthernetInterface
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getManagerEthernetInterface = controller(function(req, res) {
var identifier = req.swagger.params.identifier.value;
var index = req.swagger.params.index.value;
var options = redfish.makeOptions(req, res, identifier);
Function getManagerSerialInterface
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getManagerSerialInterface = controller(function (req, res) {
var identifier = req.swagger.params.identifier.value;
var options = redfish.makeOptions(req, res);
var index = req.swagger.params.index.raw;
Function create
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function create(__, ___, injector) {
injector = injector || require('../../index.js').injector;
var _ = injector.get('_');
var swaggerService = injector.get('Http.Services.Swagger');
var conf = injector.get('Services.Configuration');
Function swaggerFactory
has 15 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Promise,
Errors,
_,
injector,
views,
Function UPnPServiceFactory
has 15 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
_,
waterline,
Logger,
Profiles,
Promise,
Function walkDirectory
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
StaticFilesApiService.prototype.walkDirectory = function(dir) {
return new Promise(function(resolve, reject) {
var walkResults = [];
if (typeof dir !== 'string') {
console.error("[ERROR] Object of type " + typeof dir +
Function tagApiServiceFactory
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tagApiServiceFactory(
waterline,
Promise,
workflowApiService,
Errors,
Function doBootImage
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var doBootImage = controller(function(req,res) {
var identifier = req.swagger.params.identifier.value;
var payload = req.swagger.params.payload.value;
return nodeApi.getNodeByIdentifier(identifier)
Function listManagerSerialInterfaces
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var listManagerSerialInterfaces = controller(function (req, res) {
var identifier = req.swagger.params.identifier.value;
var options = redfish.makeOptions(req, res, identifier);
return redfish.getVendorNameById(identifier)
Function httpServiceFactory
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
eventsProtocol,
configuration,
lookupService,
swagger,
Logger,