Showing 1,102 of 1,102 total issues
Function getFreeRecord
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function getFreeRecord(scheme, schemeId, systemId, autoSysId, callback){
Function descriptionIdBulkCreation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
var descriptionIdBulkCreation = function (namespace, partitionId, idsTotal, request, callback) {
Function insertRecords
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
var insertRecords=function(records, scheme, key, autoSysId, callback) {
Function getGroupUsers
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
module.exports.getGroupUsers = function getGroupUsers (groupName, callback) {
crowd.groups.directmembers(groupName, function(err, res) {
if(err) {
callback(err);
} else {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getStats
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
module.exports.getStats = function getStats(username, callback){
dbInit.getDB(function (err, pdb, model) {
if (err)
throw err;
else{
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getSchemeIds
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
var getSchemeIds=function (scheme, schemeIdArray, callback) {
schemeIdArray.forEach(function (schemeId) {
if (schemeId == null || schemeId == "") {
callback(throwErrMessage("SchemeId is null."), null);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getSchemes
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
module.exports.getSchemes = function getSchemes(callback){
dbInit.getDB(function (err, pdb, model) {
if (err)
throw err;
else{
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getNamespaces
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
module.exports.getNamespaces = function getNamespaces(callback){
dbInit.getDB(function (err, pdb, model) {
if (err)
throw err;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function deprecateSchemeId
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
var deprecateSchemeId=function (scheme, operation, callback){
getSchemeId(scheme, operation.schemeId,function(err,schemeIdRecord){
if (err) {
callback(err, null);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function deprecateSctid
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
var deprecateSctid=function (operation, callback){
getSctid(operation.sctid,function(err,sctIdRecord){
if (err) {
callback(err, null);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function publishSchemeId
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
var publishSchemeId=function (scheme, operation, callback){
getSchemeId(scheme, operation.schemeId,function(err,schemeIdRecord) {
if (err) {
callback(err, null);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function releaseSchemeId
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
var releaseSchemeId=function (scheme, operation, callback){
getSchemeId(scheme, operation.schemeId,function(err,schemeIdRecord){
if (err) {
callback(err, null);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function publishSctid
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
var publishSctid=function (operation, callback){
getSctid(operation.sctid,function(err,sctIdRecord) {
if (err) {
callback(err, null);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function createPermission
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
module.exports.createPermission = function createPermission(permission, callback){
dbInit.getDB(function (err, pdb, model) {
if (err)
throw err;
else{
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function createPermission
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
module.exports.createPermission = function createPermission(permission, callback){
dbInit.getDB(function (err, pdb, model) {
if (err)
throw err;
else{
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getNextId
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
var getNextId= function (previousId){
var prefix=previousId.substring(0,previousId.indexOf("-"));
var hexBase=previousId.substr(previousId.indexOf("-") + 1);
if (hexBase.toUpperCase()>="FFFFF") {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function releaseSctid
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
var releaseSctid=function (operation, callback){
getSctid(operation.sctid,function(err,sctIdRecord){
if (err) {
callback(err, null);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Avoid too many return
statements within this function. Open
return null;
Avoid too many return
statements within this function. Open
return null;
Function create
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
auxDescription.create=function(sctIdRecord,callback){
db.getDB(function (err,connection)
{
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"