RackHD/on-core

View on GitHub
lib/common/constants.js

Summary

Maintainability
D
2 days
Test Coverage

Function constantsFactory has 325 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function constantsFactory (path) {
    var constants = Object.freeze({
        WorkingDirectory: process.cwd(),
        Name: process.cwd().split(path.sep).reverse()[0],
        Host: require('os').hostname().split(/\./)[0],
Severity: Major
Found in lib/common/constants.js - About 1 day to fix

    File constants.js has 333 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // Copyright © 2015-2017 Dell Inc. or its subsidiaries.  All Rights Reserved.
    
    'use strict';
    
    module.exports = constantsFactory;
    Severity: Minor
    Found in lib/common/constants.js - About 4 hrs to fix

      There are no issues that match your filters.

      Category
      Status