webpack/helpers.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 3

Size

Lines of Code 11
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 3
c 1
b 0
f 0
nc 1
mnd 2
bc 3
fnc 1
dl 0
loc 11
rs 10
bpm 3
cpm 3
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A module.exports.parseDotenvConfig 0 9 3
1
/**
2
 *
3
 * @param {Object} config
4
 * @return {Object}
5
 */
6
module.exports = {
7
  parseDotenvConfig: function(config) {
8
    const define = {};
9
    for (var key in config) {
10
      if (config.hasOwnProperty(key)) {
11
        define[key] = JSON.stringify(config[key]);
12
      }
13
    }
14
    return define;
15
  }
16
};
17